No need to write anything, just use this plugin which already does all
of that and heaps more
www.edcint.co.nz/checkwmiplus
On 5/11/2011 1:18 AM, mazar wrote:
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
[email protected]
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
No virus found in this message.
Checked by AVG - www.avg.com <http://www.avg.com>
Version: 10.0.1411 / Virus Database: 2092/3994 - Release Date: 11/03/11
--
Smartmon System Monitoring <http://www.smartmon.com.au>
www.smartmon.com.au <http://www.smartmon.com.au>
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
Nagios-users mailing list
[email protected]
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