[Linux-PowerEdge] aletaction + email in 7.1.0

lejeczek peljasz at yahoo.co.uk
Tue Nov 6 16:29:46 CST 2012

I wonder if the OMSA somehow groups the events together, 
maybe by time stamp and rounding the time up to the full second
this is the only pattern I can spot,
it seems that if more than one event occurs at the same 
second(according to what's in alertlog) only one email gets 
and the scrip gets exactly one event which is five lines of 
text off the alertlog
so only one invocation of the script per second and not by 
an actual event occurrence??

On 06/11/12 15:02, lejeczek wrote:
> hi everybody
> all the events in my omsa are meant to invoke a simple
> script, namely
> #!/bin/sh
> host="myhost"
> email"my at email"
> echo "$(/opt/dell/srvadmin/bin/omreport | 2> /dev/null |
> egrep "^S" -A 5|head -n 5)" | mail -s "!! OM ALERT - $host"
> $email
> #end of script
> simple right, yet I don't get everything emailed
> eg with simple math, cleared my alertlog, rebooted system to
> get everything again in log
> I can see clearly not everything is being sent, simply put
> even number of alerts in the log does not correspond to
> number of emails
> it's not the mail service and I don't think it's the script
> itself (I think it all worked in 6.5.x)
> any suggestions, thoughts as to what might be wrong there
> are appreciated very much
> cheers
> _______________________________________________
> Linux-PowerEdge mailing list
> Linux-PowerEdge at dell.com
> https://lists.us.dell.com/mailman/listinfo/linux-poweredge

More information about the Linux-PowerEdge mailing list