Page 1 of 1

how can monitor eth on linux

Posted: Wed May 03, 2017 3:59 am
by baber
i have a linux server with 2 eth eth0 (managment ip adress) is 10.1.1.1 and eth1 ip address is 192.168.1.100 eth1 is so important for me i want if eth1 has been down show that in nagios i think one solution is do ping 192.168.1.100 from eth0 now how can i do this ? ping 192.168.1.100 from managment ip (10.1.1.1) and if it was failed show on nagios eth1 is down

can you help me plz?

BR

Re: how can monitor eth on linux

Posted: Wed May 03, 2017 11:33 am
by lmiltchev
You could just run the Network Switch / Router Monitoring Wizard against your client. You will be able to monitor the status and the bandwidth of both interfaces via SNMP.

Example:
example01.PNG
example02.PNG
For more information on how to monitor Linux via SNMP, please review the document below:
https://assets.nagios.com/downloads/nag ... g_SNMP.pdf

Re: how can monitor eth on linux

Posted: Wed May 03, 2017 11:43 am
by baber
lmiltchev wrote:You could just run the Network Switch / Router Monitoring Wizard against your client. You will be able to monitor the status and the bandwidth of both interfaces via SNMP.

Example:
example01.PNG
example02.PNG
For more information on how to monitor Linux via SNMP, please review the document below:
https://assets.nagios.com/downloads/nag ... g_SNMP.pdf

thanks

but i am using nagios core

Re: how can monitor eth on linux

Posted: Wed May 03, 2017 1:45 pm
by dwhitfield
Set up twp separate services that look like:

Code: Select all

./check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$ $ARG3$
For example

Code: Select all

check_ifoperstatus -H 192.168.5.12 -C public -k 19 -v 2 -p 161
check_ifoperstatus -H 192.168.5.12 -C public -k 25 -v 2 -p 161