Ad Widget

Collapse

Notification Zabbix server is not running after change ip address

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • rocklee44
    Junior Member
    • Apr 2015
    • 7

    #1

    Notification Zabbix server is not running after change ip address

    Hi all,
    I have Zabbix 2.4.3 on Centos 6.4 64 bit (VMWare virual machine). Recently, I migrate this virtual host to another VMWare server, change IP address from 192.168.0.14 to 192.168.200.14
    I change IP address in Zabbix server & agent config files, my Zabbix server use local mysql database.
    Everything is fine, my Zabbix server is running and can monitor all host CPU, RAM, network traffic and the information is current. But I see notification "Zabbix server is not running: the information displayed may not be current" whenever/wherever I browse zabbix.mydomain.com/anypage .
    I see some error in /var/log/zabbix/zabbix_server.log
    8210:20150407:135522.928 [Z3005] query failed: [2006] MySQL server has gone away [begin;]
    8219:20150407:135600.791 [Z3005] query failed: [2006] MySQL server has gone away [select m.maintenanceid,m.maintenance_type,m.active_since, tp.timeperiod_type,tp.every,tp.month,tp.dayofweek, tp.day,tp.start_time,tp.period,tp.start_date from maintenances m,maintenances_windows mw,timeperiods tp where m.maintenanceid=mw.maintenanceid and mw.timeperiodid=tp.timeperiodid and m.active_since<=1428389760 and m.active_till>1428389760]
    8221:20150407:135602.831 [Z3005] query failed: [2006] MySQL server has gone away [select distinct r.druleid,r.iprange,r.name,c.dcheckid,r.proxy_host id from drules r left join dchecks c on c.druleid=r.druleid and c.uniq=1 where r.status=0 and (r.nextcheck<=1428389762 or r.nextcheck>1428389762+r.delay) and mod(r.druleid,1)=0]
    8202:20150407:135602.860 [Z3005] query failed: [2006] MySQL server has gone away [select refresh_unsupported,discovery_groupid,snmptrap_log ging,severity_name_0,severity_name_1,severity_name _2,severity_name_3,severity_name_4,severity_name_5 ,hk_events_mode,hk_events_trigger,hk_events_intern al,hk_events_discovery,hk_events_autoreg,hk_servic es_mode,hk_services,hk_audit_mode,hk_audit,hk_sess ions_mode,hk_sessions,hk_history_mode,hk_history_g lobal,hk_history,hk_trends_mode,hk_trends_global,h k_trends from config]
    I don't know how to fix it. I edited some information that not exactly.
    Last edited by rocklee44; 07-04-2015, 09:03.
  • tchjts1
    Senior Member
    • May 2008
    • 1605

    #2
    Did you update the IP address in zabbix.conf.php?

    And if that doesn't resolve it, and this is an entirely new setup you moved to, check the status of SELinux. That can cause such an error if it is not set to "Permissive"

    Comment

    • rocklee44
      Junior Member
      • Apr 2015
      • 7

      #3
      I updated $ZBX_SERVER = '192.168.200.14'; in /etc/zabbix/web/zabbix.conf.php
      SELINUX=disabled in /etc/sysconfig/selinux
      restart Zabbix services but still the same. http://oi60.tinypic.com/2lsh5ap.jpg
      Last edited by rocklee44; 07-04-2015, 09:33.

      Comment

      • tchjts1
        Senior Member
        • May 2008
        • 1605

        #4
        Did you Zabbix DB server move also?

        Comment

        • rocklee44
          Junior Member
          • Apr 2015
          • 7

          #5
          My Zabbix server uses local mysql database so when I move Zabbix server (virtual machine) to new VMWare serverm my DB move too.
          I'm sorry for bothering you, today I come back to Zabbix and don't see the notification anymore.

          Comment

          • muhlber
            Junior Member
            • Apr 2017
            • 3

            #6
            Check /etc/hosts

            Originally posted by rocklee44
            My Zabbix server uses local mysql database so when I move Zabbix server (virtual machine) to new VMWare serverm my DB move too.
            I'm sorry for bothering you, today I come back to Zabbix and don't see the notification anymore.
            I've the same problem. I change my ip and hostname but I forgot to change /etc/hosts

            in there was the old ip pointing to "zabbixservername"

            Change that and the alarm goes off.

            Comment

            Working...