<!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 6.5.7036.0">
<TITLE>Nagios/NRPE relationship</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/rtf format -->

<P><FONT SIZE=2 FACE="Arial">Hi all, hope you do no think this is a stupid question; however I have to ask it anyway for a better understanding.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">I have my Nagios Server with NRPE plugins installed and I have a Linux Remote Server that I want to monitor, I know that you need NRPE on the remote Linux box but after that it goes a bit glazed, this is the bit I need to understand.</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Here is the standard configuration NRPE installed on my remote Linux box:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 10</FONT>

<BR><FONT SIZE=2 FACE="Arial">command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 -c 30,25,20</FONT>

<BR><FONT SIZE=2 FACE="Arial">command[check_disk1]=/usr/local/nagios/libexec/check_disk -w 20 -c 10 -p /dev/sda1</FONT>

<BR><FONT SIZE=2 FACE="Arial">command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs -w 5 -c 10 -s Z</FONT>

<BR><FONT SIZE=2 FACE="Arial">command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 150 -c 200</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">So my question is, if I need to monitor SMTP on the remote box I would have to ask the remote administrator to add the following command to their nrpe.cfg:</FONT></P>

<P><FONT SIZE=2 FACE="Arial">Command[check_smtp]=/usr/local/nagios/libexec/check_smtp -H localhost</FONT>
</P>

<P><B><FONT SIZE=2 FACE="Arial">Do they have to use the -H localhost directive or is there something different they can use, the localhost just does not seem right looking at the other examples above.</FONT></B></P>

<P><FONT SIZE=2 FACE="Arial">Then on my Nagios Server, under the .cfg box I want to monitor I define the command:</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">define service{</FONT>

<BR><FONT SIZE=2 FACE="Arial">        use                              generic-service       </FONT>

<BR><FONT SIZE=2 FACE="Arial">        host_name                   linux-server</FONT>

<BR><FONT SIZE=2 FACE="Arial">        service_description       SSH</FONT>

<BR><FONT SIZE=2 FACE="Arial">        check_command          check_nrpe!check_ssh</FONT>

<BR><FONT SIZE=2 FACE="Arial">        }</FONT>
</P>
<BR>

<P><FONT SIZE=2 FACE="Arial">Hope its not such a stupid question that it does not warrant a reply.</FONT>
</P>

<P><FONT SIZE=2 FACE="Arial">Rgs</FONT>

<BR><FONT SIZE=2 FACE="Arial">Martyn</FONT>
</P>

</BODY>
</HTML>