Ad Widget

Collapse

No data being collected from zabbix server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • mgulin
    Junior Member
    • Mar 2010
    • 3

    #1

    No data being collected from zabbix server

    Hello everybody,

    I've been using this monitoring tool for several years and I'm glad to recognise it as one of the best monitoring solutions I've found out there.

    Nowadays I have some time to build and test the new 1.8.1 version, but I have some kind of problem that's driving me crazy: When I add a host to monitor (for example, localhost) no collected data is shown, no matter what way I try (latest data, overview,...). I don't know why , I'm doing the same steps that worked for older versions (from 1.6 to 1.6.8).

    I've built the test scenario from source, the server is running and listening on *:10051 and the agent is also running on *:10050. I add the host and I link it to the linux template, the host appears on the frontend but no data is collected (I've checked it on the database). The logs don't tell a word about a problem, so I'm a little bit lost.

    I'm using:
    SO: Ubuntu 8.04.4 LTS
    MySQL: 5.0.51a (ubuntu package)
    Apache2: 2.2.8 (ubuntu package)
    PHP: 5.2.4 (ubuntu package)

    Server log:
    4851:20100320:183649.889 Starting zabbix_server. Zabbix 1.8.1 (revision 9702).
    4851:20100320:183649.889 **** Enabled features ****
    4851:20100320:183649.889 SNMP monitoring: YES
    4851:20100320:183649.890 IPMI monitoring: NO
    4851:20100320:183649.890 WEB monitoring: YES
    4851:20100320:183649.890 Jabber notifications: YES
    4851:20100320:183649.890 ODBC: NO
    4851:20100320:183649.890 SSH2 support: NO
    4851:20100320:183649.890 IPv6 support: NO
    4851:20100320:183649.890 **************************
    4852:20100320:183650.074 server #1 started [DB Cache]
    4855:20100320:183650.088 server #4 started [Trapper]
    4856:20100320:183650.093 server #5 started [Trapper]
    4857:20100320:183650.097 server #6 started [ICMP pinger]
    4858:20100320:183650.108 server #7 started [ICMP pinger]
    4859:20100320:183650.113 server #8 started [Alerter]
    4860:20100320:183650.118 server #9 started [Housekeeper]
    4860:20100320:183650.118 Executing housekeeper
    4861:20100320:183650.162 server #10 started [Timer]
    4863:20100320:183650.234 server #12 started [Node watcher. Node ID:1]
    4865:20100320:183650.265 server #13 started [HTTP Poller]
    4866:20100320:183650.296 server #14 started [DB Syncer]
    4868:20100320:183650.311 server #15 started [Escalator]
    4851:20100320:183650.336 server #0 started [Watchdog]
    4854:20100320:183651.461 server #3 started [Poller. SNMP:YES]
    4853:20100320:183651.466 server #2 started [Poller. SNMP:YES]
    4862:20100320:183651.474 server #11 started [Poller for unreachable hosts. SNMP:YES]
    4860:20100320:183716.986 Deleted 0 records from history and trends

    And agent logs:
    4815:20100320:183636.318 zabbix_agentd started. Zabbix 1.8.1 (revision 9702).
    4816:20100320:183636.324 zabbix_agentd collector started
    4817:20100320:183636.334 zabbix_agentd listener started

    Thanks,
    MGulin
  • mgulin
    Junior Member
    • Mar 2010
    • 3

    #2
    More info about the problem

    Hello again!
    I've been research in depth in the forums and in the web, but I (still) haven't found what I'm looking for

    I looked for missing prerequisites, but all seems fine. The packages I've installed are:
    libiksemel-dev libcurl3 libcurl4-openssl-dev libmysqlclient15-dev
    mysql-client jabber-common jabber-dev snmp libsnmp-base libsnmp-dev fping

    And the configure line used:
    ./configure --prefix=/usr/local/zabbix --sysconfdir=/etc/zabbix --bindir=/usr/bin \ --sbindir=/usr/sbin --enable-server --enable-agent --with-mysql --with-net-snmp \
    --with-jabber --with-libcurl

    I've also tried a wireshark capture just to see 2 thins:
    1. The server contacts the database and queries it for info. MySQL answers with the requested info (a deep look into the packet ).
    2. Zabbix server sends neither snmp polling neither ICMP. It's absolutely silent .
    I must say here I can snmpwalk and ping the host I'm trying to monitor (It's wifi network equipement), just to remove the think about routing problems

    I also have increased debug level to 4, and there I can see the queries to the db and their response.

    I'll post here about further investigation I'm going to do. I'm thinking about some problem with some Ubuntu 8.04.4 LTS package so I'm going to try with Debian (that's the only difference beetwen the several installs I have in production and this testing unit).

    See you soon!

    Comment

    • Zaniwoop
      Senior Member
      • Jan 2010
      • 232

      #3
      Hi,

      I have the same problem and I have seen similar posts where others have the same problem.

      As you have, I have also observed that Zabbix stops polling the hosts and all the items move to "More than 10 minutes" in the Queue.

      I have not managed to determine what triggers this.

      Restarting the zabbix_server service 'solves' the problem. But more often than not, I don't pick this up until much later.

      I saw it 1.8 and now in 1.8.1 - never had this problem in 1.6.x

      Annoying

      Comment

      • mgulin
        Junior Member
        • Mar 2010
        • 3

        #4
        Problem solved!

        Hi Zaniwoop!

        My problem was slightly different because I hadn't elements in the queue. After installing Debian and realize that the problem wasn't on any Ubuntu package I found, in zabbix_server.conf, that I have NodeID=1 , so the problem was solved with just simply:
        # /etc/init.d/zabbix-server stop
        # zabbix_server -n 1 -c /etc/zabbix/zabbix_server.conf
        # /etc/init.d/zabbix-server start

        The key question here was that NodeID=1 tells Zabbix to work in multinode mode and the DB tables needed conversion to work properly (that's the meaning of the second command). So the thing about this was that whitout conversion Zabbix reads the DB as I was clearly seing in the debug logs and in the tcpdumps, and it was doing nothing because the defined hosts didn't belong to the NodeID.
        Would be great to see some log message in this kind of situation

        Hope this helps everyone else!
        Regards,

        MGulin

        Comment

        • nibedita@jena
          Junior Member
          • Mar 2022
          • 6

          #5
          hii member's,I have a problem please tell me how can i solve.
          when i am entering the data in the database problem table ,event table and trigger table ,why it not showing in my zabbix frontend Monitoring Problem page.
          I am unable to get the data in the zabbix frontend Monitoring Problem page.

          Comment

          • nibedita@jena
            Junior Member
            • Mar 2022
            • 6

            #6
            hii Zaniwoop​ ,I have a problem please tell me how can i solve.

            when i am entering the data in the database problem table ,event table and trigger table ,why it not showing in my zabbix frontend Monitoring Problem page.
            I am unable to get the data in the zabbix frontend Monitoring Problem page.​

            Comment

            Working...