<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>RE: [Nagios-users] NIS check?</TITLE>

<META content="MSHTML 6.00.2600.0" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff size=2>After 
trading a couple of emails with Will Melick, it appears that the current version 
(beta) of check_rpc may have a bug.</FONT></SPAN></DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff size=2>No 
matter what host addresss you give the plugin, it returns an 'OK' status.  
For example:</FONT></SPAN></DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff size=2>$ 
./check_rpc -H 999.999.999.99 -C ypbind<BR>OK: RPC program ypbind udp 
running</FONT></SPAN></DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff size=2>This 
bug appears to have been introduced between version 1.2.9-4 and 1.3.0-beta2 of 
nagios-plugins.  I still had a</FONT></SPAN></DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff size=2>copy 
of check_rpc from 1.2.9-4 laying around and it returns an error when invoked as 
above.</FONT></SPAN></DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=018170622-16012003><FONT face=Arial color=#0000ff 
size=2>--Ben</FONT></SPAN></DIV>
<BLOCKQUOTE dir=ltr style="MARGIN-RIGHT: 0px">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Nelson, Ben <BR><B>Sent:</B> 
  Thursday, January 16, 2003 12:35 PM<BR><B>To:</B> 'Will Melick'; 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users] NIS 
  check?<BR><BR></FONT></DIV>
  <P><FONT size=2>Use the check_rpc plugin........</FONT> <BR><FONT size=2>From 
  my commands.cfg file:</FONT> <BR><FONT size=2>define command{</FONT> <BR><FONT 
  size=2>        
  command_name    check_ypserv</FONT> <BR><FONT 
  size=2>        
  command_line    $USER1$/check_rpc -H $HOSTADDRESS$ -C 
  ypserv</FONT> <BR><FONT size=2>}</FONT> <BR><FONT size=2>define 
  command{</FONT> <BR><FONT size=2>        
  command_name    check_yppasswdd</FONT> <BR><FONT 
  size=2>        
  command_line    $USER1$/check_rpc -H $HOSTADDRESS$ -C 
  yppasswdd</FONT> <BR><FONT size=2>}</FONT> <BR><FONT size=2>define 
  command{</FONT> <BR><FONT size=2>        
  command_name    check_ypbind</FONT> <BR><FONT 
  size=2>        
  command_line    $USER1$/check_rpc -H $HOSTADDRESS$ -C 
  ypbind</FONT> <BR><FONT size=2>}</FONT> </P>
  <P><FONT size=2>--Ben</FONT> </P>
  <P><FONT size=2>-----Original Message-----</FONT> <BR><FONT size=2>From: Will 
  Melick [<A href="mailto:will@ilm.com">mailto:will@ilm.com</A>]</FONT> 
  <BR><FONT size=2>Sent: Thursday, January 16, 2003 11:45 AM</FONT> <BR><FONT 
  size=2>To: nagios-users@lists.sourceforge.net</FONT> <BR><FONT size=2>Subject: 
  [Nagios-users] NIS check?</FONT> </P><BR>
  <P><FONT size=2>Does anyone have a favorite way to check NIS services?</FONT> 
  </P>
  <P><FONT size=2>Thanks much,</FONT> <BR><FONT size=2>Will Melick</FONT> 
  </P><BR><BR>
  <P><FONT size=2>-------------------------------------------------------</FONT> 
  <BR><FONT size=2>This SF.NET email is sponsored by: Thawte.com</FONT> 
  <BR><FONT size=2>Understand how to protect your customers personal information 
  by implementing</FONT> <BR><FONT size=2>SSL on your Apache Web Server. Click 
  here to get our FREE Thawte Apache </FONT><BR><FONT size=2>Guide: <A 
  href="http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en" 
  target=_blank>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en</A></FONT> 
  <BR><FONT size=2>_______________________________________________</FONT> 
  <BR><FONT size=2>Nagios-users mailing list</FONT> <BR><FONT 
  size=2>Nagios-users@lists.sourceforge.net</FONT> <BR><FONT size=2><A 
  href="https://lists.sourceforge.net/lists/listinfo/nagios-users" 
  target=_blank>https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT> 
  </P></BLOCKQUOTE></BODY></HTML>