ping packet size (-s option as normal user)

Andreas Koch a.koch at eurodata.de
Tue Jan 27 11:04:20 CET 2004


You must edit the check_ping

Check_ping can't try the option "-s"

You can edit your check_marcus_ping:

#!/bin/sh

/bin/ping -s 2048 $1

and the right exitstatus what you want


Andreas



Am Di, den 27.01.2004 schrieb Marcus Schopen um 09:13:
> Hi,
> 
> I have problems to use the -s option of (e.g. /bin/ping -n -s 56 -c 5 
> 192.168.1.12) as user nagios on my debian woody (using nagios 1.1). I 
> get a "ping: Operation not permitted" error message on console. 
> Webinterface shows:
> 
> PING UNKNOWN     01-27-2004 09:05:18     0d 9h 9m 30s     1/3  /bin/ping 
> -n -s 56 -c 5 192.168.1.12
> 
> /bin/ping is already set to setuid root. Where can I disable the -s 
> opton in nagios' configuration or make it workable forr user nagios? 
> Using ping without setting package size works fine for user nagios.
> 
> Thanks,
> Marcus
> 
> 
> -------------------------------------------------------
> The SF.Net email is sponsored by EclipseCon 2004
> Premiere Conference on Open Tools Development and Integration
> See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
> http://www.eclipsecon.org/osdn
> _______________________________________________
> 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
-- 



-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
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