It’s actually the host checks and the services checks both – if i go to hosts, everything is pending. if i go to services, everything is pending.
The two that are working, are remote agents - all the other hosts i’m monitoring do not have agents attached. These have also all worked up until yesterday.
Do you have a network connection between the two agents and the master
Icinga server? Do the log files at either end tell you anything about not
being able to connect?
If you have 54 machines which you’re monitoring without agents installed,
how are you performing the service checks on them?
Found out the issue - constants.conf was updated somehow (“icinga2 api setup” possibly) and the constants.conf file’s zonename was updated to our server’s hostname.
So all of our hosts disappeared.
We first, intuitively, and erroneously updated the zones.conf file to have ‘master’ zone in it (with correct syntax), and all the hosts showed up in pending state.
We removed that zones.conf adjustment, and changed the zones.d/‘masters’ folder to zones.d/‘hostname’ and it all worked.