how can monitor eth on linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

how can monitor eth on linux

Post 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
User avatar
lmiltchev
Former Nagios Staff
Posts: 13587
Joined: Mon May 23, 2011 12:15 pm

Re: how can monitor eth on linux

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
baber
Posts: 295
Joined: Wed Oct 21, 2015 4:39 am

Re: how can monitor eth on linux

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: how can monitor eth on linux

Post 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
Locked