Quantcast
Channel: Blog of a LAMP Developer based in Richmond, Surrey » centos
Viewing all articles
Browse latest Browse all 3

Email alerts from Dell Poweredge using omreport

$
0
0

Dell Poweredge Servers come with tools to monitor the hardware and driver updates. They have called it, OpenManage Server Administrator and this is how you can get it running. (if using yum and Centos)

wget -q -O – http://linux.dell.com/repo/hardware/bootstrap.cgi | bash

yum install srvadmin-all

srvadmin-services.sh start.

If all goes fine, you should be able to view a web interface via port 1311.

https://localhost:1311

I then had to log in with my root user name and password. I was pleased with the amount of features incorporated in Open Manage.

To setup the alerts you can click on Alerts Management > Then on the individual sensor. I chose to select, Execute application, so that I can have the software email me a complete list of errors detected.

Here is the script I use to email me:

#!/bin/bash

ps -ef >/tmp/psout.txt 2>&1

omreport system alertlog > /tmp/alertmsg.txt 2>&1

mail -s “Server Alert” root </tmp/alertmsg.txt> /tmp/mailout.txt 2>&1

Obviously substitute root with your email. Now when the server detects, will receive a printout of processes running at the time of the incident and a copy of the log file.

Share/Save/Bookmark


Viewing all articles
Browse latest Browse all 3

Trending Articles