<!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=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>And what happens when you login to the client which is running NRPE, su 
to nagios, then run the following manually:</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>  /usr/local/nagios/libexec/check_users -w 5 -c 
10</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>While we're at it, add this to your nrpe.cfg:</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>  command[check_nrpe_status]=echo "OK - NRPE is 
alive"<BR></FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>then at the prompt, try this:</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>  ./check_nrpe -H 127.0.0.1 -c check_nrpe_status</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>If you get "OK - NRPE is alive", then go to your Nagios server and 
try:</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>  ./check_nrpe -H 129.207.59.33 -c 
check_nrpe_status</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>and see how that goes.  (I'm assuming that's the correct IP 
address.)</FONT></SPAN></DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=428493819-16012003><FONT face="Comic Sans MS" color=#000080 
size=2>jc</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 
  [mailto:justin@pvamu.edu]<BR><B>Sent:</B> Thursday, January 16, 2003 1:34 
  PM<BR><B>To:</B> Carroll, Jim P [Contractor]<BR><B>Subject:</B> Re: 
  [Nagios-users] nrpe<BR><BR></FONT></DIV>
  <DIV><FONT face=Arial size=2>Yes.</FONT></DIV>
  <DIV> </DIV>
  <DIV><FONT face=Arial size=2>[root@antispam src]# telnet localhost 
  5666<BR>Trying 127.0.0.1...<BR>Connected to localhost.<BR>Escape character is 
  '^]'.<BR>Connection closed by foreign host.<BR>[root@antispam 
  src]#<BR></FONT></DIV>
  <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=jcarro10@sprintspectrum.com 
    href="mailto:jcarro10@sprintspectrum.com">Carroll, Jim P [Contractor]</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>To:</B> <A title=justin@pvamu.edu 
    href="mailto:justin@pvamu.edu">'Justin'</A> </DIV>
    <DIV style="FONT: 10pt arial"><B>Cc:</B> <A 
    title=nagios-users@lists.sourceforge.net 
    href="mailto:nagios-users@lists.sourceforge.net">Nagios-Users (E-mail)</A> 
    </DIV>
    <DIV style="FONT: 10pt arial"><B>Sent:</B> Thursday, January 16, 2003 12:44 
    PM</DIV>
    <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] nrpe</DIV>
    <DIV><BR></DIV>
    <DIV><SPAN class=075594318-16012003><FONT face="Comic Sans MS" color=#000080 
    size=2>Can you telnet to port 5666 on your client?</FONT></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> Justin [<A 
      href="mailto:justin@pvamu.edu">mailto:justin@pvamu.edu</A>]<BR><B>Sent:</B> 
      Thursday, January 16, 2003 11:46 AM<BR><B>To:</B> Carroll, Jim P 
      [Contractor]<BR><B>Subject:</B> Re: [Nagios-users] 
      nrpe<BR><BR></FONT></DIV>
      <DIV><FONT face=Arial size=2>This is what my nrpe config looks 
      like.</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial 
      size=2>command[check_users]=/usr/local/nagios/libexec/check_users -w 5 -c 
      10<BR>command[check_load]=/usr/local/nagios/libexec/check_load -w 15,10,5 
      -c 30,25,20<BR>command[check_disk1]=/usr/local/nagios/libexec/check_disk 
      -w 20 -c 10 -p 
      /dev/hda1<BR>command[check_disk2]=/usr/local/nagios/libexec/check_disk -w 
      20 -c 10 -p 
      /dev/hdb1<BR>command[check_zombie_procs]=/usr/local/nagios/libexec/check_procs 
      -w 5 -c 10 -s 
      Z<BR>command[check_total_procs]=/usr/local/nagios/libexec/check_procs -w 
      150 -c 200<BR></FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Here is my xinetd script </FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2> # default: 
      on<BR>        # description: 
      NRPE<BR>        service 
      nrpe<BR>        
      {<BR>                
      flags           = 
      REUSE<BR>                
      socket_type     = 
      stream<BR>                
      wait            = 
      no<BR>                
      user            = 
      nagios<BR>                
      server          = 
      /usr/sbin/nrpe<BR>                
      server_args     = -i 
      /usr/local/nagios/etc/nrpe.cfg<BR>                
      log_on_failure  += 
      USERID<BR>                
      disable         = 
      no<BR>                
      only_from       = 129.207.59.31 
      129.207.59.33 127.0.0.1</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Here is the error</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>[root@antispam src]# ./check_nrpe -H 
      129.207.59.33 -p 5666 -c check_users<BR>CHECK_NRPE: Error receiving data 
      from host.<BR></FONT></DIV>
      <DIV><FONT face=Arial size=2>Thanks for the help Jim</FONT></DIV>
      <DIV><FONT face=Arial size=2></FONT> </DIV>
      <DIV><FONT face=Arial size=2>Justin Wedeking</FONT></DIV>
      <DIV><FONT face=Arial size=2>Info Tech<BR></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=jcarro10@sprintspectrum.com 
        href="mailto:jcarro10@sprintspectrum.com">Carroll, Jim P 
        [Contractor]</A> </DIV>
        <DIV style="FONT: 10pt arial"><B>To:</B> <A title=justin@pvamu.edu 
        href="mailto:justin@pvamu.edu">'Justin'</A> ; <A 
        title=nagios-users@lists.sourceforge.net 
        href="mailto:nagios-users@lists.sourceforge.net">Nagios Users</A> </DIV>
        <DIV style="FONT: 10pt arial"><B>Sent:</B> Wednesday, January 15, 2003 
        5:24 PM</DIV>
        <DIV style="FONT: 10pt arial"><B>Subject:</B> RE: [Nagios-users] 
        nrpe</DIV>
        <DIV><BR></DIV>
        <DIV><SPAN class=036202423-15012003><FONT face="Comic Sans MS" 
        color=#000080 size=2>Do you have check_ping defined in the nrpe.cfg file 
        of the client host?</FONT></SPAN></DIV>
        <DIV><SPAN class=036202423-15012003><FONT face="Comic Sans MS" 
        color=#000080 size=2></FONT></SPAN> </DIV>
        <DIV><SPAN class=036202423-15012003><FONT face="Comic Sans MS" 
        color=#000080 size=2>jc</FONT></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> Justin [<A 
          href="mailto:justin@pvamu.edu">mailto:justin@pvamu.edu</A>]<BR><B>Sent:</B> 
          Wednesday, January 15, 2003 8:55 AM<BR><B>To:</B> Nagios 
          Users<BR><B>Subject:</B> [Nagios-users] nrpe<BR><BR></FONT></DIV>
          <DIV><FONT face=Arial size=2>I check the recent messages to make sure 
          my question had not been answered.  But what is the common cause 
          ofthis error?  The nrpe dameon is running on the remote host, and 
          plugins are up to date etc.</FONT></DIV>
          <DIV><FONT face=Arial size=2>Thanks</FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>snatch:/usr/local/nrpe-1.7/src# 
          ./check_nrpe -H antispam.pvamu.edu -c check_ping<BR>CHECK_NRPE: Error 
          receiving data from host.<BR></FONT></DIV>
          <DIV><FONT face=Arial size=2></FONT> </DIV>
          <DIV><FONT face=Arial size=2>Justin Wedeking</FONT></DIV>
          <DIV><FONT face=Arial size=2>Info 
    Tech</DIV></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></BLOCKQUOTE></FONT></BODY></HTML>