<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Hi list,<br>
<br>
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:<br>
<br>
./check_diskio_win.sh 1.1.1.1 C<br>
<br>
Disk Reads/sec is 5 ; Disk Writes/sec is 25<br>
<br>
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:<br>
<br>
<meta charset="utf-8">
<span class="Apple-style-span" style="color: rgb(0, 0, 0);
font-family: arial, serif; font-size: 11px; font-style: normal;
font-variant: normal; font-weight: normal; letter-spacing: normal;
line-height: normal; orphans: 2; text-align: -webkit-auto;
text-indent: 0px; text-transform: none; white-space: normal;
widows: 2; word-spacing: 0px; -webkit-text-size-adjust: auto;
-webkit-text-stroke-width: 0px; background-color: rgb(219, 219,
219); display: inline !important; float: none; ">Disk Reads/sec is
: Disk Writes/sec is </span><br>
<br>
what I do in the script is basically the below command and some
parsing (that works from shell script):<br>
<br>
check_nt -H $1 -v COUNTER -l "\\PhysicalDisk(0 $2:)\\Disk
Reads/sec","PhysicalDisk(0 $2:) Disk Reads/sec is %.f " <br>
<br>
<br>
any idea?<br>
<br>
Thx<br>
<br>
mazar<br>
<br>
</body>
</html>