Questions Check_period and passive check
Marc Powell
marc at ena.com
Thu Jul 28 03:07:14 CEST 2005
Ah, I understand now. Nagios doesn't include that kind of logic but
there's no reason you couldn't include it in the check command, either
on the host doing the monitoring or on your nagios host accepting the
passive checks. Make it a simple script that checks the day (or
whatever) against your time-period logic. If it's within the period you
would normally check, run the check command and return the results to
nagios. If outside, return your custom text and the appropriate exit
code (http://nagiosplug.sf.net : Developer Guidelines).
Just a thought.
--
Marc
> -----Original Message-----
> From: js [mailto:forums at emat.be]
> Sent: Wednesday, July 27, 2005 4:33 PM
> To: Marc Powell
> Cc: nagios-users at lists.sourceforge.net
> Subject: Re: [Nagios-users] Questions Check_period and passive check
>
> That would be a solution, only if the check_freshness funtion has it's
own
> check_command parameter which isn't the case.
>
> If we have the following:
>
> define service{
> host_name test
> service_description test
> active_checks_enabled 1
> normal_check_interval 10
> check_period
> 24x7_but_monday
> check_command
> do_whatever_check
> check_freshness 1
> freshness_threshold 1200
> check_command [a
command
> that echo's "shop is closed today" and exits 3]
> }
>
>
> I want to be able to mark the "status information field" with "shop is
> closed today".
> And all the other days I get the info of do_whatever_check in the
"status
> information field"
>
>
> Ok maybe this isn't possible, but any other tricks or tips,
>
> thanks,
>
>
>
>
>
> Marc Powell wrote:
>
>
>
>
> -----Original Message-----
> From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-
> users-
> admin at lists.sourceforge.net] On Behalf Of js
> Sent: Wednesday, July 27, 2005 1:36 PM
> To: nagios-users at lists.sourceforge.net
> Subject: [Nagios-users] Questions Check_period and
passive
> check
>
> Hi all,
>
> Is there a way to send a passive check to a service on
the
> moment the
> service goes out of his check_period?
> This way when a service is not being checked because it
finds
> itself
> outside his check_periode, we can put in the status
> information field
> something like "Service outside check period"
> This way it's clear on the "service detail" overview
that this
> particular service is not being checked.
> Visually you are unable to see when a service is outside
his
> check_period. The only way to see this is on the detail
of a
> service
> "next scheduled active check" which isn't intuitive.
> When you schedule downtime yourself there are the little
> ZZZzzzz's
>
>
> which
>
>
> is a nice visual feature.
>
>
> Any tips, tricks, advice or feedback?
>
>
>
> Look at the documentation on freshness checks. It's referenced
quite
> often in the passive check documentation.
>
> --
> Marc
>
>
> -------------------------------------------------------
> SF.Net email is Sponsored by the Better Software Conference &
EXPO
> September
> 19-22, 2005 * San Francisco, CA * Development Lifecycle
Practices
> Agile & Plan-Driven Development * Managing Projects & Teams *
> Testing & QA
> Security * Process Improvement & Measurement *
> http://www.sqe.com/bsce5sf
> _______________________________________________
> 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
>
>
-------------------------------------------------------
SF.Net email is Sponsored by the Better Software Conference & EXPO September
19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA
Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf
_______________________________________________
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