<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=utf-8">


<META content="MSHTML 5.50.4611.1300" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2>Do these commands as root:</FONT></SPAN></DIV>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2>   chown root /bin/ping</FONT></SPAN></DIV>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2>   chmod u+s /bin/ping</FONT></SPAN></DIV>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=418552521-15112002><FONT face="Comic Sans MS" color=#000080 
size=2>then try again.</FONT></SPAN></DIV>
<BLOCKQUOTE 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #000080 2px solid">
  <DIV class=OutlookMessageHeader dir=ltr align=left><FONT face=Tahoma 
  size=2>-----Original Message-----<BR><B>From:</B> Kenton Smith 
  [mailto:ksmith@chartwelltechnology.com]<BR><B>Sent:</B> Friday, November 15, 
  2002 3:21 PM<BR><B>To:</B> Carroll, Jim P [Contractor]<BR><B>Cc:</B> 
  nagios-users@lists.sourceforge.net<BR><B>Subject:</B> RE: [Nagios-users] Yet 
  another ping problem<BR><BR></FONT></DIV>Even if I run nagios as root the ping 
  plugin isn't working. <BR><BR>On Fri, 2002-11-15 at 14:12, Carroll, Jim P 
  [Contractor] wrote: 
  <BLOCKQUOTE><PRE><FONT color=#737373><FONT size=3><I>I'm running RH 7.3, and /bin/ping is setuid root.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I></FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>jc</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I></FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> -----Original Message-----</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> From: Kenton Smith [mailto:ksmith@chartwelltechnology.com]</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Sent: Friday, November 15, 2002 2:35 PM</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> To: nagios-users@lists.sourceforge.net</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Subject: [Nagios-users] Yet another ping problem</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> I can't believe I have to write to the mailing list about a ping</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> problem. I looked everywhere though and can't find anything similar to</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> what is happening to me.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> I'm running RH8 with Nagios 1.0b6 and installed from the RPM's.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Everything works fine including plugins except for ping. I </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> think it's a</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> permissions problem because when I ping as any user other than root I</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> get this message - ping: icmp open socket: Operation not permitted.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> If I run - </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> ./check_ping -H 192.168.1.1 -w 3000.0,80% -c 5000.0,100% -p 1</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> I get this error - </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> /bin/ping -n -U -c 1 192.168.1.1</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Error: Could not interpret output from ping command</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> I assume the "could not interpret" error comes from the fact that it's</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> being passed the previous error. I've also tried this with older</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> versions of ping (RH7.2), which is the way I had it setup on </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> my 7.3 box.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> I can't for the life of me get ping to work as another user other than</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> root. I even went so far as to change permissions and ownership to</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> nagios and got the same error.</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Any advice?</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Kenton Smith</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> -------------------------------------------------------</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> This sf.net email is sponsored by: To learn the basics of securing </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> your web site with SSL, click here to get a FREE TRIAL of a Thawte </FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Server Certificate: http://www.gothawte.com/rd524.html</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> _______________________________________________</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Nagios-users mailing list</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> Nagios-users@lists.sourceforge.net</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> https://lists.sourceforge.net/lists/listinfo/nagios-users</FONT></FONT></I>
<FONT color=#737373><FONT size=3><I>> </FONT></FONT></I></PRE></BLOCKQUOTE>
  <TABLE cellSpacing=0 cellPadding=0 width="100%">
    <TBODY>
    <TR>
      <TD><FONT size=3><I>Kenton Smith, </FONT></I><FONT size=1>GSEC</FONT> 
        <BR><FONT size=3>Systems Administrator</FONT> <BR><FONT size=3>Chartwell 
        Technology Inc.</FONT> <BR>700, 407 2 St. S.W. <BR>Calgary, AB T2P 2Y3 
        <BR>CANADA <BR>P 403 261-6619 <BR>F 403 237-5816 <BR>E <A 
        href="mailto:ksmith@chartwelltechnology.com">ksmith@chartwelltechnology.com</A> 
        <BR>W www.chartwelltechnology.com 
</TD></TR></TBODY></TABLE></BLOCKQUOTE></BODY></HTML>