Temporarily changing thresholds of an NRPE driven service check
Sean McAfee
smcafee at collaborativefusion.com
Tue Jul 22 16:27:46 CEST 2008
I believe you're right - you'd have to schedule two checks, each using a
custom time period.
This can simplified by using the exclude and use directives:
define timeperiod{
timeperiod_name vignette_backup
sunday 20:00-23:00
monday 20:00-23:00
tuesday 20:00-23:00
wednesday 20:00-23:00
thursday 20:00-23:00
friday 20:00-23:00
saturday 20:00-23:00
}
define timeperiod{
timeperiod_name vignette
use 24x7
exclude vignette_backup
}
The standard check would then have check_period as vignette, while the
one you'd like to run during your backup window would use vignette_backup.
Sean McAfee
System Engineer
Collaborative Fusion, Inc.
smcafee at collaborativefusion.com
412-422-3463 x 4025
5849 Forbes Avenue
Pittsburgh, PA 15217
****************************************************************
IMPORTANT: This message contains confidential information
and is intended only for the individual named. If the reader of
this message is not an intended recipient (or the individual
responsible for the delivery of this message to an intended
recipient), please be advised that any re-use, dissemination,
distribution or copying of this message is prohibited. Please
notify the sender immediately by e-mail if you have received
this e-mail by mistake and delete this e-mail from your system.
E-mail transmission cannot be guaranteed to be secure or
error-free as information could be intercepted, corrupted, lost,
destroyed, arrive late or incomplete, or contain viruses. The
sender therefore does not accept liability for any errors or
omissions in the contents of this message, which arise as a
result of e-mail transmission.
****************************************************************
Jim.Melin at co.hennepin.mn.us wrote:
> Good morning.
>
> We have a vignette content management server that every night syncs its content to a backup volume for nightly 'snapshot' purposes. This runs about 2
> hours. The service check that runs is NRPE driven, and we're using simple NRPE config where the ok, warn, critical values are coded on the target
> systems nrpe.conf file (we intend to change this when we convert to Nagios version 3).
>
> Given this structure is there a good way to be able to tell nagios from 20:00 to 23:00 use a diff service check? I figure it has to be something to do
> with a custom time period, but I'm really not sure what all I would need to do to make it work correctly.
>
> Any insights appreciated.
>
> -J
>
> Disclaimer: Information in this message or an attachment may be government data and thereby subject to the Minnesota Government Data Practices Act, Minnesota Statutes, Chapter 13, may be subject to attorney-client or work product privilege, may be confidential, privileged, proprietary, or otherwise protected, and the unauthorized review, copying, retransmission, or other use or disclosure of the information is strictly prohibited. If you are not the intended recipient of this message, please immediately notify the sender of the transmission error and then promptly delete this message from your computer system.
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
> Build the coolest Linux based applications with Moblin SDK & win great prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> 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
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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