<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=us-ascii">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>Re: AW: [Nagios-users] How to check the process</TITLE>
</HEAD>
<BODY>
<P><FONT SIZE=2 FACE="Arial">ups, obvisually you did not define the checkcommand for "check_procs"</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">in "commands.cfg":</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">define command {</FONT>
<BR> <FONT SIZE=2 FACE="Arial">command_name check_procs_string</FONT>
<BR> <FONT SIZE=2 FACE="Arial">command_line $USER1$/check_procs -w $ARG1$ -c $ARG2$ -a $ARG3$</FONT> <FONT SIZE=2 FACE="Courier New">-u</FONT> <FONT SIZE=2 FACE="Arial">$ARG4$</FONT>
<BR> <FONT SIZE=2 FACE="Arial">}</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">then the service-def is:</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">define service{</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> host_name nagios</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> service_description SNMPTRAP</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> is_volatile 0</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> check_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> max_check_attempts 3</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> normal_check_interval 5</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> retry_check_interval 1</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> contact_groups server-admins</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> notification_interval 120</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> notification_period 24x7</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> notification_options c,w</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> check_command check_procs!1:1!1:1!snmptrapd!root</FONT>
<BR><FONT SIZE=2 FACE="Courier New"> }</FONT>
</P>
<P><FONT SIZE=2 FACE="Courier New">excuse my too-fast reply.</FONT>
</P>
<P><FONT SIZE=2 FACE="Arial">---------------------------------------------------------------------------------------------</FONT>
<BR><FONT SIZE=2 FACE="Arial">Thomas Zimmer</FONT>
<BR><FONT SIZE=2 FACE="Arial">Sal. Oppenheim jr. & Cie.</FONT>
<BR><FONT SIZE=2 FACE="Arial">Praktikant / IT</FONT>
<BR><FONT SIZE=2 FACE="Arial">Tel.: 069 7134 5319</FONT>
<BR><FONT SIZE=2 FACE="Arial">----------------------------------------------------------------------------------------</FONT>
</P>
</BODY>
</HTML>