Changing a Contact for Oncall Purposes

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
rdhall01
Posts: 87
Joined: Wed Nov 09, 2011 9:53 am

Changing a Contact for Oncall Purposes

Post by rdhall01 »

In nagios core we worte a few scripts to change the oncall person and update the corresponding method to notify them and then reload nagios. Is thee any functionality withing nagiosxi to accomplish the same thing? The scripts were in /usr/local/nagios/bin/ all we did was execute the script ./script_name person_on _call and the script changed the oncall info and reloaded nagios. Is there a way without having to have access to nagios core config manager and change contact info in there.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Changing a Contact for Oncall Purposes

Post by mguthrie »

There is a way to automate configuration changes in Nagios XI from the command line. It's not foolproof, but it works for most scenarios.

If you create a valid contact definition, you can drop the config file in the /usr/local/nagios/etc/import directory, and then run:

Code: Select all

/usr/local/nagiosxi/scripts/reconfigure_nagios.sh  
which is a command-line version of Apply Configuration. If you set that to a cron job you might be able to do what you're needing if the on-call rotation isn't on a regular schedule.
Locked