02-04-2013
Hardware fault checking tends to be OS specific. For example on AIX 5.3 you can check for system alerts (amber light) by ensuring the output of /usr/lpp/diagnostics/bin/usysfault is "normal" and send email if it's not.
You could also run the SNMP deamon and check for alert conditions using that.
There are also quite a few commercial status monitoring tools around (Nagios/SolarWinds/Cacti come to mind) that can send SMS/email etc. alerts whenever a number of conditions arrise (eg running out of disk space, high CPU load, system alerts and the like).
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
We have a text file which has the following data.
ISA~00~ ~00~ ~ZZ~VISTN ~ZZ~U1CAD ~051227~183
7~U~00200~000011258~0~P~<
GS~FA~EE05J~U1CAD~051227~1831~000011258~X~002002
ST~997~0001
AK1~SH~247
AK2~856~2470001
AK5~A
AK2~856~2470002
AK5~A... (3 Replies)
Discussion started by: isingh786
3 Replies
2. HP-UX
Hi All,
I am having shell scripts that make use of ftp to fetch data from one hp-ux box to another. Currently we are migrating these scripts to sftp. Is it a straight forward one? Also, please clarify my following doubts:
1) In ftp we check the success of ftp by verifying the status codes... (4 Replies)
Discussion started by: fisa
4 Replies
3. Shell Programming and Scripting
Hi we have weblogic deployed under Linux Enterprise 5 .
Now i want to write a script that checks if weblogic is running or not
I have found that weblogic uses Java as process .
Can i do this way :
my Script File :
Echo Checking Status
if
then
echo Server Running
else
echo... (2 Replies)
Discussion started by: Ravi Pavanv
2 Replies
4. Shell Programming and Scripting
Hi,
I have a cron job which runs every ten minutes, now i hav to check the process whether it is running or not only once and then this should be sent to a log file..
crontab :
00,10,20,30,40,50 * * * * a
process check
ps = 'ps -ef |grep a '
if
then
echo " Success" >... (3 Replies)
Discussion started by: NehaKrish
3 Replies
5. Shell Programming and Scripting
Hello All,
I'm new in shell scripting and would like to write an automated script that will check few jobs for the completion, and restart the process based on the jobs status. I am not quite sure how do I check the job status... Can someone please help? Any help will be appreciated. Thanks in... (1 Reply)
Discussion started by: mohullah
1 Replies
6. UNIX for Advanced & Expert Users
Hi,
I have master job which will run based on the sub jobs status.
In the master job I am giving the condition like,
condition: s(sub_job) f(sub_job)
This scenario will work if the sub job status is success or failed. but I want to run my master job even if the sub_job was... (1 Reply)
Discussion started by: Kattoor
1 Replies
7. UNIX for Advanced & Expert Users
EXPERTS,
I need a shell script to check the DBs status (Running/Shutdown) in the server.If its Running then no issue but if it is in shutdown state ,it should prompt like " DB is shut down you want to startup??" if i enter YES it should startup.
ORACLE_SID are present in /var/opt/oracle/oratab
... (0 Replies)
Discussion started by: navsan420
0 Replies
8. Shell Programming and Scripting
EXPERTS,
I need a UNIX shell script to check the DBs status (Running/Shutdown) in the server.If its Running then no issue but if it is in shutdown state ,it should prompt like " DB is shut down you want to startup??" if i enter YES it should startup.
ORACLE_SID are present in... (18 Replies)
Discussion started by: navsan420
18 Replies
9. Red Hat
Hello,
We have a cluster and each server have 2 PSU.
An alarm should be raised in case of failure so we need to check periodically the PSU status wth a script.
The first idea was to check with ipmitool but this take some time to get the data and we face some other issues now due to that... (1 Reply)
Discussion started by: @dagio
1 Replies
10. UNIX for Beginners Questions & Answers
Hi All,
Have a query
How to check for a process and if down start it , try if for 2 times and its not starting don't do it
My code is working to some extent but while starting try starting both times.
Please advise , whats wrong here ?
if you have any other approach please do share.
My... (1 Reply)
Discussion started by: abhaydas
1 Replies
LEARN ABOUT DEBIAN
hobbit-mailack
HOBBIT-MAILACK(8) System Manager's Manual HOBBIT-MAILACK(8)
NAME
hobbit-mailack - permit acknowledging alerts via e-mail
SYNOPSIS
hobbit-mailack --env=FILENAME [--debug]
DESCRIPTION
hobbit-mailack normally runs as an input mail-filter for the hobbit user, e.g. by being called from the xymon users' procmailrc(5) file.
hobbit-mailack recognizes e-mails that are replies to hobbitd_alert(8) mail alerts, and converts the reply mail into an acknowledge message
that is sent to the Xymon system. This permits an administrator to acknowledge an alert via e-mail.
ADDING INFORMATION TO THE REPLY MAIL
By default, an acknowledgment is valid for 1 hour. If you know in advance that solving the problem is going to take longer, you can change
this by adding delay=DURATION to the subject of your mail reply or on a line in the reply message. Duration is in minutes, unless you add a
trailing 'h' (for 'hours'), 'd' (for 'days') or 'w' (for 'weeks').
You can also include a message that will show up on the status-page together with the acknowledgment, e.g. to provide an explanation for
the issue or some other information to the users. You can either put it at the end of the subject line as msg=Some random text, or you can
just enter it in the e-mail as the first non-blank line of text in the mail (a "delay=N" line is ignored when looking for the message
text).
USE WITH PROCMAIL
To setup hobbit-mailack, create a .procmailrc file in the xymon-users home-directory with the following contents:
DEFAULT=$HOME/Mailbox
LOGFILE=$HOME/procmail.log
:0
| $HOME/server/bin/hobbit-mailack --env=$HOME/server/etc/hobbitserver.cfg
USE WITH QMAIL
If you are using Qmail to deliver mail locally, you can run hobbit-mailack directly from a .qmail file. Setup the xymon-users .qmail file
like this:
| $HOME/server/bin/hobbit-mailack --env=$HOME/server/etc/hobbitserver.cfg
OPTIONS
--env=FILENAME
Load environment from FILENAME, usually hobbitserver.cfg.
--debug
Dont send a message to hobbitd, but dump the message to stdout.
SEE ALSO
hobbitd_alert(8), hobbitd(8), xymon(7)
Xymon Version 4.2.3: 4 Feb 2009 HOBBIT-MAILACK(8)