Operating System - Linux
1827452 Members
3825 Online
109965 Solutions
New Discussion

how to write a disk monitoring script?

 
SOLVED
Go to solution
kamalnathan
Occasional Advisor

how to write a disk monitoring script?

I have a HP Proliant DL360 server with internal disk array(2 disk).
Its RAID. and its hotswapable.

Qustion : How to monitor/report Hard disk failure? I'm using LFS(Linux).
I want to write a error message in the log file, in the event of disk failure. what is the simple method to do it?

I'm using open source LFS(Linux) operating system.

unfortunatly /var/log/messages is not getting any updates on disk failure. can I upgrade the cciss.c file for it and recompile the kernel?

Or is there is any utlities that i can install to monitor the disk failure?

Will HP Insight (SIM) will help or can i able to get a monitoring program?

Thanks.
2 REPLIES 2
Todd Schelin
Valued Contributor
Solution

Re: how to write a disk monitoring script?

Nathan,
If it is there are Linux agents that you install on the Linux OS that will help in monitoring disk failures, degradation. SIM will also alert you to disks that are in a Pre-Failure state.
You should be able to download a Linux agent that can install on your OS. Once that is done if you have a SIM server installed then just do a manual or Autodiscovery of that device and you are good to go.

You can then set up alerts and notification to tell you by e-mail, pager etc. that you have a failure on your device(S).

Here is a link to where you can download a driver for Linux etc.

http://h18023.www1.hp.com/support/files/server/us/family/model/1123.html?submit.y=7&submit.x=11〈=en&cc=us
kamalnathan
Occasional Advisor

Re: how to write a disk monitoring script?

i dont find any software for LFS (Linux from screatch). all of them for RedHat linux, RPM files. Any idea how to get the source code from RPM files? or create driver for LFS?