<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META content="MSHTML 5.50.4611.1300" name=GENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=#ffffff>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>Easy. Create another command.</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>Here's how we're doing it. The snippet from checkcommands.cfg (note
the linewrap):</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Courier New" size=2>define
command{<BR>
command_name
check_nt_disk<BR>
command_line $USER1$/check_nt -H
$HOSTADDRESS$</FONT></SPAN><SPAN class=766242217-13112002><FONT
face="Courier New" size=2> -p 1248 \</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Courier New"
size=2> -v USEDDISKSPACE -s $ARG1$ -l
$ARG2$ -w $ARG3$ -c $ARG4$<BR>
}</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>And the checks for the C and D drives in
services.cfg:</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Courier New" size=2>define
service{<BR>
host_name
itdmlw04<BR>
use
icmp<BR>
service_description
Space on C<BR>
contact_groups
windows-admins<BR>
check_command
check_nt_disk!XXXXX!C!80!90<BR>
}</FONT></SPAN></DIV>
<DIV><FONT face="Courier New" size=2></FONT> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2><FONT face="Courier New" color=#000000>define
service{<BR>
host_name
itdmlw04<BR>
use
icmp<BR>
service_description
Space on D<BR>
contact_groups
windows-admins<BR>
check_command
check_nt_disk!XXXXX!D!80!90<BR>
}</FONT><BR></FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>(Password to access NSClient is obscured by 'XXXXX'.)</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>Does this help? (Yes, I'm using the template-based object file
configuration. You should, too.)</FONT></SPAN></DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=766242217-13112002><FONT face="Comic Sans MS" color=#000080
size=2>jc</DIV>
<DIV><BR></DIV></FONT></SPAN>
<BLOCKQUOTE dir=ltr
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid; MARGIN-RIGHT: 0px">
<DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma
size=2>-----Original Message-----<BR><B>From:</B> Justin Wedeking
[mailto:justin_wedeking@pvamu.edu]<BR><B>Sent:</B> Wednesday, November 13,
2002 10:59 AM<BR><B>To:</B>
nagios-users@lists.sourceforge.net<BR><B>Subject:</B> [Nagios-users]
Monitoring two hdd's<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>
<DIV><FONT face=Arial size=2>Hello, </FONT></DIV>
<DIV> An answer <FONT face=Arial size=2>to this particular question is
very much appreciated. In my commands.cfg I have this line for one of my
NT servers... </FONT></DIV>
<DIV><FONT face=Arial size=2> # NSClient --
Collins<BR>command[check_nt_disk_collins]=$USER1$/check_nt -H
collins-dc.pantherland.pvamu.edu -p 1248 -v USEDDISKSPACE -l D -w 93 -c
94</FONT></DIV>
<DIV><FONT face=Arial size=2>This checks the disk usage of hard disk labeled
"D". I have read the documentation very thoroughly and found this under
the "COMMAND CONFIGURATION"..</FONT></DIV>
<DIV><FONT face=Arial size=2>" Multiple commands can be separated with
semicolons, piping is allowed." I have tried this, vareity of ways an
have come to the conclusion that I obviously misunderstanding this
conecpt. So my question is..How would I monitor both hard disk "C" and
"D"? Thank you</FONT></DIV>
<DIV> </DIV>
<DIV>Justin</DIV></FONT></DIV></BLOCKQUOTE></BODY></HTML>