Icinga2 Server self-monitoring via Icinga Director


I’m using Icinga2 for a little over the year (migrated from Nagios 3.4.1) and I’ve been searching for a solution, how to self-monitor Icinga2 Server (with installed Icinga Web 2 and Icinga Director) via Icinga Director (not via configuring manually service.conf in local files).
Is it possible somehow?

I’d want to run some check directly on Icinga2 Server (some domains, ssl certs, load, apt updates etc.) but to configure it on Director module.
Right now I’m using local self-monitoring (via /etc/icinga2/). If it’s not possible this way, is there other option how to make it (some workaround solution)?

With regards,

Ok, found a solution (mistakes ware made…).
I’ve commented out all config in /etc/icinga2/conf.d/(services.conf / hosts.conf) and I’ve added new host in Director on localhost - works perfectly now.
Keep it simple stupid - I forgot about that.

Can you tell me the steps you used to configure Director to have Icinga monitor itself? I can’t seem to figure it out.

I created a host using the hostname localhost, but I constantly received a message on the dashboard stating, Remote Icinga instance 'localhost' is not connected to 'gis01pmxrmms1'. Am I supposed to run the icinga2 node wizard command again on the master? Any guidance would be greatly appreciated.


try naming the host like the nodename of the master.

Thanks for the response. I changed the hostname from localhost to the hostname of the master gis01pmxrmms1, but now I’m getting a message stating, execvpe(/usr/lib/nagios/plugins/check_uptime) failed: No such file or directory. I checked the /usr/lib/nagios/plugins/ directory on the master, but there’s no check_uptime file.

Although, when I run the command icinga2 object list --name "uptime" it shows the following. Any ideas?

Your check_uptime command is not existing. I don’t know this command and don’t have it on my installations. So you need to get check_uptime somewhere and put it in /usr/lib/nagios/plugins/.

It could be possible that its simple not in the common monitoring-plugins package.

I appreciate the response. However, I’m a bit confused. What’s the purpose of having a built-in check for uptime if the supporting files don’t exist to use it?


Its because its somehow part of the monitoring plugins. Isn’t it a goog thing, that someone already created the configuration for you, so if you decide to use the check you don’t need to create them for yourself ;-). Still you need to install them to use them.

Its the same for the vmware check at the buttom of the list. You need the SDK from vmware which is copyrighted, so you always need to seperate install it. I am just happy that somehone else created the files for this configuration monster :slight_smile:

Edit: Forgot to mention the purpose (they are of course not only there to make me happy ;)):