I have a working icinga monitoring system running on RHEL 7. While executing “check now” from icingaweb, I get the below error irrespective if the host is up or down.
Active Endpoint: host2
Active Icinga Web 2 Endpoint: host1
icinga2 object list --type host --name [hostname] - This command displays the details on host 2 not on host1. I am assuming I have missed out on the configuration. Could you please let me know?
The version is as below.
Icinga2 version: 2.11.0-1
Icinga web version: 2.7.1
Did you replace [hostname] with the actual name of the host object you want to manage?
If you want to change something via API, your master needs to know about the host. So if you run icinga2 object list... on the master you should see the host object you want to reschedule the check for.
I managed to setup the icinga master again by running the icinga2 node wizard command. Post this command “icinga2 object list --type host --name [hostname]” executes successfully without any error. Thank you for the help Thomas.
Thanks for the reply. Could you please click the “solution” checkbox in the reply which helped you solve the problem? This way others see the solution and the thread is marked as solved so others won’t read the whole thread only to find that it was already solved.