Re: Migrating checks to "live" servers
Posted: Sat Mar 14, 2015 2:02 pm
I agree with the preceding post with the caveat that you won't be able to properly store the hostgroup configuration in Nagios XI. The static functionality does not automatically change the "state" within the Nagios GUI. In other words, the monitoring engine will handle static configurations just fine, but you will not see these configured objects in the Nagios XI GUI.
This highlights one of the difficulties in automating certain things within Nagios XI. They have provided an easy way to import new configurations, but modifying those configurations once they are in the Nagios XI backend database can be difficult. In the case of the reply above, you would have to remove the hosts using the nagiosql_delete_host.php utility, then create the hosts again via the import mechanism. This process is fairly straightforward, but is hardly trivial.
That all said, if you're a risk taker you could directly manipulate the database once you understand what happens when you make the change you need. Nagios have stated categorically that they will not support this option.
One other consideration would be an event_handler that utilized the external command pipeline to modify the running configuration of the Nagios engine. You can change most aspects of the "in flight" configuration through the external command interface. However, these changes do not survive a restart of the Nagios monitoring engine.
This highlights one of the difficulties in automating certain things within Nagios XI. They have provided an easy way to import new configurations, but modifying those configurations once they are in the Nagios XI backend database can be difficult. In the case of the reply above, you would have to remove the hosts using the nagiosql_delete_host.php utility, then create the hosts again via the import mechanism. This process is fairly straightforward, but is hardly trivial.
That all said, if you're a risk taker you could directly manipulate the database once you understand what happens when you make the change you need. Nagios have stated categorically that they will not support this option.
One other consideration would be an event_handler that utilized the external command pipeline to modify the running configuration of the Nagios engine. You can change most aspects of the "in flight" configuration through the external command interface. However, these changes do not survive a restart of the Nagios monitoring engine.