[solved] SNMP Error

Post support questions that relate to the Windows 2003/2000/XP operating systems.

Moderators: Developers, Moderators

Post Reply
jjteo
Posts: 8
Joined: Tue Aug 02, 2011 10:18 am

[solved] SNMP Error

Post by jjteo »

Hi , after i installed cacti i am unable to add a device without having an SNMP Error in red at the top left when i am saving the device.

Operating System: Windows 7 (32-bit)
Webserver: IIS 7
Cacti: 0.8.7g
Spine:0.8.7g
MySQL:5.1.50
PHP:5.2.14
RRDTool (Cygwin or Win32 version):1.2.30
Net-SNMP:5.5.0.2
Cygwin (cygwin1.dll version):1.7.5

Code: Select all

08/03/2011 04:00:01 PM - SYSTEM STATS: Time:1.2345 Method:cmd.php Processes:4 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:0 RRDsProcessed:0
08/03/2011 04:00:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 04:00:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 04:00:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 15 15]
08/03/2011 04:00:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 0 0]
08/03/2011 04:00:00 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
08/03/2011 04:00:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '60', Time Since Last: '300', Max Runtime '58', Poller Runs: '0.2'
08/03/2011 03:55:01 PM - SYSTEM STATS: Time:1.2323 Method:cmd.php Processes:4 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:0 RRDsProcessed:0
08/03/2011 03:55:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 03:55:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 03:55:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 15 15]
08/03/2011 03:55:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 0 0]
08/03/2011 03:55:00 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
08/03/2011 03:55:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '60', Time Since Last: '300', Max Runtime '58', Poller Runs: '0.2'
08/03/2011 03:53:31 PM - CMDPHP: Poller[0] WARNING: SNMP GetNext Timeout for Host:'192.168.1.76', and OID:'.1.3'
08/03/2011 03:53:21 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.1.1.0'
08/03/2011 03:52:56 PM - CMDPHP: Poller[0] WARNING: SNMP GetNext Timeout for Host:'192.168.1.76', and OID:'.1.3'
08/03/2011 03:52:46 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.1.1.0'
08/03/2011 03:52:26 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.1.3.0'
08/03/2011 03:52:06 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.3.3.1'
08/03/2011 03:51:56 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.3.3.1'
08/03/2011 03:51:46 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.3.3.1'
08/03/2011 03:51:36 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.1.3.0'
08/03/2011 03:51:16 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.4'
08/03/2011 03:51:06 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.1'
08/03/2011 03:50:55 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.3'
08/03/2011 03:50:45 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.1'
08/03/2011 03:50:35 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.1'
08/03/2011 03:50:25 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.1'
08/03/2011 03:50:15 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.25.2.3.1.1'
08/03/2011 03:50:05 PM - CMDPHP: Poller[0] WARNING: SNMP Get Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.1.3.0'
08/03/2011 03:50:01 PM - SYSTEM STATS: Time:1.2309 Method:cmd.php Processes:4 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:0 RRDsProcessed:0
08/03/2011 03:50:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 03:50:00 PM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/03/2011 03:50:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 15 15]
08/03/2011 03:50:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/inetpub/wwwroot/cacti/cmd.php" 0 0]
08/03/2011 03:50:00 PM - POLLER: Poller[0] WARNING: Scheduled Task is out of sync with the Poller Interval! The Poller Interval is '300' seconds, with a maximum of a '300' second Scheduled Task, but 300 seconds have passed since the last poll!
08/03/2011 03:50:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '60', Time Since Last: '300', Max Runtime '58', Poller Runs: '0.2'
08/03/2011 03:49:45 PM - CMDPHP: Poller[0] WARNING: SNMP Walk Timeout for Host:'192.168.1.76', and OID:'.1.3.6.1.2.1.2.2.1.1'
It seems that i am unable to get an SNMP response from Getif.
I am using the windows installer that Bsod2006 created.
Does anyone have any ideas on how to resolve the snmp error?

EDIT: Does perl have to be installed for snmp to run?

Thanks
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP Error

Post by BSOD2600 »

jjteo wrote:Hi , after i installed cacti i am unable to add a device without having an SNMP Error in red at the top left when i am saving the device.
This means the windows snmp agent has not been installed, configured, or a firewall is blocking the snmp data.
jjteo wrote:EDIT: Does perl have to be installed for snmp to run?
No.
jjteo
Posts: 8
Joined: Tue Aug 02, 2011 10:18 am

Re: SNMP Error

Post by jjteo »

BSOD2600 wrote:
jjteo wrote:Hi , after i installed cacti i am unable to add a device without having an SNMP Error in red at the top left when i am saving the device.
This means the windows snmp agent has not been installed, configured, or a firewall is blocking the snmp data.
jjteo wrote:EDIT: Does perl have to be installed for snmp to run?
No.
Sorry i am a newbie to SNMP , i've used your installer and SNMP is installed in C:/net-snmp.
According to the Read-me file , i would need to download Win32 REGEX and install perl am i right?
Where would i type the commands ppm install NetSNMP.ppd?

Sorry and Thanks again :)
User avatar
willieb
Cacti User
Posts: 160
Joined: Thu Jan 22, 2009 10:09 am
Location: South GA

Re: SNMP Error

Post by willieb »

Perl is not needed. Exactly what are you trying to monitor? A Windows machine? And what OS? If it's a windows server or XP Pro, etc. follow this guide:

http://support.microsoft.com/kb/324263

All you need to do is install the component and configure a community string. Don't worry about setting up traps, it's not needed.
-willieb
jjteo
Posts: 8
Joined: Tue Aug 02, 2011 10:18 am

Re: SNMP Error

Post by jjteo »

willieb wrote:Perl is not needed. Exactly what are you trying to monitor? A Windows machine? And what OS? If it's a windows server or XP Pro, etc. follow this guide:

http://support.microsoft.com/kb/324263

All you need to do is install the component and configure a community string. Don't worry about setting up traps, it's not needed.
Hi i am trying to monitor a windows server and maybe a linux server later on. How would i configure the community string? As i cant seem to find what is stated in the guide which says
check boxes next to the services that are provided by your computer.
And when i run the smpdconf file it tells me to install perl.

EDIT: Btw i am running on win 7 32 bit

Thanks
User avatar
willieb
Cacti User
Posts: 160
Joined: Thu Jan 22, 2009 10:09 am
Location: South GA

Re: SNMP Error

Post by willieb »

Install the component, open services, right-click the SNMP Service and click properties. It's under the security tab:
01 Aug. 04, 2011 00.40.jpg
01 Aug. 04, 2011 00.40.jpg (115.03 KiB) Viewed 12110 times
-willieb
jjteo
Posts: 8
Joined: Tue Aug 02, 2011 10:18 am

Re: SNMP Error

Post by jjteo »

I have done the above but i am still getting a no SNMP Response from my localhost which is 192.168.1.76

EDIT:Image



EDIT2: I've solved it. To anyone out there looking for the solution you just have to create a snmpd.conf at C:\net-snmp\etc\snmp with

Code: Select all

rocommunity public
Thanks
User avatar
willieb
Cacti User
Posts: 160
Joined: Thu Jan 22, 2009 10:09 am
Location: South GA

Re: [solved] SNMP Error

Post by willieb »

I've never had to install snmpd.conf, I've always used Windows SNMP service. I'm glad you got it working though.

One note to someone else that wants to use the Windows SNMP service is that "localhost" should always resolve to 127.0.0.1 which is "itself". So by default the Windows SNMP service only allows SNMP packets from itself. If the cacti install is on a different server then you'll need to click "add" to accept SNMP packets from the cacti server. Simply enter the cacti server main IP or the full dns name. It's always worked for me and I've setup many windows machines for monitoring.
-willieb
hshaik
Posts: 12
Joined: Fri Oct 14, 2011 11:52 am

Re: [solved] SNMP Error

Post by hshaik »

I am having the same issues. I actually have one cacti server installed and with that I have no issues. The new cacti server however keeps giving me snmp error even after I added new cacti ip on the snmp accept list. I have turned off all the firewall to make sure its not on that side. The only device that shows up is the new cacti server localhost ( even than I dont see all the data queries for win services). As of right now I just have basic cacti core installed running php for now not spine. New Cacti is installed on windows 2003 x32, on iis 6 and fast cgi. I am a newbie trying to read about information with no luck. Any help would be highly appreciated.

thanks
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests