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
how can monitor eth on linux
Re: how can monitor eth on linux
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:
For more information on how to monitor Linux via SNMP, please review the document below:
https://assets.nagios.com/downloads/nag ... g_SNMP.pdf
Example:
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!
Re: how can monitor eth on linux
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:
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
-
- 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
Set up twp separate services that look like:
For example
Code: Select all
./check_ifoperstatus -H $HOSTADDRESS$ -C $ARG1$ -k $ARG2$ $ARG3$
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