LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices

Reply
 
Search this Thread
Old 03-07-2011, 03:18 PM   #1
ScorchPipe
Member
 
Registered: Sep 2010
Posts: 38

Rep: Reputation: 0
Monitor software RAID with Nagios


Hi!

I recently installed Nagios, mostly to monitor my software RAID1 (md0) and make it send me an e-mail when a disk fails.
(I also installed Merlin and Ninja. But it didn't find localhost in the Ninja-web-interface, so I will use the Nagios-default-webinterface for the time being)

I understand that raid monitoring (check_raid?) is a plugin but I find no good guides to install it. It feels like they are either skipping steps that they assume that everyone has already done or the guides are broken.

Can someone guide me through getting raid monitoring in Nagios?

I'm running CentOS 5.5

I installed Nagios with this guide:
http://nagios.sourceforge.net/docs/3...rt-fedora.html

Merlin and Ninja with these:
https://wiki.op5.org/merlin:docs:quickstart-centos5
https://wiki.op5.org/ninja:docs:quickstart-centos5
 
Old 03-08-2011, 03:36 AM   #2
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
Quote:
Originally Posted by ScorchPipe View Post
Hi!

I recently installed Nagios, mostly to monitor my software RAID1 (md0) and make it send me an e-mail when a disk fails.
(I also installed Merlin and Ninja. But it didn't find localhost in the Ninja-web-interface, so I will use the Nagios-default-webinterface for the time being)

I understand that raid monitoring (check_raid?) is a plugin but I find no good guides to install it. It feels like they are either skipping steps that they assume that everyone has already done or the guides are broken.

Can someone guide me through getting raid monitoring in Nagios?

I'm running CentOS 5.5

I installed Nagios with this guide:
http://nagios.sourceforge.net/docs/3...rt-fedora.html

Merlin and Ninja with these:
https://wiki.op5.org/merlin:docs:quickstart-centos5
https://wiki.op5.org/ninja:docs:quickstart-centos5
Which nagios plugin are you using??? I have seen this one (check_linux_raid) at nagios exchange for checking software raid built with mdadm?

It is a case of installing the plugin on your client raid machine and using nagios to call the check_linux_raid with nrpe. I assume you are using nrpe client on your client machines right?
You can also use the mdadm -m (monitor mode) to send you any email alerts when something is up??
I am not really familiar with ninja or merlin, but if they do the same or a similar thing to nrpe, then you wont need nrpe....
 
Old 03-08-2011, 10:58 AM   #3
ScorchPipe
Member
 
Registered: Sep 2010
Posts: 38

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by centosboy View Post
Which nagios plugin are you using??? I have seen this one (check_linux_raid) at nagios exchange for checking software raid built with mdadm?

It is a case of installing the plugin on your client raid machine and using nagios to call the check_linux_raid with nrpe. I assume you are using nrpe client on your client machines right?
You can also use the mdadm -m (monitor mode) to send you any email alerts when something is up??
I am not really familiar with ninja or merlin, but if they do the same or a similar thing to nrpe, then you wont need nrpe....
Merlin is a database (or something like that) and Ninja is a web interface.

No I dont use nrpe. Not that I know of anyway.
I think I have to use sendmail or postfix to use -m, but I don't want that.

I am currently working on the problem in a different way:
I am working on a script that checks mdadm --detail /dev/md0 if "Failed Devices" is set anything other than "0". The script works when I run it manually, but when I put it in crontab it wont run. My guess would be that it is a problem with permissions.
 
Old 03-09-2011, 04:05 AM   #4
centosboy
Senior Member
 
Registered: May 2009
Location: london
Distribution: centos5
Posts: 1,137

Rep: Reputation: 116Reputation: 116
I wouldn't know., unless I saw the error message.
 
  


Reply

Tags
nagios, raid


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
Nagios Monitor bsdfan Linux - Networking 1 07-26-2010 02:36 AM
monitor wireless via Nagios deibertine Linux - Networking 5 07-10-2009 10:58 AM
Monitor Squid with Nagios creatorrr Linux - Networking 5 07-04-2008 10:04 AM
Adding an old software-RAID array to a software-RAID installation.. Boot problems GarethM Linux - Hardware 2 05-05-2008 03:16 PM
Nagios: Raid Plugin kegwell Linux - Software 2 05-01-2005 11:38 AM


All times are GMT -5. The time now is 07:57 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration