Cacti (home)ForumsRepositoryDocumentation
Cacti: offical forums and support  

 FAQFAQ   SearchSearch   MemberlistMemberlist    RegisterRegister   ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in    


Poller problem

 
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific
Author Message
odmon



Joined: 22 Feb 2008
Posts: 8

PostPosted: Mon Jul 07, 2008 5:25 am    Post subject: Poller problem Reply with quote

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

PostPosted: Mon Jul 07, 2008 5:51 am    Post subject: Reply with quote

WHich version of snmp is used on cacti host?
Reinhard
Back to top
odmon



Joined: 22 Feb 2008
Posts: 8

PostPosted: Mon Jul 07, 2008 6:59 am    Post subject: Reply with quote

It is fully updated Debian etch with net-snmp 5.2.3
Back to top
odmon



Joined: 22 Feb 2008
Posts: 8

PostPosted: Mon Jul 07, 2008 3:15 pm    Post subject: Reply with quote

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

PostPosted: Wed Jul 30, 2008 8:45 am    Post subject: Reply with quote

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
Display posts from previous:   
Post new topic   Reply to topic    Cacti Forum Index -> Help: Linux/Unix Specific All times are GMT - 5 Hours
Page 1 of 1

 



Powered by phpBB © 2001, 2005 phpBB Group