LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   How to monitor ETH1 interface (https://www.linuxquestions.org/questions/linux-newbie-8/how-to-monitor-eth1-interface-714236/)

surya_prakash 03-25-2009 01:12 AM

How to monitor ETH1 interface
 
Hi,


I have two interfaces eth0 and eth1 on linux machine.I used to access the machine using eth0. I want to monitor both eth0 and eth1 using monit service. If for any reason eth0 or eth1 goes down it should send mail to admin(my) mail id.how to configure the monit control file to do this activity.


Thanks
prakash

your_shadow03 03-25-2009 01:20 AM

You can monitor the interface is up or Down through mii-tool command.
Do Write a Script with a condition that if mii-tool reports eth0 up then it should show "eth0 is up" and if mii-tool reports eth1 down the message to be printed is "eth1 is down"

surya_prakash 03-25-2009 03:48 AM

Yes we can do that with mii-tool or ethtool .But ideally i want this to be monitored by a service like monit. but i dont know how to configure monit control file to monitor this interface


All times are GMT -5. The time now is 05:38 AM.