How to schedule reoccuring maintenance in Nagios xi via cron

This support forum board is for support questions relating to Nagios xi, our flagship commercial network monitoring solution.
fmpub
Posts: 20
Joined: Thu Jun 17, 2010 1:57 pm

How to schedule reoccuring maintenance in Nagios xi via cron

Post by fmpub »

We have a backup process that needs us to schedule a maintenance for one of our DB Servers MYSQL checks daily. I wrote a bash script that echo's the following into the CMD Pipe and I have ensured that processing of external commands is on.

The script sends the following DATA formatted in the way Nagios should expect it.

db2.cm;MYSQL;1304708948;1304716148;1;0;7200;Chris;Testing

and I see the following in the Nagios Log.

EXTERNAL COMMAND: SCHEDULE_SVC_DOWNTIME;db2.cm;MYSQL;1304708948;1304716148;1;0;7200;Chris;Testing

In the GUI the service has a comment that says "This service has been scheduled for fixed downtime ..."

but when the service goes CRITICAL (hard) it still pages. Am I formatting something incorrectly above? or is there additional places beyond the CMD PIPE I need to change to schedule a daily maintenance window. Or Ultimately is there an easier way to do this in xi vs Core.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: How to schedule reoccuring maintenance in Nagios xi via

Post by mguthrie »

There is a page in xi that allows you to schedule recurring downtime. In the Home->Incident Management->Recurring Downtime page, you can set up schedules for host and service downtime.