Is there a testing or debugging mode for nagios?
Lori Adams
ladams at cloudmark.com
Fri Jul 29 18:42:02 CEST 2005
check_period is not a plugin. Check_period is one of the options for
service.cfg configurations.
http://nagios.sourceforge.net/docs/1_0/xodtemplate.html#service
check_period means that a service check will only be executed during the
given timeframe.
Values for check_period are (usually) stored in timeperiods.cfg.
Example:
define service {
host_name foo
service_description bar
check_period 24x7
.
.
.
}
To reschedule from command line, you will have to submit an "external
command" with various values to your nagios.cmd (set in nagios.cfg)
file.
(see docs: http://nagios.sourceforge.net/docs/1_0/extcommands.html
or
http://www.nagios.org/developerinfo/externalcommands/commandinfo.php?com
mand_id=127)
I have a perl script where I pass the server name and service name and
it will reschedule the check for 3 seconds later. "external commands"
are your friend. You can end up scripting all of the commands.
good luck.
-Lori
-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of
Ralph.Grothe at itdz-berlin.de
Sent: Thursday, July 28, 2005 9:59 PM
To: sloane at ku.edu
Cc: nagios-users at lists.sourceforge.net
Subject: RE: [Nagios-users] Is there a testing or debugging mode for
nagios?
Hi Bob,
what kind of plug-in is check_period?
I cannot find it in my Nagios installation.
nor in the tarballs of either Nagios or Nagios-plugins.
Is it a kind of NoOp plug-in stub I would have to write?
How can I re-schedule from the command line.
My Nagios web interface (i.e. the CGIs) are still a bit broken
(I could easily fix if I had root privileges on the webserver to
edit httpd.conf)
Anyway, I'm a bit shell-fixed and avoid GUIs whenever possible.
I know with Nagios I probably would miss half the fun,
but this seems cosmetic to me, and can be addressed later when
the base system is at least working satisfactorily.
> -----Original Message-----
> From: Sloane, Robert Raymond [mailto:sloane at ku.edu]
> Sent: Thursday, July 28, 2005 4:03 PM
> To: Ralph.Grothe at itdz-berlin.de
> Subject: RE: [Nagios-users] Is there a testing or debugging
mode for
> nagios?
>
>
> Why not put a "check_period none" in the template, so that the
checks
> won't normally be scheduled, and then use the "Re-schedule the
next
> check of this service" link to schedule the check when you want
it to
> happen? Once things are debugged, you can set the check_period
in the
> actual entry to whatever is appropriate.
> --
> Bob Sloane, University of Kansas Computer Center, Lawrence, KS,
66045
> Email:sloane at ku.edu http://www.ku.edu/home/sloane
Phone:(785)864-0444
>
>
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net
> > [mailto:nagios-users-admin at lists.sourceforge.net] On Behalf
> > Of Ralph.Grothe at itdz-berlin.de
> > Sent: Thursday, July 28, 2005 7:55 AM
> > To: nagios-users at lists.sourceforge.net
> > Subject: [Nagios-users] Is there a testing or debugging mode
> > for nagios?
> >
> >
> > Hello,
> >
> > this morning I received the contempt of my fellow admins
> > because nagios swamped their mailboxes over night. Well, it
> > wasn't of course nagios' fault but mine because I defined a
> > template service wherein I referenced a conact_groups that
> > comprised all of us. When later adding new services I simply
> > forgot to override this attribute with a contact group that
> > contained only my mail account (until I've come to terms with
> > configuring).
> >
> > That's why I desperately miss a means to run a nagios daemon
> > that isn't scheduling the checks by itself but rather by
> > manual invocation. I'd also wish to test out alerting and
> > event handling myself by raising events (e.g. to see where in
> > the end the notification is delivered to).
> >
> > Does nagios provide special utilities, or switches to support
> > (high level) debugging that way?
> >
> > Regards
> >
> >
> > -------------------------------------------------------
> > 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20050729/4111798f/attachment.html>
More information about the Users
mailing list