Don’t thank me for a speedy response (and don’t always count on one), I just happen to look periodically throughout the day most days.
Worth noting we prefer markdown formatting per this guide.
Side note, I inherited a large instance (~25k+ hosts/services) that was several versions behind. We opted to do a side-by-side migration to fight any upgrading issues.
So i did as you proposed. I moved the service.conf back to the master.
It looks like i must be missing something.
See my setup below.
I didn’t say to move back to the master, or I didn’t mean to – I thought it was already on the master:
TLDR; I think the solution to your problem is to define the hosts and/or services themselves in the Zone’s config file (ie
zones.d/Zone1/services.conf
), but you can read my thought process below.
Move it back to the satellite zones, any errors there? Seems like vars.client_endpoint = “satellite01fqdn”
is correct. Since it looks like the services are meant to be defined in the satellite (as expected), I would try commenting out the command_endpoint = host.vars.client_endpoint
in the template – I think the default behavior is to execute in the zone the service gets defined in anyways.
Leaving this part in for someone who finds this post looking for terminated with exit code 128
error, but it doesn’t pertain to you in this case:
The actual error i am getting is, terminated with exit code 128, output: execvpe
No such file or directory
Is this the error that you received when everything was defined in the satellite zone(s)?
IIRC, that’s related to the plugins/executed commands not existing on the satellite agents/nodes. Even if it’s not, it’s a good idea to have all of those synced up (we use puppet to deploy the /usr/lib64/nagios/plugins
directory – just place a new plugin on the puppet master and let it do it’s thing. Any config management tool or even rsync/scp
script would work).
Which check_command
is Icinga2 trying to execute when you see this error? Is it the nrpe
command? I assume that all of your nrpe
configs/scripts are synced on the monitoring targets since this works on the master.