Page 1 of 1

ping host using other interface

Posted: Tue Nov 20, 2018 10:28 pm
by sitaonair
Hi,

I have 3 interfaces on my NagXI server eth0/1/2, due to the way the network is setup, I am trying to ping a host using eth2 which i can do from command line:

ping -I eth2 10.x.x.x

Would like to know what is an efficient way to do this in Nagios?

Thanks in advance

Re: ping host using other interface

Posted: Wed Nov 21, 2018 8:46 am
by scottwilkerson

Code: Select all

/usr/local/nagios/libexec/check_icmp -H 10.x.x.x -s eth2

Re: ping host using other interface

Posted: Wed Nov 21, 2018 9:53 pm
by sitaonair
Thanks for this, I found that after creating the thread, kindly close this issue.

Re: ping host using other interface

Posted: Mon Nov 26, 2018 7:57 am
by scottwilkerson
sitaonair wrote:Thanks for this, I found that after creating the thread, kindly close this issue.
Great!

Locking thread