Hi list,

I've put together a wrapper for the Disk Reads/sec and Disk Writes/sec counters, my goal is to have an output as follow:

./check_diskio_win.sh 1.1.1.1 C

Disk Reads/sec is 5 ; Disk Writes/sec is 25

I'm able to accomplish this via script, but when I give it to nagios, as check_command the output (web interface) is as follow:

Disk Reads/sec is : Disk Writes/sec is

what I do in the script is basically the below command and some parsing (that works from shell script):

check_nt -H $1 -v COUNTER -l "\\PhysicalDisk(0 $2:)\\Disk Reads/sec","PhysicalDisk(0 $2:) Disk Reads/sec is %.f "


any idea?

Thx

mazar

------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Nagios-users mailing list
Nagios-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting 
any issue. 
::: Messages without supporting info will risk being sent to /dev/null

Reply via email to