<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD>
<META http-equiv=Content-Type content="text/html; charset=iso-8859-1">
<META content="MSHTML 6.00.2900.2627" name=GENERATOR>
<STYLE>@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
COLOR: windowtext; FONT-FAMILY: Arial; mso-style-type: personal-compose
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue bgColor=#ffffff>
<DIV><FONT face=Arial size=2>Hi,</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>In my opinion You could use SNMP to check that
process is running.</FONT></DIV>
<DIV><FONT face=Arial size=2>I'm using it to check bacula process</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>#! /bin/sh<BR>#</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>ECHO="/bin/echo
-e"<BR>GREP="/bin/grep"<BR>CAT="/bin/cat"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial
size=2>STATE_UNKNOWN="-1"<BR>STATE_OK="0"<BR>STATE_CRITICAL="2"</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>print_usage() {<BR> echo "Usage:
check_bacula_procs host community process_name"<BR>}</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2># Make sure the correct number of command line<BR>#
arguments have been supplied</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if [ $# -lt 1 ]; then<BR>
print_usage<BR> exit $STATE_UNKNOWN<BR>fi</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>PROCESS=`/usr/bin/snmpwalk -v1 $1 -c $2
HOST-RESOURCES-MIB::hrSWRunName|$GREP $3`</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>if [ "$?" = "0" ]; then # exit with no
error<BR> $ECHO "OK - proces $3
dziala\n"<BR> exitstatus=$STATE_OK<BR>else #
error<BR> $ECHO "ERROR - proces $3 nie
dziala\n"<BR> exitstatus=$STATE_CRITICAL<BR>fi</FONT></DIV>
<DIV> </DIV>
<DIV><FONT face=Arial size=2>exit $exitstatus<BR></FONT></DIV>
<DIV><FONT face=Arial size=2>Best regards</FONT></DIV>
<DIV><FONT face=Arial size=2>Marcin</FONT></DIV>
<DIV><FONT face=Arial size=2> </DIV></FONT>
<BLOCKQUOTE dir=ltr
style="PADDING-RIGHT: 0px; PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000000 2px solid; MARGIN-RIGHT: 0px">
<DIV style="FONT: 10pt arial">----- Original Message ----- </DIV>
<DIV
style="BACKGROUND: #e4e4e4; FONT: 10pt arial; font-color: black"><B>From:</B>
<A title=AHKAPLAN@PARTNERS.ORG href="mailto:AHKAPLAN@PARTNERS.ORG">Kaplan,
Andrew H.</A> </DIV>
<DIV style="FONT: 10pt arial"><B>To:</B> <A
title=nagios-users@lists.sourceforge.net
href="mailto:nagios-users@lists.sourceforge.net">nagios-users@lists.sourceforge.net</A>
</DIV>
<DIV style="FONT: 10pt arial"><B>Sent:</B> Tuesday, May 31, 2005 4:18 PM</DIV>
<DIV style="FONT: 10pt arial"><B>Subject:</B> [Nagios-users] Monitoring the
rpc.statd processes</DIV>
<DIV><BR></DIV>
<DIV class=Section1>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">Hi there
–<o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial"><o:p> </o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">I want to monitor the rpc.statd
process and be notified if it isn’t running. The process is started via the
/etc/init.d/nfslock <o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face=Arial size=2><SPAN
style="FONT-SIZE: 10pt; FONT-FAMILY: Arial">script. What plugin can I use to
accomplish this? Thanks.
<o:p></o:p></SPAN></FONT></P></DIV></BLOCKQUOTE></BODY></HTML>