|
|
| Author |
Message |
rfoust
Joined: 24 Aug 2006 Posts: 4
|
Posted: Thu Aug 24, 2006 8:22 pm Post subject: _Total not working |
|
|
Hi,
_Total isn't working because oid_index_parse isn't including it. Here is what I'm currently using to also include _Total:
<oid_index_parse>OID/REGEXP:.*((2\.[0-9]{1,2}\.5 |(6\.95\.84\.111\.116\.97\.108))$</oid_index_parse>
This makes a lot of assumptions about the OID (basically a known length). I had to modify that even more to get Physical disk statistics to include everything properly. In fact with some minor modifications it would probably work for anything similar based around SNMP Informant (standard or advanced).
<oid_index_parse>OID/REGEXP:.*\.61\.1\.1\.(.*)$</oid_index_parse>
- Robbie
- Duke University
|
|
| Back to top |
|
 |
ynot5
Joined: 24 Jul 2006 Posts: 16
|
Posted: Mon Aug 28, 2006 1:30 am Post subject: Pls advise |
|
|
What's the next step to alter this ?
I think the above post is related to mine but I'm not sure how to configure it ? Pl advice , thanks
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentFreeSpace, oid: .1.3.6.1.4.1.9600.1.1.1.1.5.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: AvgDiskReadQueueLen, oid: .1.3.6.1.4.1.9600.1.1.1.1.8.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentDiskWriteTim, oid: .1.3.6.1.4.1.9600.1.1.1.1.4.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: PercentDiskReadTime, oid: .1.3.6.1.4.1.9600.1.1.1.1.2.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: FreeMegabytes, oid: .1.3.6.1.4.1.9600.1.1.1.1.20.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] SNMP: v1: localhost, dsname: AvgDiskWritePerSec, oid: .1.3.6.1.4.1.9600.1.1.1.1.19.1.3.6.1.4.1.9600.1.1.1.1.1.6.95.84.111.116.97.108, output: U
08/28/2006 05:50:05 AM - CMDPHP: Poller[0] Host[2] DS[154] WARNING: Result from SNMP not valid. Partial Result:
|
|
| Back to top |
|
 |
rfoust
Joined: 24 Aug 2006 Posts: 4
|
Posted: Wed Aug 30, 2006 12:14 pm Post subject: |
|
|
Edit the snmp_informant_disk.xml file (your data source) and where this line is:
<oid_index_parse>OID/REGEXP:.*(2\.[0-9]{1,2}\.5 $</oid_index_parse>
you need to change it to be this:
<oid_index_parse>OID/REGEXP:.*\.1\.1\.1\.(.*)$</oid_index_parse>
otherwise _Total will never work. I don't know if thats the source of your errors or not, but without that change, _Total will be broken.
- Robbie
|
|
| Back to top |
|
 |
ynot5
Joined: 24 Jul 2006 Posts: 16
|
Posted: Thu Aug 31, 2006 12:32 am Post subject: thanks |
|
|
| it seem to work perfectly
|
|
| Back to top |
|
 |
rfoust
Joined: 24 Aug 2006 Posts: 4
|
Posted: Thu Aug 31, 2006 7:10 am Post subject: |
|
|
Great! Glad you got it working.
- Robbie
|
|
| Back to top |
|
 |
AndyStewart Cacti User
Joined: 29 Sep 2005 Posts: 102 Location: Edinburgh, Scotland
|
Posted: Wed Sep 13, 2006 8:38 am Post subject: |
|
|
Just installed this on one of our SAN servers (normal disk stats were only showing 200GB on the graphs - 2^32 limit or something)
but i'm getting the following error - can anyone help?
| Quote: |
RRDTool Command:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="SAN - NETEHNAS01 - Disk - E:" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label="Unit" \
--slope-mode \
DEF:a="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskWriteTim:LAST \
DEF:b="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskReadTime:LAST \
DEF:c="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskReadQueueLen:LAST \
DEF:d="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskWriteQueueLe:LAST \
DEF:e="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentFreeSpace:LAST \
DEF:f="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentDiskReadTime:LAST \
DEF:g="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":PercentFreeSpace:LAST \
DEF:h="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":FreeMegabytes:LAST \
DEF:i="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskReadPerSec:LAST \
DEF:j="E\:/Inetpub/wwwroot/cacti/rra/san_netehnas01_freemegabytes_1617.rrd":AvgDiskWritePerSec:LAST \
CDEF:cdefbc=h,1024,/ \
CDEF:cdefdc=a,0,*,100,+ \
AREA:a#2175D9:"Write Time(%)" \
AREA:f#8D85F3:"Read Time(%)" \
LINE1:c#FF0000:"Read Queue\:" \
LINE1:d#00FF00:"Write Queue\:" \
LINE2:g#000000:"" \
LINE1:f#000000:"" \
LINE1:g#FF5F00:"Free Space (%)\n" \
COMMENT:"Statistics" \
GPRINT:f:LAST:" Read\: (%1.1lf %%)" \
GPRINT:a:LAST:"Write\: (%1.1lf %%)" \
GPRINT:g:LAST:"Free\: (%1.1lf %%)" \
LINE1:h:"Available\:" \
GPRINT:cdefbc:LAST:" Available\: %5.2lf Gb\n" \
COMMENT:"Read IO / sec\:" \
LINE1:i:"Read /s\:\n" \
GPRINT:i:LAST:" Current\:%8.0lf" \
GPRINT:i:AVERAGE:"Average\:%8.0lf" \
GPRINT:i:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write IO / sec\:" \
LINE1:j:"Write /s" \
GPRINT:j:LAST:" Current\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:j:MAX:"Maximum\:%8.0lf\n" \
LINE1::"Free Space (Mb)" \
COMMENT:"Read Queue\:" \
GPRINT:c:LAST:" Current\:%8.0lf" \
GPRINT:c:AVERAGE:"Average\:%8.0lf" \
GPRINT:c:MAX:"Maximum\:%8.0lf\n" \
COMMENT:"Write Queue\:" \
GPRINT:d:LAST:" Current\:%8.0lf" \
GPRINT:d:AVERAGE:"Average\:%8.0lf" \
GPRINT:d:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdc#FFFFFF:""
RRDTool Says:
ERROR: Legend set but no color: Available\: |
|
|
| Back to top |
|
 |
snipefoo
Joined: 20 Sep 2006 Posts: 1
|
Posted: Wed Sep 20, 2006 4:51 am Post subject: |
|
|
Hi,
I followed the instructions. I got this in the verbose snmp querie :
| Code: | + Running data query [12].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Located input field 'diskInstance' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.4.1.9600.1.1.1.1.1'
+ Found item [diskInstance='C:'] index: 2.67.58 [from value]
+ Found item [diskInstance='D:'] index: 2.68.58 [from value]
+ Found item [diskInstance='_Total'] index: 6.95.84.111.116.97.108 [from value]
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml'
+ Found data query XML file at '/usr/local/share/cacti/resource/snmp_queries/snmp_informant_disk.xml' |
So, it seems OK; but in the cacti logs, I got that :
| Code: | 09/20/2006 11:45:04 AM - CMDPHP: Poller[0] Host[2] DS[38] WARNING: Result from SNMP not valid. Partial Result:
Repeated 8 times |
The DS 38 is "Disk Stats - _Total "
I tried the "<oid_index_parse>" change in the xml file, without success :
The C, D and _Total didn't work at all
Thanks by advance
|
|
| Back to top |
|
 |
kikiche
Joined: 21 Sep 2006 Posts: 1
|
Posted: Thu Sep 21, 2006 10:57 am Post subject: |
|
|
I have the same problem as moles3144.
The graph aren't create.
I have this message in Graph Debug Mode: | Code: | | ERROR: can't parse ':Free Space (Mb)' |
but I add SNMP Informant Disk statistics for my device, I only see 2 rows.
If you have a solution, I am taking.
Cordially
|
|
| Back to top |
|
 |
tmessers
Joined: 28 Sep 2006 Posts: 1
|
Posted: Thu Sep 28, 2006 4:44 pm Post subject: Has anyone actuall got this working???? |
|
|
Man,
I can't seem to get any of the graphs working.. I have followed this entire post and all I come up with is.
RRDTool Says:
ERROR: Legend set but no color: Available\:
Anything would be helpful.
|
|
| Back to top |
|
 |
cgoguyer
Joined: 02 Oct 2006 Posts: 1
|
Posted: Mon Oct 02, 2006 5:00 am Post subject: |
|
|
I have the same problem as many people : ERROR: can't parse ':Free Space (Mb)'
I follow the thread but I haven't find any solution.
Has anybody templates wich work with cacti 0.8.6.h ?
Thx
|
|
| Back to top |
|
 |
rickyboone
Joined: 23 Aug 2006 Posts: 4
|
Posted: Tue Oct 03, 2006 8:19 am Post subject: |
|
|
| Any chance of getting an updated version of all templates that address the issues raised in recent messages in this thread? The various "fixed" templates posted somewhere in the middle of this topic don't seem to work well with the original templates, etc. Having the original message updated would prevent a lot of confusion for people trying to add this to their instances of Cacti.
|
|
| Back to top |
|
 |
richardkraal
Joined: 28 Apr 2005 Posts: 3
|
Posted: Tue Oct 24, 2006 9:01 am Post subject: |
|
|
after upgrading from .g to .i my graphs stops working, they don't appear anymore, getting the red cross in IE
when going to the url of the picture it says
" 0 "
any body any idea?
does somebody has working templates for .i???
|
|
| Back to top |
|
 |
WizardofAus
Joined: 09 Nov 2006 Posts: 7 Location: London
|
Posted: Fri Nov 10, 2006 4:14 pm Post subject: Not sure why I am getting O in all my columns? Help |
|
|
Everything looks great - debug attached and graph pic attached - any ideas. I would be so grateful.
The Cacti log gives me this error, the only error I am getting what could it be?
CMDPHP: Poller[0] Host[18] DS[186] WARNING: Result from SNMP not valid. Partial Result:
c:/rrdtool/rrdtool.exe graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title="uksdcclums0301 - Disk Stats E:Data_1" \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--upper-limit=100 \
--lower-limit=0 \
--vertical-label="Unit (Percent / time)" \
--slope-mode \
DEF:a="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskReadTime:LAST \
DEF:b="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskReadTime:AVERAGE \
DEF:c="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskWriteTim:LAST \
DEF:d="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentDiskWriteTim:AVERAGE \
DEF:e="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentFreeSpace:LAST \
DEF:f="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":PercentFreeSpace:AVERAGE \
DEF:g="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":FreeMegabytes:LAST \
DEF:h="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":FreeMegabytes:AVERAGE \
DEF:i="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadPerSec:LAST \
DEF:j="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadPerSec:AVERAGE \
DEF:ba="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWritePerSec:LAST \
DEF:bb="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWritePerSec:AVERAGE \
DEF:bc="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadQueueLen:LAST \
DEF:bd="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskReadQueueLen:AVERAGE \
DEF:be="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWriteQueueLe:LAST \
DEF:bf="c\:/inetpub/wwwroot/cacti/rra/uksdcclums0301_freemegabytes_186.rrd":AvgDiskWriteQueueLe:AVERAGE \
CDEF:cdefba=g,1024,/ \
CDEF:cdefdb=g,1048576,/ \
COMMENT:"Statistics\n" \
AREA:a#FF6044:"Read Time(%)" \
GPRINT:a:LAST:" Read\: (%1.1lf %%)\n" \
AREA:a#55D6D3:"" \
AREA:c#00BED9:"Write Time(%)" \
GPRINT:c:LAST:" Write\: (%1.1lf %%)\n" \
LINE1:e#004359:"Free Space(%)" \
GPRINT:e:LAST:" Free\: (%1.1lf %%)\n" \
LINE1:e#004359:"" \
LINE1:g#FFC3C0:"Available" \
GPRINT:cdefba:LAST:" Available \: %5.2lf Gb\n" \
LINE1:i#0000FF:"Read per sec\n" \
COMMENT:"Read IO / sec\:" \
GPRINT:i:LAST:" Current\:%8.0lf" \
GPRINT:j:AVERAGE:"Average\:%8.0lf" \
GPRINT:j:MAX:"Maximum\:%8.0lf\n" \
LINE1:ba#DE0056:"Write per sec\:\n" \
COMMENT:"Write IO / sec\:" \
GPRINT:ba:LAST:" Current\:%8.0lf" \
GPRINT:bb:AVERAGE:"Average\:%8.0lf" \
GPRINT:bb:MAX:"Maximum\:%8.0lf\n" \
LINE1:bc#F5F800:"Read Queue\:\n" \
COMMENT:"Read Queue\:" \
GPRINT:bc:LAST:" Current\:%8.0lf" \
GPRINT:bd:AVERAGE:"Average\:%8.0lf" \
GPRINT:bd:MAX:"Maximum\:%8.0lf\n" \
LINE1:be#00FF00:"Write Queue\:\n" \
COMMENT:"Write Queue\:" \
GPRINT:be:LAST:" Current\:%8.0lf" \
GPRINT:bf:AVERAGE:"Average\:%8.0lf" \
GPRINT:bf:MAX:"Maximum\:%8.0lf\n" \
LINE1:cdefdb#7CB3F1:"" \
LINE2:g#ED7600:"Free Space (Mb)"
RRDTool Says:
OK
| Description: |
|
| Filesize: |
22.86 KB |
| Viewed: |
6324 Time(s) |

|
|
|
| Back to top |
|
 |
WizardofAus
Joined: 09 Nov 2006 Posts: 7 Location: London
|
Posted: Sun Nov 12, 2006 6:28 am Post subject: I should read.. |
|
|
I shoudl have been more through reading the previous posts
<oid_index_parse>OID/REGEXP:.*\.1\.1\.1\.(.*)$</oid_index_parse>
sorted it all out. awesome stuff
|
|
| Back to top |
|
 |
dcabai
Joined: 22 Nov 2006 Posts: 1
|
Posted: Wed Nov 22, 2006 11:09 am Post subject: Graph Problems |
|
|
Hi, I'm new with cacti and my boss ask me to add Disk IO Statistics to the console.
I follow all the steps, all the files installed correctly. All the imports works fine. I read all the pages of this topic and tried many things that are posted here, but the graphs aren't generated.
All the other SNMP information that are gathered from the server works fine and generate the graphs correctly.
I only see under W32 - Disk Statistics the "name of the server - Disk - C:" and the icon of the magnifying glass. I have this for all the units of my server.
I have other counters that when they don't have information create the graph blank, but in this case there is no graph. I imported the graph correctly following the steps. I would appreciate some help here, and sorry about my english.
|
|
| Back to top |
|
 |
|
Powered by phpBB © 2001, 2005 phpBB Group
|
|