Issues with graphing single value
Moderators: Developers, Moderators
Issues with graphing single value
I am having issues with Cacti not graphing a specific OID on a metered PDU; Cacti is graphing and operating normally on all other devices I have configured. As far as I can tell the data template and graph templates are configured properly and I do see the SNMP information in the cacti log; it is just not placing anything in the graph (the same device is returning interface traffic stats no problem so I know its not the end device. Any help or ideas would be greatly appreciated.
Cacti Version = 0.8.6f
SNMP Version = 1
Device Type = APC Metered PDU
Cacti Version = 0.8.6f
SNMP Version = 1
Device Type = APC Metered PDU
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What is the devices status in the device list?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
What do you get if you attempt to snmpget the OID manually?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
I recieve the proper response; esstential this is an APC metered PDU and I am trying to retrun the amp load on the PDU. Below is the snmpget/walk output. This number is then divided by 10 (via CDEF) to get the amp load; but the original value is not being inserted into the RRD; but it does show up in the cacti.log as retriving the proper value.
# snmpget -c 'xxxx' -v 1 192.168.1.200 PowerNet-MIB::rPDULoadStatusLoad.1
PowerNet-MIB::rPDULoadStatusLoad.1 = Gauge32: 50
# snmpget -c 'xxxx' -v 1 -O n 192.168.1.200 PowerNet-MIB::rPDULoadStatusLoad.1
.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 = Gauge32: 50
# snmpget -c 'xxxx' -v 1 192.168.1.200 PowerNet-MIB::rPDULoadStatusLoad.1
PowerNet-MIB::rPDULoadStatusLoad.1 = Gauge32: 50
# snmpget -c 'xxxx' -v 1 -O n 192.168.1.200 PowerNet-MIB::rPDULoadStatusLoad.1
.1.3.6.1.4.1.318.1.1.12.2.3.1.1.2.1 = Gauge32: 50
1) Look in your poller cache for this entry, do you see it? If so paste the command.
2) With the logging level turned to debug, paste the command cacti executed for this snmp oid.
2) With the logging level turned to debug, paste the command cacti executed for this snmp oid.
| Scripts: Monitor processes | RFC1213 MIB | DOCSIS Stats | Dell PowerEdge | Speedfan | APC UPS | DOCSIS CMTS | 3ware | Motorola Canopy |
| Guides: Windows Install | [HOWTO] Debug Windows NTFS permission problems |
| Tools: Windows All-in-one Installer |
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
You mentioned, that fetching the value via snmp works as seen in your cacti.log. So, what about the rrdtool update? Do you see that statement for the rrd file in question? What about cutting this from the log to command line and executing this manually? This is to verify, that this rrd was created correctly.
Another oprion would be to run the poller manually and have a look at the STDERR output (which normally goes to /dev/null). Even here you might see errors from rrdtool statements, but it produces lots of messages.
Reinhard
Another oprion would be to run the poller manually and have a look at the STDERR output (which normally goes to /dev/null). Even here you might see errors from rrdtool statements, but it produces lots of messages.
Reinhard
If I adjust the time for the update to the current time then the commands listed below run just fine "RRDTool Update"; if I just run the commands then they do no work because of the time offset.
/usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/pduap780201_red_na_invmc_com_apc7381pudampload_102.rrd --template apc7381pudAmpLoad 1130536321:55
/usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/pduap780201_red_na_invmc_com_apc7381pudampload_103.rrd --template apc7381pduAmpLoad 1130866442:54
/usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/pduap780201_red_na_invmc_com_apc7381pudampload_102.rrd --template apc7381pudAmpLoad 1130536321:55
/usr/local/rrdtool/bin/rrdtool update /var/www/html/cacti/rra/pduap780201_red_na_invmc_com_apc7381pudampload_103.rrd --template apc7381pduAmpLoad 1130866442:54
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Fine, so updating is not the problem (we already talked about the permissions, right?). There will be no need to verify this using "rrdtool fetch <dsname> AVERAGE". Let's turn to the graph. Please select the failing one and click on the wrench. You will see the rrdtool graph statements used for this graph; post them, please.
Reinhard
Reinhard
Here is the RRDTool command genrating the graph image; a portion of the tital and DS name were substituted.
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pduAP7802-01 domain_name - Amp Load" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/pduap780201_domain_name_apc7381ampload_430.rrd":apc7381AmpLoad:AVERAGE \
CDEF:cdefa=a,10,/ \
AREA:cdefa#FF0000:"" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pduAP7802-01 domain_name - Amp Load" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/pduap780201_domain_name_apc7381ampload_430.rrd":apc7381AmpLoad:AVERAGE \
CDEF:cdefa=a,10,/ \
AREA:cdefa#FF0000:"" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Well, this looks good. You may run it from cli. There should be lots of hieroglyphs.satcom2k wrote:Here is the RRDTool command genrating the graph image; a portion of the tital and DS name were substituted.
/usr/local/rrdtool/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="pduAP7802-01 domain_name - Amp Load" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/html/cacti/rra/pduap780201_domain_name_apc7381ampload_430.rrd":apc7381AmpLoad:AVERAGE \
CDEF:cdefa=a,10,/ \
AREA:cdefa#FF0000:"" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
May be there something wrong with the maximum value in your data source. Look at your data template, select the appropriate data source (e.g. apc7381AmpLoad) and verify the settings of the maximum value: Is there a "100"? Do your values exceed this one? In that case, rrdtool will supress them so they won't show up on your graph.
Or do a "rrdtool fetch <dataset> AVERAGE" and look at the results. If they read "NaN" there would be no update (up this should not occur, as updates are ok). Please post (last 10 lines may be enough).
Reinhard
Who is online
Users browsing this forum: No registered users and 1 guest