|
|
| Author |
Message |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Sun Jul 30, 2006 6:32 am Post subject: |
|
|
This is due to the way rrdtool works (see main rrd site at http://oss.oetiker.ch/rrdtool/tut/rrdtutorial.en.html, Section: Data Resampling. You may find http://www.vandenbogaerdt.nl/rrdtool/process.php useful, too). Not all updates occur at exactly a 300 sec interval. So rrdtool provides a way dealing with those slight deviations and back-calculating them to exactly 300 sec. On COUNTERS, you will as well see the result of normalizing from 300 sec (data gathering interval) to 1 sec (so: division by 300 which will change integers to non-integers).
You may use the GPRINT Preset "Exact Numbers" in your Graph Template to suppress decimals.
Reinhard
|
|
| Back to top |
|
 |
Sandhya
Joined: 07 Mar 2008 Posts: 2
|
Posted: Fri Mar 07, 2008 3:18 am Post subject: Blank graph - trying to add Squid SNMP OIDs to CACTI |
|
|
Hi
I have recently started using CACTI to monitor squid server.
I followed the above mentioned steps , created my own xml file
<interface>
<name>Get Squid Cache Network</name>
<description>Queries Squid SNMPserver </description>
<oid_index>1.3.6.1.4.1.3495.1.4.1.7</oid_index>
<oid_num_indexes>1.3.6.1.4.1.3495.1.4.1.0</oid_num_indexes>
<fields>
<cacheBlockingGetHostByName>
<name>cacheBlocking</name>
<method>walk</method>
<source>value</source>
<direction>input</direction>
<oid>1.3.6.1.4.1.3495.1.4.1.7</oid>
</cacheBlockingGetHostByName>
<cacheIpHits>
<name>cache hits </name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3495.1.4.1.3</oid>
</cacheIpHits>
<cacheIpMisses>
<name>cache Miss </name>
<method>walk</method>
<source>value</source>
<direction>output</direction>
<oid>1.3.6.1.4.1.3495.1.4.1.6</oid>
</cacheIpMisses>
</fields>
</interface>
The Debug query information shows
+ Running data query [14].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/testsquid.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '1.3.6.1.4.1.3495.1.4.1.7'
+ Located input field 'cacheBlockingGetHostByName' [walk]
+ Executing SNMP walk for data @ '1.3.6.1.4.1.3495.1.4.1.7'
+ Found item [cacheBlockingGetHostByName='0'] index: 0 [from value]
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/testsquid.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/testsquid.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/testsquid.xml'
+ Found data query XML file at '/usr/share/cacti/resource/snmp_queries/testsquid.xml'
However , my graphs are empty!! I have included cacheIpHits and cacheIpMisses as datasources for my graph.
Also i created the .rrd file for the graph manually using "rrdtool create" since it gave an error .
Could anyone plz let me know, why am I not getting any plots on my graph? what am I missing out??
Also ,manual snmpwalk for cacheIpHits and cacheIpMisses returns valid values.
Any help regarding this is deeply appreciated.
Thanx!
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Fri Mar 07, 2008 10:45 am Post subject: |
|
|
Squid usually listens on a non-standard snmp port
Reinhard
|
|
| Back to top |
|
 |
Sandhya
Joined: 07 Mar 2008 Posts: 2
|
Posted: Mon Mar 10, 2008 12:40 am Post subject: |
|
|
Hi
Yes, Squid normally listens for incoming SNMP requests on port 3401.
When I do a snmpwalk on port 3401 for a particular SNMP OID , i get the correct values.
But there is no output on the graphs !!
Plz help. Could there be some issue with some settings in CACTI ??
|
|
| Back to top |
|
 |
melcon
Joined: 09 Apr 2008 Posts: 2
|
Posted: Wed Apr 09, 2008 3:06 pm Post subject: Get SNMP Data |
|
|
How can I get a SNMP Data from an OID that returns 2 fields, like in:
snmpwalk -On -v1 -ccommunity host UCD-SNMP-MIB::extOutput
...
.1.3.6.1.4.1.2021.8.1.101.4 = STRING: Duration:105 count:8
...
Is my DIM correct(see attachment)?
| Description: |
| Data Input Method with 2 output fields |
|
| Filesize: |
46.52 KB |
| Viewed: |
2004 Time(s) |

|
|
|
| Back to top |
|
 |
mgriffin
Joined: 05 Jun 2008 Posts: 5
|
Posted: Tue Jun 17, 2008 9:08 am Post subject: |
|
|
| The images on the main HOWTO have broken. Is there any way to get an update to this guide for 0.8.7b?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Wed Jun 18, 2008 1:27 pm Post subject: |
|
|
| mgriffin wrote: | | The images on the main HOWTO have broken. Is there any way to get an update to this guide for 0.8.7b? | Yep. Use the HowTo at http://docs.cacti.net. This thread is no longer maintained
Reinhard
|
|
| Back to top |
|
 |
devel
Joined: 17 Sep 2008 Posts: 15
|
Posted: Mon Sep 22, 2008 8:19 am Post subject: |
|
|
I have a question about Data Input Methods->InputType.
I can't find description for "SNMP Query" anywhere. I was supposed to find there a possibility to build a list of name:oid values instead of writing own script.... but it seems servers different needs. What are they ?
|
|
| Back to top |
|
 |
gandalf Developer
Joined: 02 Dec 2004 Posts: 12295 Location: Muenster, Germany
|
Posted: Thu Sep 25, 2008 10:48 am Post subject: |
|
|
Please refer to the 1st link of my sig for complete walkthroughs. IF your question is still valid, please post again, but create a new topic because this thread is closed
Reinhard
|
|
| Back to top |
|
 |
|