Latest LQ Deal: Linux Power User Bundle
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!


  Search this Thread
Old 03-25-2009, 01:12 AM   #1
LQ Newbie
Registered: Oct 2008
Location: Hyderabad
Posts: 26

Rep: Reputation: 15
How to monitor ETH1 interface


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 to configure the monit control file to do this activity.

Old 03-25-2009, 01:20 AM   #2
Senior Member
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,462
Blog Entries: 6

Rep: Reputation: 51
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"
Old 03-25-2009, 03:48 AM   #3
LQ Newbie
Registered: Oct 2008
Location: Hyderabad
Posts: 26

Original Poster
Rep: Reputation: 15
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


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
eth0/eth1 interface fails to come up Jayraj Prabhu Linux - Hardware 1 12-16-2005 07:57 PM
change ipw220 interface name from eth1 to wlan0 zen0n Linux - Laptop and Netbook 3 08-23-2005 01:55 PM
configuration interface eth1 in Linux9.0 nbaloch Linux - Networking 5 02-27-2005 06:34 PM
eth1 interface does not start up automatically wprauchholz Linux - Newbie 1 10-24-2004 09:46 AM
eth1 interface does not start-up automatically wprauchholz Linux - Networking 1 10-24-2004 06:20 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 03:34 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration