|
|
| Author |
Message |
paulbeard206 Cacti User
Joined: 30 Jul 2005 Posts: 106
|
Posted: Wed Mar 08, 2006 1:12 am Post subject: Anyone want to try my handiwork? |
|
|
I have created a set of templates for disk read/writes and disk load average ( for systems that support it).
| Description: |
|
| Filesize: |
30.83 KB |
| Viewed: |
4822 Time(s) |

|
| Description: |
|
| Filesize: |
39.52 KB |
| Viewed: |
4822 Time(s) |

|
| Description: |
| This zip file has all the templates. |
|
 Download |
| Filename: |
cacti-DiskIO.zip |
| Filesize: |
14.8 KB |
| Downloaded: |
321 Time(s) |
|
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 611 Location: Izmir/Turkey
|
Posted: Thu Jun 22, 2006 6:06 am Post subject: |
|
|
In order to Document ı create a xml file. But I didnt find index oid. I have only these OIDs:
I have these OIDs:
.1.3.6.1.4.1.6213.2.4.1.1.1
.1.3.6.1.4.1.6213.2.4.1.1.2
.1.3.6.1.4.1.6213.2.4.1.2.1
.1.3.6.1.4.1.6213.2.4.1.2.2
.1.3.6.1.4.1.6213.2.4.1.3.1
.1.3.6.1.4.1.6213.2.4.1.3.2
.1.3.6.1.4.1.6213.2.4.1.4.5
.1.3.6.1.4.1.6213.2.4.1.4.6
.1.3.6.1.4.1.6213.2.4.1.4.7
.1.3.6.1.4.1.6213.2.4.1.4.8
.1.3.6.1.4.1.6213.2.4.1.4.9
.1.3.6.1.4.1.6213.2.4.1.4.10
.1.3.6.1.4.1.6213.2.4.1.4.2
.1.3.6.1.4.1.6213.2.4.1.4.3
.1.3.6.1.4.1.6213.2.4.1.4.4
But I cant find the index oid
How can I write a XML file for these oids?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Thu Jun 22, 2006 7:43 am Post subject: |
|
|
This is hard to guess without the MIB or an snmpwalk output with the textual representation of the OIDs
Reinhard
|
|
| Back to top |
|
 |
TFC Cacti Pro User
Joined: 09 Apr 2003 Posts: 611 Location: Izmir/Turkey
|
Posted: Thu Jun 22, 2006 7:48 am Post subject: |
|
|
| lvm wrote: | This is hard to guess without the MIB or an snmpwalk output with the textual representation of the OIDs
Reinhard |
here is the MIB file
and textual representation:
| Quote: | .iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.sessions.sessActive .1.3.6.1.4.1.6213.2.4.1.1.1 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.sessions.sessTotal .1.3.6.1.4.1.6213.2.4.1.1.2 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.requests.reqActive .1.3.6.1.4.1.6213.2.4.1.2.1 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.requests.reqTotal .1.3.6.1.4.1.6213.2.4.1.2.2 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.bytes.bytesIn .1.3.6.1.4.1.6213.2.4.1.3.1 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.bytes.bytesOut .1.3.6.1.4.1.6213.2.4.1.3.2 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.bytesSaved .1.3.6.1.4.1.6213.2.4.1.4.5 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.avgConnectionsPerDay .1.3.6.1.4.1.6213.2.4.1.4.6 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.avgRequestsPerDay .1.3.6.1.4.1.6213.2.4.1.4.7 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.avgBytesSavedPerDay .1.3.6.1.4.1.6213.2.4.1.4.8 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.avgCPUUsed .1.3.6.1.4.1.6213.2.4.1.4.9 int32
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.avgMemoryUsed .1.3.6.1.4.1.6213.2.4.1.4.10 int32
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.connectionsAccepted .1.3.6.1.4.1.6213.2.4.1.4.2 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.connectionsRefused .1.3.6.1.4.1.6213.2.4.1.4.3 counter64
.iso.org.dod.internet.private.enterprises.juniperDX.dx.dxStats.systemStats.devicePerformance.requestsProcessed .1.3.6.1.4.1.6213.2.4.1.4.4 counter64
|
| Description: |
|
 Download |
| Filename: |
DX-STATS.zip |
| Filesize: |
13.38 KB |
| Downloaded: |
320 Time(s) |
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Fri Jun 23, 2006 8:00 am Post subject: |
|
|
That does not look like an snmptable. These are "only" multiple, but single, OIDs. So you may copy the "SNMP - Generic OID Template" once for each OID are write a wrapper script that queries all those OIDs and spits them out in one single line (a Data Input Method)
Reinhard
|
|
| Back to top |
|
 |
/usr/local/dick
Joined: 11 May 2006 Posts: 3
|
Posted: Wed Jul 19, 2006 6:13 am Post subject: Typo? |
|
|
Very nice walkthrough, but there appear to be some typo's, unfortunately also in the code examples.
Sometimes you refer to hrStoragetable and sometime to hrStoragedTable (note the d).
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Thu Jul 20, 2006 8:47 am Post subject: Re: Typo? |
|
|
| /usr/local/dick wrote: | Very nice walkthrough, but there appear to be some typo's, unfortunately also in the code examples.
Sometimes you refer to hrStoragetable and sometime to hrStoragedTable (note the d). | Thank you for pointing this out. I won't correct this issue here, as a new development system will "soon" be available. This HowTo was ported, too.
Reinhard
|
|
| Back to top |
|
 |
fozzy
Joined: 09 Jan 2006 Posts: 45 Location: SRN VOR 150/8
|
Posted: Mon Aug 21, 2006 10:43 am Post subject: |
|
|
| JJX wrote: | When i try to load the xml of the example ("Chapter I: Building raw XML file") i get these errors:
| Quote: |
Notice: Undefined index: arg_index in /var/www/cacti/lib/data_query.php on line 98
Notice: Undefined index: script_path in /var/www/cacti/lib/data_query.php on line 98
Notice: Undefined index: arg_query in /var/www/cacti/lib/data_query.php on line 109
Notice: Undefined index: query_name in /var/www/cacti/lib/data_query.php on line 109
Notice: Undefined index: script_path in /var/www/cacti/lib/data_query.php on line 109
Warning: Cannot modify header information - headers already sent by (output started at /var/www/cacti/lib/data_query.php:9 in /var/www/cacti/host.php on line 129 |
any idea? |
got this fixed by adding
error_reporting(E_ERROR);
as the first line of data_query.php
Luca
|
|
| Back to top |
|
 |
fury
Joined: 31 Dec 2006 Posts: 8
|
Posted: Sun Dec 31, 2006 7:03 am Post subject: |
|
|
hi *,
i created a graph for SNMP CPU load according to this howto, but i
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Sun Dec 31, 2006 8:34 am Post subject: |
|
|
Please repeat your question and do not use "strange" characters, phpBB does not like them
Reinhard
|
|
| Back to top |
|
 |
fury
Joined: 31 Dec 2006 Posts: 8
|
Posted: Sun Dec 31, 2006 9:01 am Post subject: |
|
|
i went through this howto for getting the cpu load of an win server by snmp and got an error making the graph. here is the errormessage:
| Code: |
RRDTool Command:
/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="fit-w2ks-amd - CPU Load" \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="" \
--slope-mode \
DEF:a="/usr/local/cacti/rra/fitw2ksamd_cpu_load_windows_30.rrd":CPU_Load_Windows:AVERAGE \
LINE1:a#FF0000:"Procent"
RRDTool Says:
ERROR: opening '/usr/local/cacti/rra/fitw2ksamd_cpu_load_windows_30.rrd': No such file or directory
|
here is my xml file:
| Code: | <interface>
<name>Get Windows CPU Load</name>
<description>Get SNMP based Partition Information out of hrStorageTable</description>
<index_order_type>numeric</index_order_type>
<oid_index>1.3.6.1.2.1.25.3.3.1</oid_index>
<fields>
<hrProcessorLoad>
<name>Index</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.2.1.25.3.3.1.2</oid>
</hrProcessorLoad>
</fields>
</interface>
|
where is my mistake?
thx 4 help and happy new year!
Andre
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Mon Jan 01, 2007 9:43 am Post subject: |
|
|
Please run from command line
| Code: | | snmpwalk -c <community> -v 1 <host> 1.3.6.1.2.1.25.3.3.1 | to check, if the host is responding. Please prepend your OIDs in the XML file with a leading . (dot).
Reinhard
|
|
| Back to top |
|
 |
fury
Joined: 31 Dec 2006 Posts: 8
|
Posted: Mon Jan 01, 2007 10:16 am Post subject: |
|
|
thx.
now it is working. i restarted the snmp deamon and it worked.
Andre
|
|
| Back to top |
|
 |
finn
Joined: 06 Dec 2007 Posts: 6
|
Posted: Mon Feb 25, 2008 8:40 pm Post subject: Re: Chapter II: Insert all descriptive table columns |
|
|
| Quote: | e.g. the first Description will be fetched from OID = .1.3.6.1.2.1.25.2.3.1.3.1 (that is base OID = .1.3.6.1.2.1.25.2.3.1.3 together with the appended index .1 will form the complete OID .1.3.6.1.2.1.25.2.3.1.3.1.
|
Just trying to understand the behavour of this
From what I can see a "walk" on input will not have the index appended, but for output it will?
As when I was trying to get the descriptions for various CPU 5 min averages from a router for which there are multiple CPUs, the descriptions were stored amongst descriptions for other stuff. Therefore a walk would return a whole pile of unrelevant descriptions (meaning the index value was not appended to the OID)and was of no use to me. I had to use method "get" to ensure I only received the descriptions I was after based on the index values.
But if direction set to output a walk willl have index values appended?
Is this intentional?
I have a case where for the descriptions I need to retreive them based on the index value (which for input works with get), but for the actual data I do not want this, I simply want t o walk to get them:
Procedure for Devices with Multiple CPUs
http://www.cisco.com/warp/public/477/SNMP/collect_cpu_util_snmp.html#multiple
So I have this;
| Code: | <interface>
<name>Cisco EnvMon CPU</name>
<description>Get Cisco Environmental CPU Data</description>
<oid_index>.1.3.6.1.4.1.9.9.109.1.1.1.1.2</oid_index>
<fields>
<CPUStatusDescr>
<name>CPU Description</name>
<method>get</method>
<source>value</source>
<direction>input</direction>
<oid>.1.3.6.1.2.1.47.1.1.1.1.7</oid>
</CPUStatusDescr>
<CPUStatus>
<name>CPU Status</name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>.1.3.6.1.4.1.9.9.109.1.1.1.1.5</oid>
</CPUStatus>
</fields>
</interface> |
This works fine for the descriptions, but for the output it's appending the index and it breaks..for the output I merely want to walk that oid!
(as in the index is only valid for fetching the descriptions, using the index for the output breaks it!)
So given the multicpu oid setup as described by the Cisco document I have linked to (where the description index is different tothat of the actual value index), is what I'm trying to accomplish possible?
Given this is my first attempt at doing an indexed SNMP data query I'm not sure if what I'm attempting is going to work or if I'm going to ahve to resort to excluding descriptions and rely on a human to enter them manually at point of graph creation?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12275 Location: Muenster, Germany
|
Posted: Thu Feb 28, 2008 5:00 pm Post subject: |
|
|
Please post snmpwalks of the OIDs used so I can understand better
Reinhard
|
|
| Back to top |
|
 |
|