Monitoring script for hardware and software problems


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Monitoring script for hardware and software problems
# 1  
Old 03-31-2010
Monitoring script for hardware and software problems

Gentlemen

I want to write a small script and run as cronjob sothat the script runs every four hours

The script should be capable of finding any hardware issues,panics,coredumps

if anyissues found it should sent mail.If no issues it shouldnt sent mail

Deeply appreciated if any help is given

thank you so much

sai

Last edited by zaxxon; 03-31-2010 at 11:49 AM.. Reason: subject, non descriptive
# 2  
Old 03-31-2010
There are various different derivatives of Linux, Unix etc. out there. Each have different ways to check for such things you listed.

Depending on that, it can be much more thanjust a little script to check out different conditions and to interpret them correctly etc.

Try to write a script yourself and if you have particular problem, don't hesitate to ask.

For checking the result of exit codes, you only need some basic knowledge of shell scripting. Also for sending mails there is still the help of the search function of this forum since this is a very common question being asked here.

I change the subject since it is not very descriptive. When opening threads in future, please use some more descriptive subjects so that people that search for similar topics have it much easier to find them, thank you.
# 3  
Old 03-31-2010
I tried the following thing

dmesg >> test
cat /root/test | egrep -i "bad|error|not found|fatal|FATAL|softerror|error|panic|link is down|failing path|checker failed path"

This is working

But how can i sent mail to my outlook if any of these patterns found?

Also i wanted to included if any coredumps observed .

pls help !

sai
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Solaris

Hardware to software RAID migration

We have hardware RAID configured on our T6320 server and two LDOMs are running on this server. One of our disk got failed and replaced. After replacemnt the newly installed disk not detected by RAID controlled so Oracle suggested to upgrade the REM firmware. As this is the standalone production... (0 Replies)
Discussion started by: rock123
0 Replies

2. Windows & DOS: Issues & Discussions

windows server hardware monitoring

:wall:hi all, as hp support pack has hpasm, hpacu command using in linux server to show and monitor hareware status. hpacu command was avaialbe in windows server also, but where can find hpasm command in windows, it looks hp support pack not support hpasm in windows. any one can help? an... (1 Reply)
Discussion started by: maxlee24
1 Replies

3. UNIX for Dummies Questions & Answers

Hardware monitoring free tool

Folks; What is a good free tool i can use on my SUSE10 to monitor the hardware so i can be notified in case of any failure such as fan failure, etc..? (2 Replies)
Discussion started by: Katkota
2 Replies

4. Shell Programming and Scripting

Hardware and Software Configuration in UNIX..

Hi, Anybody please let me know the command to find the Hardware and Software components used in any HP-UNIX or Sun Solaris UNIX server ? I need to get all the configuration of the UNIX server. Thanks, Rohit.. (1 Reply)
Discussion started by: ronix007
1 Replies

5. Shell Programming and Scripting

Filesystem Monitoring script problems

Hi there all, #!/usr/bin/ksh Set -x MIN_MB_FREE="100MB" # Min. MB of Free FS Space MAX_PERCENT="85%" # Max. FS percentage value FSTRIGGER="1000MB" # Trigger to switch from % Used to MB Free WORKFILE="/tmp/df.work" # Holds filesystem data >$WORKFILE #... (0 Replies)
Discussion started by: draco
0 Replies

6. UNIX for Dummies Questions & Answers

Utilities/Scipts to Inventory Hardware and Software

Hi All, I am looking for a way to inventory the hardware and software components of many Solaris 8 servers/workstations. I would like to script this to run against a list of IP's in a text file. For Windows there are many such programs available (like Belarc) Is there anything similar for... (4 Replies)
Discussion started by: limey
4 Replies

7. AIX

AIX and SUN unix commands for hardware monitoring

Hello again, I would like to know if the following commands: diag, errpt, lscfg, lspv, lsvg, lsps, lslv for AIX and prtdiag, psrinfo, sysdef for SUN are native to these systems or if they are in fact scripts that are added after the unix installation. Thank you in advance. Have a nice day (4 Replies)
Discussion started by: VeroL
4 Replies

8. UNIX for Dummies Questions & Answers

hardware monitoring on unix servers (Sun and Bull AIX)

Hello, I was given the task to write a shell script that must detect hardware problems on Unix Solaris and AIX servers. Problems that should be detected by this script are for example: abnormally high temperature or voltage etc... So, does anyone know if that kind of information is logged in a... (2 Replies)
Discussion started by: VeroL
2 Replies

9. UNIX for Advanced & Expert Users

Monitoring Software??

Hi everybody, I am currently setting up a web site for customers to place orders. Having placed the order the file will be downloaded onto the Unix server (SCO UNIX v 5.0.4). At this point I need to be able to monitor the system for the file being resident and if it is then perform an action on... (2 Replies)
Discussion started by: cookiejar
2 Replies

10. UNIX for Dummies Questions & Answers

lm_sensors? hardware monitoring?

ok ok ok, this is my third post on the day I become a member. I should stop. I'm sure all my questions are in the wrong forums. I'm sorry. my question is about lm_sensors, and hardware monitoring. I have the goods, lm_sensors.tar.gz, and i2c.tar.gz and I'm rather confusled. could someone... (2 Replies)
Discussion started by: plusran
2 Replies
Login or Register to Ask a Question