schedule downtime every day/week

Arno Lehmann al at its-lehmann.de
Thu Jun 2 16:19:29 CEST 2005


Hi,

Joost Saanen wrote:

> When I run sched_downtime I get the error:
> "Could not open Nagios Command Line."
> 
> in the sched_downtime file i put this in the variabele NagiosCMD:
> $NagiosCMD = "/usr/bin";
> 
> Anyone could tell me what the commandline exactly is?

Well, I don't know that script by heart... basically, you will have to 
modify it so it fits to your installation. I guess what is needed is the 
path of Ngios' command file (the pipe in the rw directory...), so you go 
looking for it in Nagios' main configuration file.

Arno

> On 6/2/05, Arno Lehmann <al at its-lehmann.de> wrote:
> 
>>Hello,
>>
>>Joost Saanen wrote:
>>
>>
>>>Hi.
>>>
>>>I know how I can schedule a downtime in Nagios. But I can't find how i
>>>configure a periodic downtime like: server A is going down for 10
>>>minutes every friday at 5:00 pm. Anyone know if this is possible in
>>>Nagios?
>>
>>Not in Nagios itself, but you can use a simple script to supply the
>>necessary data to the command file. his script could be run by cron, and
>>it could take its input from some sort of database. There are examples
>>around, iirc you will find something in nagiosexchange.org
>>
>>Arno
>>
>>
>>--
>>IT-Service Lehmann                    al at its-lehmann.de
>>Arno Lehmann                  http://www.its-lehmann.de
>>
> 
> 
> 

-- 
IT-Service Lehmann                    al at its-lehmann.de
Arno Lehmann                  http://www.its-lehmann.de


-------------------------------------------------------
This SF.Net email is sponsored by Yahoo.
Introducing Yahoo! Search Developer Network - Create apps using Yahoo!
Search APIs Find out how you can build Yahoo! directly into your own
Applications - visit http://developer.yahoo.net/?fr=offad-ysdn-ostg-q22005
_______________________________________________
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