G'day,
I was wondering if anyone could point me in the right direction:
I've just installed Cacti to play around with it. Eventually I would be writing scripts to extract interesting data from the system but just to begin with I wanted to try and graph three values from SNMP on a single host:
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.1 = INTEGER: 91
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.2 = INTEGER: 88
.1.3.6.1.4.1.318.1.1.1.9.3.3.1.10.1.1.3 = INTEGER: 89
I can create Data Sources that use the "SNMP Generic OID Template'. From that, I can get individual graphs of the values. However I would like to somehow overlay these values into one graph.
I'm not quite sure where to go from here. I've had a look in Graph and Data templates but I don't know if I'm to setup a graph template with three inputs (which I've tried but doesn't seem to work correctly) or create a new data template like the indexed snmp data template? I'm not quite sure how it all fits together.
Thank you for any help you can provide. Please let me know if you need any other information.
- Nick
Reading several SNMP values and mapping onto a single graph
Moderators: Developers, Moderators
I did a bit more hunting and found this page which seems to have some interesting ideas. I didn't realise that you had to select graph template "None" in order to have multiple items. (I was choosing the generic SNMP graph template)
There is no graph after I add items though. However, when I turn on graph debugging, I get this information:
Notice there's no reply. RRDtool seems to be working in other places since I can still see the localhost load average. When I paste the command into a root shell, I see nothing there either.
- Nick
There is no graph after I add items though. However, when I turn on graph debugging, I get this information:
Code: Select all
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="UPS Load" \
--base=1000 \
--height=200 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/var/www/html/cacti-0.8.6i/rra/ups_snmp_oid_10.rrd":snmp_oid:AVERAGE \
DEF:b="/var/www/html/cacti-0.8.6i/rra/ups_snmp_oid_11.rrd":snmp_oid:AVERAGE \
DEF:c="/var/www/html/cacti-0.8.6i/rra/ups_snmp_oid_12.rrd":snmp_oid:AVERAGE \
COMMENT:"Phase 1" \
COMMENT:"Phase 2" \
COMMENT:"Phase 3"
RRDTool Says:
- Nick
Who is online
Users browsing this forum: No registered users and 1 guest