check_nt wrapper

mazar mazar at autistici.org
Fri Nov 4 15:18:41 CET 2011


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

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20111104/45dfc6e8/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at 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


More information about the Users mailing list