pure SNMP Replacement for SNMP - Get Processor Information
Moderators: Developers, Moderators
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
pure SNMP Replacement for SNMP - Get Processor Information
This is a pure (aka FAST) replacement of standard "SNMP - Get Processor Information".
It uses advanced SNMP Data Query XML options to provide not only the data required, but the name of the processor found!
Be prepared, that not all SNMP implementations provide data for this query. Even worse, I encountered some hosts that respond well to query indexing but don't provide the hrProcessorLoad itself.
To verify this, please run snmpwalk against .1.3.6.1.2.1.25.3.3.1.2. If no data found, please update SNMP on the target host!
Reinhard
It uses advanced SNMP Data Query XML options to provide not only the data required, but the name of the processor found!
Be prepared, that not all SNMP implementations provide data for this query. Even worse, I encountered some hosts that respond well to query indexing but don't provide the hrProcessorLoad itself.
To verify this, please run snmpwalk against .1.3.6.1.2.1.25.3.3.1.2. If no data found, please update SNMP on the target host!
Reinhard
- Attachments
-
- cacti087b_data_query_snmp_-_hrprocessorload.xml
- The Data Query to import
Use at least cacti 087b! - (16.01 KiB) Downloaded 1764 times
-
- hrProcessorLoad.xml
- The XML file to be placed into ./resource/snmp_queries
- (1.06 KiB) Downloaded 2143 times
-
- A screenshot
- Bildschirmfoto.png (16.96 KiB) Viewed 25984 times
Last edited by gandalf on Fri Jan 02, 2009 7:14 am, edited 2 times in total.
I'm a problem at the creation of rra files
In graph mangement i have this :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CAB-S03 - hrProcessorLoad |query_hrProcessorFrwID|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Load" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/cab-s03_load_83.rrd":load:AVERAGE \
COMMENT:"CPU\: |query_hrDeviceDescr|\n" \
AREA:a#FF0000FF:"Load" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/cab-s03_load_83.rrd': No such file or directory
AND in data sources i have this :
/usr/bin/rrdtool create \
/var/www/cacti/rra/cab-s03_load_83.rrd \
--step 300 \
DS:load:GAUGE:600:0:120 \
RRA:AVERAGE:0.5:1:500 \
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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Cactiuser have all rights and i have chmod 777 -r on rra, log and ressources directory.
Please help me
In graph mangement i have this :
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CAB-S03 - hrProcessorLoad |query_hrProcessorFrwID|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Load" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/cab-s03_load_83.rrd":load:AVERAGE \
COMMENT:"CPU\: |query_hrDeviceDescr|\n" \
AREA:a#FF0000FF:"Load" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/cab-s03_load_83.rrd': No such file or directory
AND in data sources i have this :
/usr/bin/rrdtool create \
/var/www/cacti/rra/cab-s03_load_83.rrd \
--step 300 \
DS:load:GAUGE:600:0:120 \
RRA:AVERAGE:0.5:1:500 \
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:500 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
Cactiuser have all rights and i have chmod 777 -r on rra, log and ressources directory.
Please help me
I'm sorry, i have been on holiday
for oid .1.3.6.1.2.1.25.3.3
I have :
snmpwalk result
HOST-RESOURCES-MIB::hrProcessorFrwID.3 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 0
Cacti graph debug mode
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CAB-S03 - hrProcessorLoad |query_hrProcessorFrwID|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Load" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/cab-s03_load_83.rrd":load:AVERAGE \
COMMENT:"CPU\: |query_hrDeviceDescr|\n" \
AREA:a#FF0000FF:"Load" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/cab-s03_load_83.rrd': No such file or directory
for oid .1.3.6.1.2.1.25.3.3
I have :
snmpwalk result
HOST-RESOURCES-MIB::hrProcessorFrwID.3 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.4 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.3 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.4 = INTEGER: 0
Cacti graph debug mode
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="CAB-S03 - hrProcessorLoad |query_hrProcessorFrwID|" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Load" \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/cacti/rra/cab-s03_load_83.rrd":load:AVERAGE \
COMMENT:"CPU\: |query_hrDeviceDescr|\n" \
AREA:a#FF0000FF:"Load" \
GPRINTLAST:"Current\:%8.2lf %s" \
GPRINTAVERAGE:"Average\:%8.2lf %s" \
GPRINTMAX:"Maximum\:%8.2lf %s\n"
RRDTool Says:
ERROR: opening '/var/www/cacti/rra/cab-s03_load_83.rrd': No such file or directory
i did not import the scripts yet, but i was wondering. I have the following output on a SNMP-walk, system is a Compaq dx2300 running Windows XP:
Is this enough output to be usefull?
Code: Select all
snmpwalk -v2c -c <community> <ipadres> .1.3.6.1.2.1.25.3.3
HOST-RESOURCES-MIB::hrProcessorFrwID.6 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorFrwID.7 = OID: SNMPv2-SMI::zeroDotZero
HOST-RESOURCES-MIB::hrProcessorLoad.6 = INTEGER: 0
HOST-RESOURCES-MIB::hrProcessorLoad.7 = INTEGER: 0
ssorLoad.7 = INTEGER: 0
Who is online
Users browsing this forum: No registered users and 2 guests