R: plugin 1.4 - check_ping
Andreas Ericsson
ae at op5.se
Tue Sep 13 16:00:28 CEST 2005
Marco Borsani wrote:
> 1) Yes , I compiled on same server (same steps of 1.3 plugins)
>
> 2) ldd /usr/local/nagios/libexec/check_ping
> /usr/lib/libc.2 => /usr/lib/libc.2
> /usr/lib/libdld.2 => /usr/lib/libdld.2
> /usr/lib/libc.2 => /usr/lib/libc.2
>
> 3) ok
>
> 4) Yes, I can run /usr/sbin/ping as nagios user
>
> Other ideas?
>
Downgrade the plugin-package. nagios-plugins-1.3.1 seems by far the most
portable and stable version of all the plugins.
You could also try the check_ping in
http://oss.op5.se/nagios/op5plugins-2005-09-22.tar.gz
> Actually I can not use check_icmp due some internal rules;
> check_icmp has 755 persissions (not 4555) , but it is running correctly.
>
Strange. You could set it to 4110 if that makes anybody any happier. The
nagios user can be disabled from logging in, and that'd be a safer setup
than allowing the ping binary to keep on being setuid root.
If you take a look at the check_icmp code, you'll also notice that I
take great pains of making sure everything is calculated properly, and
that it drops privileges immediately after obtaining the socket. That is
far more defensive than most regular ping implementations.
--
Andreas Ericsson andreas.ericsson at op5.se
OP5 AB www.op5.se
Lead Developer
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list