Page 1 of 1

Monitor Configuration Snapshots for Errors

Posted: Thu Feb 28, 2019 10:29 am
by gkramps
Is there a way I can monitor the "Configuration Snapshots" for any "Config Error" in the "Snapshot Result"?

The page I'm looking at is:

https://<nagios xi server>/nagiosxi/admin/coreconfigsnapshots.php.

We have some automated process running through Puppet that use the API. The processes run the api appliy configurations. I've gotten some Config Errors, where a contact group wasn't found. This has stopped the other hosts from collecting performance data, until I "activate" the missing contact group. I would like to be notified if there are any "Config Errors".

Re: Monitor Configuration Snapshots for Errors

Posted: Thu Feb 28, 2019 5:47 pm
by scottwilkerson
You could look for recent files in this directory

Code: Select all

ls -l /usr/local/nagiosxi/nom/checkpoints/nagioscore/errors/
there will be a new file if there is a config error

Re: Monitor Configuration Snapshots for Errors

Posted: Tue Apr 02, 2019 1:00 pm
by gkramps
Thanks for the information. I was able to develop a shell script that was able to do what I need. It's been setup as a Service now. You can close this post.

Re: Monitor Configuration Snapshots for Errors

Posted: Tue Apr 02, 2019 1:28 pm
by scottwilkerson
gkramps wrote:Thanks for the information. I was able to develop a shell script that was able to do what I need. It's been setup as a Service now. You can close this post.
Great!

Locking thread