[solved] SNMP error

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

Moderators: Developers, Moderators

Post Reply
zaszx
Posts: 3
Joined: Wed Aug 18, 2010 1:52 am

[solved] SNMP error

Post by zaszx »

Hello,

Seems like cacti is not creating the rrd files, and I also see a red SNMP error on my device page.

I have
-Windows 2008 Server R2
-Cacti 0.8.7e
-Spine 0.8.7e
-Apache 2.2.14
-MySQL 5.0.88
-PHP 5.2.11
-Net-SNMP 5.5.0.2
-RRDTool 1.2.30
-GetIF 2.3.1
I used the windows installer found here http://forums.cacti.net/viewtopic.php?t=14946 to install cacti.

The debug info found in the device page:

Data Query Debug Information

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ No SNMP data returned
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at 'C:/Apache2/htdocs/cacti/resource/snmp_queries/interface.xml'


rrdtool debug:

RRDTool Command:

C:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pegas-router - Traffic" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="bits per second" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="C\:/Apache2/htdocs/cacti/rra/3/8.rrd":5min_cpu:AVERAGE \
CDEF:cdefa=a,8,* \
CDEF:cdefe=a,8,* \
AREA:cdefa#00CF00FF:"Inbound" \
GPRINT:cdefa:LAST:" Current\:%8.2lf %s" \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n" \
LINE1:cdefe#002A97FF:"Outbound" \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s" \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:

ERROR: opening 'C:/Apache2/htdocs/cacti/rra/3/8.rrd': No such file or directory


cacti logs: (in debug mode)

08/18/2010 10:05:05 AM - SYSTEM STATS: Time:5.3673 Method:cmd.php Processes:2 Threads:N/A Hosts:4 HostsPerProcess:2 DataSources:2 RRDsProcessed:0
08/18/2010 10:05:04 AM - CMDPHP: Poller[0] Time: 2.8801 s, Theads: N/A, Hosts: 1
08/18/2010 10:05:04 AM - CMDPHP: Poller[0] Host[4] SNMP: Host did not respond to SNMP
08/18/2010 10:05:02 AM - CMDPHP: Poller[0] Time: 1.0450 s, Theads: N/A, Hosts: 1
08/18/2010 10:05:02 AM - CMDPHP: Poller[0] Host[3] SNMP: Host did not respond to SNMP
08/18/2010 10:05:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 4 4]
08/18/2010 10:05:01 AM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/18/2010 10:05:01 AM - POLLER: Poller[0] NOTE: There are no items in your poller for this polling cycle!
08/18/2010 10:05:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 3 3]
08/18/2010 10:05:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 2 2]
08/18/2010 10:05:00 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 0 0]
08/18/2010 10:05:00 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'

I checked if it is an error with permissions and denied access, it seems like it is not. Can anyone please help me?
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Re: SNMP error

Post by BSOD2600 »

zaszx wrote:I also see a red SNMP error on my device page.
This is the source of your first main problem. the snmp agent is not configured properly or a firewall is blocking snmp traffic.
zaszx
Posts: 3
Joined: Wed Aug 18, 2010 1:52 am

Post by zaszx »

ok, I finally got rid of that snmp error. Now there is a graph being shown, but it is empty. I searched for that empty graph problem, seems like it is a common one, but unfortunately I couldnt find a solution


when I try to snmpwalk an oid manually i see this

PS C:\net-snmp\bin> snmpwalk -c pgs-senemepe -v 2c 192.168.0.227 .1.3.6.1.2.1.25.2.3.1
HOST-RESOURCES-MIB::hrStorageEntry = No Such Object available on this agent at this OID


not only for .1.3.6.1.2.1.25.2.3.1, I tried many more, result is the same.

How can I fix this?

Also, here are the logs:

08/19/2010 03:50:06 PM - SYSTEM STATS: Time:5.3977 Method:cmd.php Processes:2 Threads:N/A Hosts:3 HostsPerProcess:2 DataSources:6 RRDsProcessed:6
08/19/2010 03:50:06 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\6\11.rrd --template 5min_cpu 1282258203:U
08/19/2010 03:50:06 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\7\17.rrd --template 5min_cpu 1282258205:U
08/19/2010 03:50:06 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\9\15.rrd --template proc 1282258205:U
08/19/2010 03:50:06 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\9\16.rrd --template users 1282258205:U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Time: 4.3116 s, Theads: N/A, Hosts: 2
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] DS[16] SNMP: v2: 192.168.0.227, dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] DS[16] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] DS[15] SNMP: v2: 192.168.0.227, dsname: proc, oid: .1.3.6.1.2.1.25.1.6.0, output: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] DS[15] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] RECACHE: Processing 3 items in the auto reindex cache for '192.168.0.227'.
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[9] SNMP: Host responded to SNMP
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[7] DS[17] SNMP: v2: localhost, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[7] DS[17] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[7] RECACHE: Processing 3 items in the auto reindex cache for 'localhost'.
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[7] SNMP: Host responded to SNMP
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[6] DS[11] SNMP: v2: 85.31.124.254, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
08/19/2010 03:50:05 PM - CMDPHP: Poller[0] Host[6] DS[11] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:04 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\3\8.rrd --template 5min_cpu 1282258201:U
08/19/2010 03:50:04 PM - POLLER: Poller[0] CACTI2RRD: C:/rrdtool/rrdtool.exe update C:\Apache2\htdocs\cacti\rra\4\10.rrd --template snmp_oid 1282258203:U
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[6] PING: Ping not performed due to setting.
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[4] DS[10] SNMP: v2: 192.168.0.226, dsname: snmp_oid, oid: , output: U
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[4] DS[10] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[4] PING: Ping not performed due to setting.
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[3] DS[8] SNMP: v2: 85.31.124.254, dsname: 5min_cpu, oid: .1.3.6.1.4.1.9.2.1.58.0, output: U
08/19/2010 03:50:03 PM - CMDPHP: Poller[0] Host[3] DS[8] WARNING: Result from SNMP not valid. Partial Result: U
08/19/2010 03:50:01 PM - CMDPHP: Poller[0] Host[3] PING: Ping not performed due to setting.
08/19/2010 03:50:00 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: C:/php/php.exe, ARGS: -q "c:/apache2/htdocs/cacti/cmd.php" 0 9]
08/19/2010 03:50:00 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Scheduled Task Int: '300', Time Since Last: '300', Max Runtime '298', Poller Runs: '1'
zaszx
Posts: 3
Joined: Wed Aug 18, 2010 1:52 am

Post by zaszx »

ok, problem solved
response_vasi
Posts: 5
Joined: Sat Jan 29, 2011 4:57 pm

Re: [solved] SNMP error

Post by response_vasi »

Can you please tell me what you did to solve the issue. I have exactly the same problem with SNMP error and rrd tools error.

Regards
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest