Poller problem

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
odmon
Posts: 14
Joined: Fri Feb 22, 2008 12:30 pm

Poller problem

Post by odmon »

I have very strange behavior of poller. When the poller is run from cron (normal operation) the monitored device responds with not-existing/unknown to the queried oid, but when I run poller.php from command line it works fine. I have runned them 30 seconds one after another and during this change nothing changes in snmp tree (polled value is all the time there according to snmpwalk).
I have even compared to snmp-req packets that are sent when poller runs (cron and manually) and it look almost the same, only the response differs- poller from cron get unknown when manual poller gets real value. So it looks that snmpwalk and manual poller gets proper response and cron poller does not. I have no idea why it can be like that.
Has anyone have any idea why it is like that or where to search the problem

I use cacti 0.8.7b, poller is cmd.php
Thanks
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

WHich version of snmp is used on cacti host?
Reinhard
odmon
Posts: 14
Joined: Fri Feb 22, 2008 12:30 pm

Post by odmon »

It is fully updated Debian etch with net-snmp 5.2.3
odmon
Posts: 14
Joined: Fri Feb 22, 2008 12:30 pm

Post by odmon »

I just changed the poller to spine and works fine, going back to cmd.php generates the same problem again. Very strange but at last it works with spine
ingenious
Posts: 7
Joined: Wed Jul 02, 2008 8:13 am

Post by ingenious »

could you post your cron entry ?

I had the same problem and I had to use
*/1 * * * * cd /path/to/cacti; php poller.php > /dev/null 2>&1

And it worked :) Also try redirecting the output like:
*/1 * * * * cd /path/to/cacti; php poller.php >> /tmp/poller.log

It might provide helpful information.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests