[RESOLVED] SNMP Timeout after restore

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
Crupuk
Posts: 2
Joined: Mon Feb 11, 2013 6:47 am

[RESOLVED] SNMP Timeout after restore

Post by Crupuk »

Hello,

I'm trying to create a migration script for my server. When i try to restore cacti i have this error :
02/11/2013 11:55:02 AM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
02/11/2013 11:55:02 AM - CMDPHP: Poller[0] PHP Script Server Started Properly
02/11/2013 11:55:03 AM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'localhost', and OID:'.1.3.6.1.2.1.1.3.0'
02/11/2013 11:55:03 AM - CMDPHP: Poller[0] Host[1] SNMP: Host did not respond to SNMP
02/11/2013 11:55:03 AM - PHPSVR: Poller[0] DEBUG: PHP Script Server Shutdown request received, exiting
02/11/2013 11:55:03 AM - CMDPHP: Poller[0] Time: 1.2513 s, Theads: N/A, Hosts: 1
If i try snmpget i have a reply :
snmpget -v 2c -c public localhost .1.3.6.1.2.1.1.3.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (545927) 1:30:59.27
So, after a few day of research, i have found how to make it work, but it's not a valid solution :

- Install cacti
- Restore rrd file
- Start cron
- Go to device admin page : http://localhost/cacti/host.php
- Select host and, just save the form

Just after this modification, it works :
02/11/2013 12:00:01 PM - PHPSVR: Poller[0] PHP Script Server has Started - Parent is cmd
02/11/2013 12:00:01 PM - CMDPHP: Poller[0] PHP Script Server Started Properly
02/11/2013 12:00:01 PM - CMDPHP: Poller[0] Host[1] SNMP: Host responded to SNMP
02/11/2013 12:00:01 PM - CMDPHP: Poller[0] Host[1] RECACHE: Processing 1 items in the auto reindex cache for '127.0.0.1'.
So I compared the records in the table host :
Before :
"1","1","vm.local","127.0.0.1",,"public","2",,,"MD5",,"DES",,"161","500","2","2","23","500","1","10","1",,"1","7","0000-00-00 00:00:00","0000-00-00 00:00:00","Host did not respond to SNMP","0.13000","2561.00000","0.80000","3.59454","351196","26","99.99260","0"
After request to host admin page ( Before cron ):
"1","1","vm.local","127.0.0.1",,"public","2",,,"MD5",,"DES",,"161","500","2","2","23","500","1","10","1",,"1","7","0000-00-00 00:00:00","0000-00-00 00:00:00","Host did not respond to SNMP","0.13000","2561.00000","0.80000","3.59454","351196","26","99.99260","0"
After cron job ( Status = 3 ) :
"1","1","vm.local","127.0.0.1",,"public","2",,,"MD5",,"DES",,"161","500","2","2","23","500","1","10","1",,"3","0","0000-00-00 00:00:00","0000-00-00 00:00:00","Host did not respond to SNMP","0.13000","2561.00000","7.84000","3.59485","351209","26","99.99260","0"
Same data....

What exactly does this administration page hosts ?

Thanks for your help

P.S : Sorry for the basic english , i do my best
Last edited by Crupuk on Mon Feb 11, 2013 1:45 pm, edited 1 time in total.
Crupuk
Posts: 2
Joined: Mon Feb 11, 2013 6:47 am

Re: SNMP Timeout after restore

Post by Crupuk »

Auto reply :

It rebuild the poller cache ( poller_item table )
Post Reply

Who is online

Users browsing this forum: No registered users and 35 guests