ping host using other interface

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

ping host using other interface

Post 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
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ping host using other interface

Post by scottwilkerson »

Code: Select all

/usr/local/nagios/libexec/check_icmp -H 10.x.x.x -s eth2
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
sitaonair
Posts: 55
Joined: Wed Jan 06, 2016 3:36 am

Re: ping host using other interface

Post by sitaonair »

Thanks for this, I found that after creating the thread, kindly close this issue.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: ping host using other interface

Post by scottwilkerson »

sitaonair wrote:Thanks for this, I found that after creating the thread, kindly close this issue.
Great!

Locking thread
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked