check_ping and source address

Ton Voon ton.voon at altinity.com
Wed Jul 5 11:14:23 CEST 2006


On 5 Jul 2006, at 10:06, Ben O'Hara wrote:

> Im looking at adding a ping check from our nagios host to a remote
> host, the nagios machine has a number of interfaces and i want to set
> the source address of the ping to ensure it goes over a specfic link
> (and hence a specific VPN tunnel)
>
> anyone know if this is possible at all?  Ive had a look at the code
> for check_ping and it looks like it might be a possibility as its just
> calling the ping binary but rather than reinvent the wheel i thought
> id ask here first.
>
> anyone doing anything like this at present?
>
> would it be a change to check_ping that people would use or would it
> be better to do it elsewhere

Ben,

There is a patch that has been submitted on SF for this  
functionality: https://sourceforge.net/tracker/index.php? 
func=detail&aid=1499641&group_id=29880&atid=397599

Unfortunately, this will not be applied into the main plugin code  
because it is too painful to parse through all the different  
distributions of ping to see if the source address option is supported.

However, it is very useful functionality. If you can provide a patch  
for check_icmp (the pure C implementation of check_ping), we would  
definitely re-evaluate it.

Ton

http://www.altinity.com
T: +44 (0)870 787 9243
F: +44 (0)845 280 1725
Skype: tonvoon



Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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