Nagios + SMS = TRUE?

Mark Ferlatte ferlatte at cryptio.net
Thu Oct 2 22:04:06 CEST 2003


After re-reading, I think you've got a bug:

James Turnbull said on Thu, Oct 02, 2003 at 09:00:05PM +1000:
> pages=`echo \`wc -l < $hist\``
> 
> if [ "$pages" -ge "$npages" ]; then
>         /bin/mail -s "More than $npages pages sent in the last five minutes"
> $admin
> else
>         /usr/bin/printf "%b" "Host '$1' is $2\nInfo: $3\nTime: $4" |
> /bin/mail -s "$5 alert - Host $6 is $2" $8
>         echo "$time" >>$hist
> fi

If I'm reading this right, this will still send 1 page for every page that
comes in over your limit; it will send "More than foo pages" messages instead
of nagios alerts.  You need to make sure that you only send the "Too many
pages" message once per pager storm.

M
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <https://www.monitoring-lists.org/archive/users/attachments/20031002/1bd57404/attachment.sig>


More information about the Users mailing list