- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - Linux
- >
- Re: I am new to linux ..Pls help me
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-30-2010 06:02 PM
тАО03-30-2010 06:02 PM
I am new to linux ..Pls help me
I wanted to write a shell script in linux so that if any crash dump occurs and if any hardware failures are detected it should mail me.I want to execute this script every 4 hours daily .Request you to help me pls
Thanks and appreciate it !!
sai
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2010 05:20 AM
тАО03-31-2010 05:20 AM
Re: I am new to linux ..Pls help me
It might make more sense to ask a Linux
question in a Linux forum:
http://forums.itrc.hp.com/service/forums/familyhome.do?familyId=118
> [...] I want to execute this script every 4
> hours daily
man cron
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-31-2010 05:24 AM
тАО03-31-2010 05:24 AM
Re: I am new to linux ..Pls help me
I don't know which of your managers gave you this assignment but this is not how admins are notified after a server panics and reboots itself.
Data centers, all data centers, rely on a monitoring that pings every box in the network, and when one of those boxes fails to respond, then the monitoring server sends out the email and alarm.
Your solution will not work for several reasons. The box is hung and not responding. This means nothing is being executed included your alarm script or email transmissions.
The box is rebooting. Some HP boxes take 20 minutes, some Linux x86 boxes 10 minutes. All depends. But when you add in making a crash dump, then add in another 20 minutes making it now 40 and 30.
The only tests that will work under you plan, would be to execute a 'who -b' every four hours, and then perform a date comparison. Or to check the date on some of the system log files like OLDmessages or messages.
Verify that you data center does not have a monitoring server already set up and get back to me.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-01-2010 07:30 AM
тАО04-01-2010 07:30 AM
Re: I am new to linux ..Pls help me
I agree that real monitoring should be done with a monitoring tool and a monitoring center. Anyway, for hardware monitoring there's the hardware-monitoring-tools of hp called hp-health and hpasm which you should have a look on. Combined with a script such as check_hpasm this is a good way to monitor the hardware. (For check_hpasm I found only a link to a german page, probably Google may translate: http://labs.consol.de/lang/de/nagios/check_hpasm/).
Best regards,
Michael
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО04-02-2010 06:29 AM
тАО04-02-2010 06:29 AM
Re: I am new to linux ..Pls help me
1) enable kdump
2) write a script looking for any differences/changes in /var/crash. If diff's exist, pipe diff results to mail
3) fire said script off with a cron job.