I have been fightin few days now with the iostat functionality provided by http://www.markround.com/archives/48-Li ... Cacti.html.
After adding the chcon SE settings i started to receive replies for requests: (if someone looking for it..)
I'm using cacti version 0.8.8a and i had to modify iostat.xlm* * * * * root cd /tmp && iostat -xkd 30 2 | sed 's/,/\./g' > io.tmp && chcon -t snmpd_exec_t /tmp/io.tmp && mv -f io.tmp iostat.cache
--><index_order>ioDescr:ioName:ioIndex</index_order>
to be able to add data queries for host and create graphs for them.<index_order>ioDescr:ioIndex</index_order>
It was instructed on other post
However, graphs are not drawn even those were successfully created for host.
I increased the debug level to see anything odd from logs but nothing. Everything seems to be working and based on the logs no error information related to iostat etc.
Only logs like:
I can see only icon when i'm trying to view iostat graphs.04/27/2013 01:14:29 PM - POLLER: Poller[0] CACTI2RRD: /usr/bin/rrdtool create /var/www/cacti/rra/veeti_iostat_writes_763.rrd --step 60 DS:iostat_writes:GAUGE:120:0:10000000 DS:iostat_rqsz:GAUGE:120:0:10000000 DS:iostat_util:GAUGE:120:0:100 DS:iostat_await:GAUGE:120:0:10000000 DS:iostat_wkbs:GAUGE:120:0:10000000 DS:iostat_rkbs:GAUGE:120:0:10000000 DS:iostat_qsz:GAUGE:120:0:10000000 DS:iostat_svctm:GAUGE:120:0:10000000 DS:iostat_reads:GAUGE:120:0:10000000 DS:iostat_wrqms:GAUGE:120:0:10000000 DS:iostat_rrqms:GAUGE:120:0:10000000 RRA::0.5:1:525600 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
Everything else works fine.
What to do next?
But it's not related.# grep -i err cacti.log
04/27/2013 01:17:02 PM - CMDPHP: Poller[0] Host[7] DS[248] SNMP: v2: 1.1.0.8, dsname: errors_out, oid: .1.3.6.1.2.1.2.2.1.20.102, output: 0
Data queries are working:
Data Query Debug Information
+ Running data query [12].
+ Found type = '3' [SNMP Query].
+ Found data query XML file at '/var/www/cacti/resource/snmp_queries/iostat.xml'
+ XML file parsed ok.
+ <oid_num_indexes> missing in XML file, 'Index Count Changed' emulated by counting oid_index entries
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.3.1' Index Count: 13
+ Index found at OID: '1.3.6.1.3.1.1.1' value: '1'
+ Index found at OID: '1.3.6.1.3.1.2.1' value: 'sda'
+ Index found at OID: '1.3.6.1.3.1.3.1' value: '0.00'
+ Index found at OID: '1.3.6.1.3.1.4.1' value: '13.53'
+ Index found at OID: '1.3.6.1.3.1.5.1' value: '0.00'
+ Index found at OID: '1.3.6.1.3.1.6.1' value: '10.60'
+ Index found at OID: '1.3.6.1.3.1.7.1' value: '0.00'
+ Index found at OID: '1.3.6.1.3.1.8.1' value: '96.53'
+ Index found at OID: '1.3.6.1.3.1.9.1' value: '18.21'
+ Index found at OID: '1.3.6.1.3.1.10.1' value: '0.00'
+ Index found at OID: '1.3.6.1.3.1.11.1' value: '0.29'
+ Index found at OID: '1.3.6.1.3.1.12.1' value: '0.02'
+ Index found at OID: '1.3.6.1.3.1.13.1' value: '0.02'
+ Located input field 'ioIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.3.1.1'
+ Found item [ioIndex='1'] index: 1 [from value]
+ Located input field 'ioDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.3.1.2'
+ Found item [ioDescr='sda'] index: 1 [from value]