Can't see any data comming up in frontend

XMLWordPrintable

    • Type: Incident report
    • Resolution: Fixed
    • Priority: Blocker
    • None
    • Affects Version/s: 1.4.2
    • Component/s: Server (S)
    • None
    • Environment:
      CentOS v4.4

      Starting installation and configuration on several VPS (OpenVZ viruals machines) systems over and ovr again following the instructions on http://www.zabbix.com/wiki/doku.php?...:centosinstall, I'am simply not able to get Zabbix working.

      See the following:

      From what I see when I test the operation of zabbix is that the agent and server do indeed communicate, but somehow the data isn't aggregated in MySQL. I can't see any data comming in under Zabbix Front End "Monitoring | Latest Data" and the log files seem tobe correct also!!

      1) This are the tests I've done to conclude that communication is correct:

      1.1) Check if SERVER sees the agent:

      1. netstat -an |grep :10051
        tcp 0 0 192.168.2.208:10051 0.0.0.0:* LISTEN
        tcp 0 0 192.168.2.208:10051 192.168.2.206:55211 TIME_WAIT

      1.2) check if agent is working:

      1. zabbix_get -s php4.cellar.home -k system.hostname
        php4.cellar.home
      1. zabbix_get -s php4.cellar.home -k system.localtime
        1193133010

      2) Remarks:
      2.1) zabbix_sender not working. So maybe the server daemon isn't accepting any send requests from the agent?

      1. zabbix_sender -zzabbix.cellar.home -p10051 -sphp4 -ksystem.hostname -ophp4 -v
        zabbix_sender [1574]: Warning: Incorrect answer from server [NOT OK]
        sent: 0; failed: 1; total: 1

      2.2) The zabbix configuration of the host "php4.cellar.home" in the frontend reports Availability "Unknown"

      2.3) The latest view under monitoring says (01.01.1970 01:00:00 I'm puzzled??):

      2.4) When I execute "zabbix_get -s php4.cellar.home -k system.hostname" on the server the log on the client shows it:

      32666:20071023:121701 Before read
      32666:20071023:121701 In parse_list_of_checks('ZBX_EOF
      ')
      32666:20071023:121701 In disable_all_metrics()
      32666:20071023:121701 Parsed [ZBX_EOF]
      32666:20071023:121701 In process_active_checks('zabbix.cellar.home',10051)
      32666:20071023:121701 In get_min_nextcheck()
      32666:20071023:121701 Sleeping for 60 seconds
      32663:20071023:121731 Processing request.
      32663:20071023:121731 In check_security()
      32663:20071023:121731 Requested [system.hostname]
      32663:20071023:121731 Before
      32663:20071023:121731 Run remote command [hostname] Result [16] [php4.cellar.home]...
      32663:20071023:121731 Sending back [php4.cellar.home]

      3) These are the logs:

      SERVER:
      32734:20071023:055824 Starting zabbix_server. ZABBIX 1.4.2.
      32734:20071023:055824 **** Enabled features ****
      32734:20071023:055824 SNMP monitoring: NO
      32734:20071023:055824 WEB monitoring: YES
      32734:20071023:055824 Jabber notifications: NO
      32734:20071023:055824 **************************
      32738:20071023:055824 server #1 started [Poller. SNMP:OFF]
      32740:20071023:055824 server #2 started [Poller. SNMP:OFF]
      32742:20071023:055824 server #3 started [Poller. SNMP:OFF]
      32744:20071023:055824 server #4 started [Poller. SNMP:OFF]
      32746:20071023:055824 server #5 started [Poller. SNMP:OFF]
      32748:20071023:055824 server #6 started [Poller. SNMP:OFF]
      32749:20071023:055824 server #7 started [Poller. SNMP:OFF]
      32752:20071023:055824 server #8 started [Poller. SNMP:OFF]
      32754:20071023:055824 server #9 started [Poller. SNMP:OFF]
      32756:20071023:055824 server #10 started [Poller. SNMP:OFF]
      32758:20071023:055824 server #11 started [Poller. SNMP:OFF]
      32760:20071023:055824 server #12 started [Poller. SNMP:OFF]
      32762:20071023:055824 server #13 started [Poller. SNMP:OFF]
      32764:20071023:055824 server #14 started [Poller. SNMP:OFF]
      32765:20071023:055824 server #15 started [Poller. SNMP:OFF]
      32767:20071023:055824 server #16 started [Trapper]
      1325:20071023:055824 server #17 started [Trapper]
      1327:20071023:055824 server #18 started [Trapper]
      1329:20071023:055824 server #19 started [Trapper]
      1331:20071023:055824 server #20 started [Trapper]
      1333:20071023:055824 server #21 started [ICMP pinger]
      1335:20071023:055824 server #22 started [Alerter]
      1337:20071023:055824 server #23 started [Housekeeper]
      1337:20071023:055824 Executing housekeeper
      1339:20071023:055824 server #24 started [Timer]
      1341:20071023:055824 server #25 started [Poller for unreachable hosts. SNMP:OFF]
      1343:20071023:055824 server #26 started [Node watcher. Node ID:1]
      1345:20071023:055825 server #27 started [HTTP Poller]
      1351:20071023:055825 server #28 started [Discoverer. SNMP:OFF]
      32734:20071023:055825 server #0 started [Watchdog]
      1337:20071023:055826 Deleted 0 records from history and trends

      AGENTD:
      32660:20071023:115559 zabbix_agentd started. ZABBIX 1.4.2.
      32661:20071023:115559 zabbix_agentd collector started
      32663:20071023:115559 zabbix_agentd listener started
      32664:20071023:115559 zabbix_agentd listener started
      32665:20071023:115559 zabbix_agentd listener started
      32666:20071023:115559 zabbix_agentd active check started [zabbix.cellar.home:10051]
      32666:20071023:115559 In init_active_metrics()
      32666:20071023:115559 In refresh_metrics('zabbix.cellar.home',10051)
      32666:20071023:115559 get_active_checks('zabbix.cellar.home',10051)
      32666:20071023:115559 Sending [ZBX_GET_ACTIVE_CHECKS
      php4
      ]

      4) This is the Configuration:

      4.1) Server (CentOS v5): zabbix.cellar.home / 192.168.2.208
      4.2) Agent: (CentOS v4.4): php4.cellar.home / 192.168.2.206
      4.3) Both hosted as Virtual Private machines in OpenVZ running in CentOS v4.4

      4.4) /etc/services fo both SERVER & AGENTD:
      zabbix_agent 10050/tcp #zabbix ports
      zabbix_trap 10051/tcp #zabbix ports

      4.5) SERVER ZABBIX config file /etc/zabbix/zabbix_server.conf:

      NodeID=1
      StartPollers=15
      StartPollersUnreachable=1
      StartTrappers=5
      StartPingers=1
      StartDiscoverers=1
      StartHTTPPollers=1
      ListenPort=10051
      ListenIP=192.168.2.208
      HousekeepingFrequency=1
      SenderFrequency=30
      #DisableHousekeeping=1
      DebugLevel=3
      Timeout=5
      TrapperTimeout=10
      UnreachablePeriod=45
      UnavailableDelay=15
      UnavailableDelay=60
      PidFile=/tmp/zabbix_server.pid
      LogFile=/tmp/zabbix_server.log
      LogFileSize=2
      AlertScriptsPath=/home/zabbix/bin/
      #ExternalScripts=/etc/zabbix/externalscripts
      FpingLocation=/usr/sbin/fping
      PingerFrequency=30
      DBHost=localhost
      DBName=zabbix
      DBUser=zabbix
      DBPassword=test
      #DBSocket=/var/lib/mysql/mysql.sock

      4.6) AGENT ZABBIX config file /etc/zabbix/zabbix_agentd.conf:

      Server=zabbix.cellar.home
      ServerPort=10051
      Hostname=php4.cellar.home
      ListenPort=10050
      ListenIP=192.168.2.206
      StartAgents=5
      RefreshActiveChecks=60
      DisableActive=0
      EnableRemoteCommands=1
      DebugLevel=5
      PidFile=/tmp/zabbix_agentd.pid
      LogFile=/tmp/zabbix_agentd.log
      LogFileSize=2
      Timeout=10

                  1. USER-DEFINED MONITORED PARAMETERS #######
                    UserParameter=system.test,who|wc -l
          1. Set of parameter for monitoring MySQL server (v3.23.42 and later)
          2. Change -u<username> and add -p<password> if required
            #UserParameter=mysql.ping,mysqladmin -uroot ping|grep alive|wc -l
            #UserParameter=mysql.uptime,mysqladmin -uroot status|cut -f2 -d":"|cut -f1 -d"T"
            #UserParameter=mysql.threads,mysqladmin -uroot status|cut -f3 -d":"|cut -f1 -d"Q"
            #UserParameter=mysql.questions,mysqladmin -uroot status|cut -f4 -d":"|cut -f1 -d"S"
            #UserParameter=mysql.slowqueries,mysqladmin -uroot status|cut -f5 -d":"|cut -f1 -d"O"
            #UserParameter=mysql.qps,mysqladmin -uroot status|cut -f9 -d":"
            UserParameter=mysql.version,mysql -V

            Assignee:
            Alexei Vladishev
            Reporter:
            Marc Hanssen
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: