Nagios and network interfaces


#1

I have two network interfaces, one on “server” subnet (eth0), one on “client” subnet (eth1).
Can i configure some nagios services to do check through eth0 and the others to do check through eth1?

sorry, for bad english.


#2

I have 3 interfaces on the nagios server and nagios uses the correct routing depending on which IP address it has to check :slight_smile:

Ciao, Luca


#3

did you configured static route with route command? Or nagios understand it automatically?

many thanks for your reply


#4

the usual unix routing. if you ping an address of the private network the operating system knows which interface to use. If you can ping the different machines Nagios will reach them :slight_smile:

Luca


#5

ok, but now i have a problem.
I have a host on server subnet (eth0) that i want to check from client subnet (eth1).

I must check it from client’s subnet because the dhcp service on that server offer ip address to pc that are on client’s subnet…

How i can do it? it making me mad…

thanks again for reply

EDIT:
i’ve solved the dhcp problem with -i parameter of check_dhcp plugin… now the question is: how i can check a server from client’s subnet?
server = eth0
client = eth1

for Luca: are you italian?
Edited Thu Mar 17 2005, 03:13PM ]


#6

If the server is available to the client subnet it should have a “client net” IP address. or not? :slight_smile:

Luca

PS: Si, nel profilo trovi indicazioni per MSN e ICQ :slight_smile:


#7

[quote=“luca”]If the server is available to the client subnet it should have a “client net” IP address. or not? :slight_smile:

Luca

PS: Si, nel profilo trovi indicazioni per MSN e ICQ :slight_smile: [/quote]

yes, but the plugins by default goes through the server’s interface…