<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 6.5.7232.36">
<TITLE>AW: [Nagios-users] plugin 1.4 - check_ping</TITLE>
</HEAD>
<BODY>
<!-- Converted from text/plain format -->

<P><FONT SIZE=2>What kind of internal rules do you mean ?</FONT>

<BR><FONT SIZE=2>Asfar as I can see check_icmp can not run when it is not setuid root as I would guess that it requires some low level access to networking stuff.</FONT></P>

<P><FONT SIZE=2>-----Ursprüngliche Nachricht-----</FONT>

<BR><FONT SIZE=2>Von: nagios-users-admin@lists.sourceforge.net</FONT>

<BR><FONT SIZE=2>[<A HREF="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</A>]Im Auftrag von Marco</FONT>

<BR><FONT SIZE=2>Borsani</FONT>

<BR><FONT SIZE=2>Gesendet am: Dienstag, 13. September 2005 15:50</FONT>

<BR><FONT SIZE=2>An: Rob Moss</FONT>

<BR><FONT SIZE=2>Cc: NAGIOS</FONT>

<BR><FONT SIZE=2>Betreff: R: [Nagios-users] plugin 1.4 - check_ping</FONT>
</P>

<P><FONT SIZE=2>1) Yes , I compiled on same server (same steps of 1.3 plugins)</FONT>
</P>

<P><FONT SIZE=2>2) ldd /usr/local/nagios/libexec/check_ping</FONT>

<BR><FONT SIZE=2>        /usr/lib/libc.2 =>      /usr/lib/libc.2</FONT>

<BR><FONT SIZE=2>        /usr/lib/libdld.2 =>    /usr/lib/libdld.2</FONT>

<BR><FONT SIZE=2>        /usr/lib/libc.2 =>      /usr/lib/libc.2</FONT>
</P>

<P><FONT SIZE=2>3) ok</FONT>
</P>

<P><FONT SIZE=2>4) Yes, I can run /usr/sbin/ping as nagios user</FONT>
</P>

<P><FONT SIZE=2>Other ideas?</FONT>
</P>

<P><FONT SIZE=2>Actually I can not use check_icmp due some internal rules;</FONT>

<BR><FONT SIZE=2>check_icmp has 755 persissions (not 4555) , but it is running correctly.</FONT>
</P>

<P><FONT SIZE=2>Regards</FONT>

<BR><FONT SIZE=2>Marco Borsani</FONT>
</P>

<P><FONT SIZE=2>-}-----Messaggio originale-----</FONT>

<BR><FONT SIZE=2>-}Da: nagios-users-admin@lists.sourceforge.net</FONT>

<BR><FONT SIZE=2>-}[<A HREF="mailto:nagios-users-admin@lists.sourceforge.net">mailto:nagios-users-admin@lists.sourceforge.net</A>]Per conto di Rob Moss</FONT>

<BR><FONT SIZE=2>-}Inviato: martedě 13 settembre 2005 15.04</FONT>

<BR><FONT SIZE=2>-}Cc: NAGIOS</FONT>

<BR><FONT SIZE=2>-}Oggetto: Re: [Nagios-users] plugin 1.4 - check_ping</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}Marco Borsani wrote:</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}>Hi all !</FONT>

<BR><FONT SIZE=2>-}></FONT>

<BR><FONT SIZE=2>-}>I am testing plugin 1.4 on my HP-UX 11.0 and Nagios 2 system , but when I</FONT>

<BR><FONT SIZE=2>-}>run check_ping command (release 1.45) a receive a "Memory</FONT>

<BR><FONT SIZE=2>-}fault(coredump)"</FONT>

<BR><FONT SIZE=2>-}>#> ./check_ping -H IPADDRESS -w 100,10% -c 200,20%</FONT>

<BR><FONT SIZE=2>-}></FONT>

<BR><FONT SIZE=2>-}>Same command using check_ping release 1.11 works fine.</FONT>

<BR><FONT SIZE=2>-}></FONT>

<BR><FONT SIZE=2>-}>Do you know why?</FONT>

<BR><FONT SIZE=2>-}></FONT>

<BR><FONT SIZE=2>-}></FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}This could be caused by any number of reasons..</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}1. Did you compile nagios / nagios-plugins on this server (as opposed to</FONT>

<BR><FONT SIZE=2>-}compiling on some other server and copying the binaries over)</FONT>

<BR><FONT SIZE=2>-}2. Run   'ldd /path/to/check_ping' and send back the output</FONT>

<BR><FONT SIZE=2>-}3. Check if check_ping and/or /usr/bin/ping is setuid</FONT>

<BR><FONT SIZE=2>-}4. Can you run /usr/bin/ping as the nagios user</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}You could alternatively try the  check_icmp  program which runs the icmp</FONT>

<BR><FONT SIZE=2>-}ping itself, as opposed to the check_ping program which is a wrapper</FONT>

<BR><FONT SIZE=2>-}around /usr/bin/ping.  check_icmp also takes exactly the same command</FONT>

<BR><FONT SIZE=2>-}arguments.  Just remember that check_icmp needs to be setuid:  chmod'ed</FONT>

<BR><FONT SIZE=2>-}to 4555 and ownership as root</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}Cheers</FONT>

<BR><FONT SIZE=2>-}rob.</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}</FONT>

<BR><FONT SIZE=2>-}-------------------------------------------------------</FONT>

<BR><FONT SIZE=2>-}SF.Net email is Sponsored by the Better Software Conference & EXPO</FONT>

<BR><FONT SIZE=2>-}September 19-22, 2005 * San Francisco, CA * Development Lifecycle</FONT>

<BR><FONT SIZE=2>-}Practices</FONT>

<BR><FONT SIZE=2>-}Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA</FONT>

<BR><FONT SIZE=2>-}Security * Process Improvement & Measurement * <A HREF="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</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">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>

<BR><FONT SIZE=2>-}::: Please include Nagios version, plugin version (-v) and OS</FONT>

<BR><FONT SIZE=2>-}when reporting any issue.</FONT>

<BR><FONT SIZE=2>-}::: Messages without supporting info will risk being sent to /dev/null</FONT>
</P>
<BR>
<BR>

<P><FONT SIZE=2>-------------------------------------------------------</FONT>

<BR><FONT SIZE=2>SF.Net email is Sponsored by the Better Software Conference & EXPO</FONT>

<BR><FONT SIZE=2>September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices</FONT>

<BR><FONT SIZE=2>Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA</FONT>

<BR><FONT SIZE=2>Security * Process Improvement & Measurement * <A HREF="http://www.sqe.com/bsce5sf">http://www.sqe.com/bsce5sf</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">https://lists.sourceforge.net/lists/listinfo/nagios-users</A></FONT>

<BR><FONT SIZE=2>::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. </FONT>

<BR><FONT SIZE=2>::: Messages without supporting info will risk being sent to /dev/null</FONT>
</P>

</BODY>
</HTML>