SNMP OID Data Type Graphs return -1# value

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

Moderators: Developers, Moderators

Post Reply
bigB
Posts: 3
Joined: Thu Jul 21, 2005 12:12 pm

SNMP OID Data Type Graphs return -1# value

Post by bigB »

After a few hick-ups I believe to have a succesful installation of Cacti (thanks to the posts/replies on this Forum).

I'm able to setup new devices (Cisco router, Wireless AP and Linux Machines) and then generate graphs without a hitch using the canned data and graph templates.

On remote Linux boxes I'm able to monitor and generate graphs for eth traffic and hard drive mount points (free disk space, etc.) again using the canned data templates and graphs.

Per the Cacti install doc (Section: Graph a Single SNMP OID) I'm trying to create new graphs for the linux boxes mentioned above. The two OID's I've been most focused on is Total Memory (.1.3.6.1.4.1.2021.4.5) and Memory Free (.1.3.6.1.4.1.2021.4.11) - The steps are followed as directed, the graph generates however the data values for Current: Average: and Maximum are -1#J and of course no data is represented on the grid. I want to be clear - the graph is generating just not displaying data.

On the remote linux box I can successfully run the following command:
snmpwalk -v1 -c public localhost .1.3.6.1.4.1.2021.4.5

The above line echos a response of:
UCD-SNMP-MIB::memTotalReal.0 = INTEGER: 511924

Additionally, I can run the same command on my Cacti NMS replacing localhost w/ the IP address of the remote machine. On the Cacti NMS the same UCD-SNMP line is displayed successfully.

Next I looked in the \cacti\rra directory making sure the rrd is created and being updated at the poller interval I set - and it is. There is a machinename_snmp_oid_39.rrd file thats updated per the schedule.
---
In debug mode - the poller output is as follows:

C:\>c:\php\php.exe c:\apache\htdocs\cacti\poller.php
Content-type: text/html
X-Powered-By: PHP/4.4.0

07/21/2005 10:47:14 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: c:\php\php.exe, ARGS: -q c:\apache\htdocs\
cacti/cmd.php 0 8]
Waiting on 1/1 pollers.
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_snmp_oid_42.rrd --template snmp_oid 1121968034:U
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_traffic_in_14.rrd --template traffic_in:traffic_out 1121968034:4342603:2447313
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_hdd_total_17.rrd --template hdd_total:hdd_used 1121968034:103515136:9554944
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_hdd_total_18.rrd --template hdd_total:hdd_used 1121968034:524210176:329547776
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_hdd_total_19.rrd --template hdd_total:hdd_used 1121968034:1069277184:0
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_snmp_oid_44.rrd --template snmp_oid 1121968034:U
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_snmp_oid_43.rrd --template snmp_oid 1121968034:U
OKac
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_hdd_total_20.rrd --template hdd_total:hdd_used 1121968034:0:0
OK
07/21/2005 10:47:15 AM - POLLER: Poller[0] CACTI2RRD: c:\rrdtool\rrdtool.exe update c:\apache\htdocs\cacti\rra\bw_vmware_linux_el3
_hdd_total_16.rrd --template hdd_total:hdd_used 1121968034:5181374464:3004682240
OK
07/21/2005 10:47:15 AM - SYSTEM STATS: Time: 1.0555 s, Method: cmd.php, Processes: 1, Threads: N/A, Hosts: 4, Hosts/Process: 4, Da
ta Sources 15, RRDs Processed 9

---
The properties of the graph is:
c:\rrdtool\rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="bw vmWare Linux EL3 - Total Free" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
DEF:a="c\:\apache\htdocs\cacti/rra/bw_vmware_linux_el3_snmp_oid_43.rrd":snmp_oid:AVERAGE \
AREA:a#F5F800:"" \
GPRINT:a:LAST:"Current\:%8.2lf %s" \
GPRINT:a:AVERAGE:"Average\:%8.2lf %s" \
GPRINT:a:MAX:"Maximum\:%8.2lf %s\n"

---
When I turn on the graph in debug mode on the bottom right it says RRDTool Says: Ok

---
I've tried incrementing the Max Value in Data Source. When turning debug on in the Data Source I get:
c:\rrdtool\rrdtool.exe create \
c:\apache\htdocs\cacti/rra/linux_el3_snmp_oid_42.rrd \
--step 300 \
DS:snmp_oid:GAUGE:600:0:100000000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \

---
The Cacti NMS is running:
- Windows XP Pro
- Apache 1.3.33
- Cacti 0.8.6f
- Cactid 0.8.6e
- net-snmp 5.2.1.1
- PHP 4.4.0
- rrd 1.0.49
- MySQL 4.1.12a

Any leads or directions is MUCH appreciated.
Thanks - 'B'
bigB
Posts: 3
Joined: Thu Jul 21, 2005 12:12 pm

How to graph output of free-o in linux

Post by bigB »

We are trying to gather statistics on memory and cpu usage for our system.

How do I graph using cacti?

thx
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests