HBomb wrote:Works great with a few Centoses, debians and ubuntus but all of them with a 2.6 kernel.
Right now with some newer where I get no output from snmpwalk:
Code: Select all
# iostat -V
sysstat version 10.2.1
# cat iostat.cache
Linux 3.2.0-4-amd64 (dns2-public) 02/04/14 _x86_64_ (8 CPU)
Device: rrqm/s wrqm/s r/s w/s rkB/s wkB/s avgrq-sz avgqu-sz await r_await w_await svctm %util
sda 0.04 2.07 0.62 1.68 13.97 96.15 95.65 0.00 1.35 2.27 1.02 0.43 0.10
and an older debian where it's working fine:
Code: Select all
# iostat -V
sysstat version 9.0.6.1
# cat /tmp/iostat.cache
Linux 2.6.32-5-686-bigmem (mml-noc-primary) 02/04/14 _i686_ (8 CPU)
Device: rrqm/s wrqm/s r/s w/s rsec/s wsec/s avgrq-sz avgqu-sz await svctm %util
cciss/c0d0 0.02 24.64 2.74 5.59 22.82 15.35 4.58 0.03 2.84 2.87 2.39
Does anyone have an updated regex for me to use on the new box? I assume that's the only thing that's wrong, snmpwalk on anything else is perfectly fine, plus I've deployed this template on a number of machines already, I like to think im familiar with what could go wrong.
Hi,
I updated my scripts like this:
iostat.pl
99c99
< /^([a-z0-9\-\/]+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)/;
---
> /^([a-z0-9\-\/]+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)\s+(\d+[\.,]\d+)/;
112,115c112,113
< $stats{"$base_oid.12.$devices"} = $13; # svctm
< $stats{"$base_oid.13.$devices"} = $14; # %util
< $stats{"$base_oid.14.$devices"} = $11; # r_await
< $stats{"$base_oid.15.$devices"} = $12; # w_await
---
> $stats{"$base_oid.12.$devices"} = $11; # svctm
> $stats{"$base_oid.13.$devices"} = $12; # %util
iostat.xml
101,114d100
< <ioRAwait>
< <name>Average Wait Read</name>
< <method>walk</method>
< <source>value</source>
< <direction>output</direction>
< <oid>.1.3.6.1.3.1.14</oid>
< </ioRAwait>
< <ioWAwait>
< <name>Average Wait Write</name>
< <method>walk</method>
< <source>value</source>
< <direction>output</direction>
< <oid>.1.3.6.1.3.1.15</oid>
< </ioWAwait>