LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices


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

Rep: Reputation: 15
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
 
Old 03-25-2009, 02:20 AM   #2
your_shadow03
Senior Member
 
Registered: Jun 2008
Location: Germany
Distribution: Slackware
Posts: 1,461
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, 04:48 AM   #3
surya_prakash
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
 
  


Reply


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 08:57 PM
change ipw220 interface name from eth1 to wlan0 zen0n Linux - Laptop and Netbook 3 08-23-2005 02:55 PM
configuration interface eth1 in Linux9.0 nbaloch Linux - Networking 5 02-27-2005 07:34 PM
eth1 interface does not start up automatically wprauchholz Linux - Newbie 1 10-24-2004 10:46 AM
eth1 interface does not start-up automatically wprauchholz Linux - Networking 1 10-24-2004 07:20 AM


All times are GMT -5. The time now is 07:13 AM.

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