I need a little help
Marc Powell
marc at ena.com
Mon Dec 8 16:21:06 CET 2003
> -----Original Message-----
> From: Luke Worthy [mailto:luke at advancen.com]
> Sent: Monday, December 08, 2003 1:01 AM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] I need a little help
>
> I have Nagios working really well, but I have one small problem. I
have
> slightly altered one of the checks to read a particular page, search
for a
> string and so on, but when it fails it doesn't send out notifications.
>
>
> The host is still up and working, but the server that the script was
> looking
> for is down. I goes red and makes noises and all hat stuff, but how
do I
> make Nagios send out notifications?
>
> I know it has something to do with hard and soft errors.....basically
I
> want
> notifications sent for everything (hard or soft).
Nagios will only send alerts on a Hard state, so the key is to make the
very first check a hard state --
max_check_attempts: This directive is used to define the number of times
that Nagios will retry the service check command if it returns any state
other than an OK state. Setting this value to 1 will cause Nagios to
generate an alert without retrying the service check again.
If you're certain that's your problem then setting max_check_attempts to
1 should fix it.
--
Marc
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list