|
|
| Author |
Message |
odmon
Joined: 22 Feb 2008 Posts: 8
|
Posted: Mon Jul 07, 2008 5:25 am Post subject: Poller problem |
|
|
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 |
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Mon Jul 07, 2008 5:51 am Post subject: |
|
|
WHich version of snmp is used on cacti host?
Reinhard |
|
| Back to top |
|
 |
odmon
Joined: 22 Feb 2008 Posts: 8
|
Posted: Mon Jul 07, 2008 6:59 am Post subject: |
|
|
| It is fully updated Debian etch with net-snmp 5.2.3 |
|
| Back to top |
|
 |
odmon
Joined: 22 Feb 2008 Posts: 8
|
Posted: Mon Jul 07, 2008 3:15 pm Post subject: |
|
|
| 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 |
|
| Back to top |
|
 |
ingenious
Joined: 02 Jul 2008 Posts: 7
|
Posted: Wed Jul 30, 2008 8:45 am Post subject: |
|
|
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. |
|
| Back to top |
|
 |
|