I have a script that listens to rabbit MQ to pull events down for newly created hosts which it in turn creates the host / service configuration files for. The problem I'm having which I can't figure out is if I run the reconfigure_nagios.sh script from within my python script it always truncates my services after a certain number of services. I've confirmed there is nothing wrong with my service configs as if I either "apply configuration" via the nagios xi web ui or manually run the reconfigure_nagios.sh script by hand it imports fine.
The return code coming back to my python script is 0 which implies that it successfully imported the configs (even though it truncates the number of services during import). Have any of you run into this problem?
This is a bit outside of scope for what the support forums are intended to cover. Myself and a few of the other tech staff know some Python but we don't have any experts on-staff. You'd probably have more luck asking on a forum that specifically deals with Python, since that definitely seems to be the piece that's misbehaving.
How many services does it import?
Why not add the host to a group which is on the service, or add the host to the services?
The XI way of doing things seems to be to not use the features designed into Nagios. That being, for every host, you have X services, rather than having one service applied to many hosts.
gormank wrote:The XI way of doing things seems to be to not use the features designed into Nagios. That being, for every host, you have X services, rather than having one service applied to many hosts.
This is just the way that our wizards do it, but there is nothing that requires this to be done in the CCM or in an import.