<!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=879172015-19112002><FONT face="Comic Sans MS" color=#000080
size=2>You're new to the list, aren't you? ;)</FONT></SPAN></DIV>
<DIV><SPAN class=879172015-19112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=879172015-19112002><FONT face="Comic Sans MS" color=#000080
size=2>I just answered this very question last Wednesday. But here it is
again:</FONT></SPAN></DIV>
<DIV><SPAN class=879172015-19112002><FONT face="Comic Sans MS" color=#000080
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=879172015-19112002>
<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></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"><FONT
color=#000080><FONT size=2>Does this help? (Yes, I'm using the
template-based object file configuration. You should, too.)<SPAN
class=879172015-19112002> You might be partial to using 'generic-service'
instead of 'icmp'.</SPAN></FONT></FONT></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></FONT></SPAN></SPAN></DIV>
<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> Peter Pan
[mailto:peterpan@pvamu.edu]<BR><B>Sent:</B> Monday, November 18, 2002 10:04
PM<BR><B>To:</B> Nagios-users@lists.sourceforge.net<BR><B>Subject:</B>
[Nagios-users] Monitoring two hard disk<BR><BR></FONT></DIV>
<DIV><FONT face=Arial size=2>I am currently monitoring a windows server.
I am stuck on how to monitor two hdd's. I do not use a template based
object file conf. I have been working on the problem for awhile now
without a solution. Any advice would help,
thanks</FONT></DIV></BLOCKQUOTE></BODY></HTML>