Detecting Windows Backups?
Kevin Keane
subscription at kkeane.com
Tue Oct 12 18:11:23 CEST 2010
Thank you very much! I'm really more interested in keying off the actual backup, rather than a specific time. The reason is that I may not always have control over when the backup window occurs.
-----Original Message-----
From: Tom Yates [mailto:madlists at teaparty.net]
Sent: Tuesday, October 12, 2010 8:05 AM
To: Nagios Users List
Subject: Re: [Nagios-users] Detecting Windows Backups?
On Tue, 12 Oct 2010, Joseph L. Casale wrote:
> Check/notification schedules, but if you find a way to drop a host
> into maintenance mode programmatically, post back! I have wanted to
> know how to do this. I haven't looked in to it much, but I assume one
> could do it with the cgi's?
i have a tiny piece of perl which produces a scheduled downtime for a defined service on a defined host from x minutes in the future to y minutes in the future. you run it with the relevant arguments and feed the output straight to your command file, which in my case is /usr/local/nagios/var/rw/nagios.cmd .
it works very nicely out of cron, i use to automatically schedule 2-300 downtime windows a week. hacking it to schedule host downtime instead would be trivial; sorry if that's not what you meant by "drop a host into maintenance mode programmatically".
if that might be of interest to anyone let me know and i'll put it up somewhere. it's not very complex!
--
Tom Yates - http://www.teaparty.net
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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
------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1, ECMAScript5, and DOM L2 & L3.
Spend less time writing and rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
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