Dashboard is empty ... Help!

Hello

I am totally new to Icinga2 (I migrated from Nagios to Icinga this week).
It was working fine until I made a mistake by disabling the API feature on Icinga2/restarted Icinga2…
I re-enable the API feature and restarted Icinga2 but now my dashboard is empty: “No services found matching the filter.”

I checked the resources on a browser but everything seems OK… The icingaweb_db “has been successfully validated” as well as the icinga_ido… The “User Backend” and the “User Group Backend” have also been validated successfully.

Icinga2 has started successfully without any error…

root@Icinga2:~# systemctl status icinga2
* icinga2.service - Icinga host/service/network monitoring system
     Loaded: loaded (/lib/systemd/system/icinga2.service; enabled; vendor preset: enabled)
    Drop-In: /etc/systemd/system/icinga2.service.d
             `-limits.conf
     Active: active (running) since Thu 2023-02-02 14:12:43 CET; 5min ago
    Process: 826 ExecStartPre=/usr/lib/icinga2/prepare-dirs /etc/default/icinga2 (code=exited, status=0/SUCCESS)
   Main PID: 831 (icinga2)
     Status: "Startup finished."
      Tasks: 12
     Memory: 13.3M
        CPU: 263ms
     CGroup: /system.slice/icinga2.service
             |-831 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log
             |-850 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log
             `-853 /usr/lib/x86_64-linux-gnu/icinga2/sbin/icinga2 --no-stack-rlimit daemon --close-stdio -e /var/log/icinga2/error.log

Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 1 CheckerComponent.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 3 Zones.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 1 Endpoint.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 1 ApiUser.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 1 ApiListener.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 1 NotificationComponent.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ConfigItem: Instantiated 244 CheckCommands.
Feb 02 14:12:43 Icinga2 icinga2[850]: [2023-02-02 14:12:43 +0100] information/ScriptGlobal: Dumping variables to file '/var/cache/icinga2/icinga2.vars'
Feb 02 14:12:43 Icinga2 icinga2[831]: [2023-02-02 14:12:43 +0100] information/cli: Closing console log.
Feb 02 14:12:43 Icinga2 systemd[1]: Started Icinga host/service/network monitoring system.
root@Icinga2:~# cat /var/log/icinga2/error.log
root@Icinga2:~# 

So now I do not know what to do to access my dashboard with data…

Help will be much appreciated…

Thanks !

Hi & welcome,

Blind guess, you have disabled (by accident) the inclusion of conf.d and all object are defined there. Check your /etc/icinga2/icinga2.conf if it looks like

// include_recursive “conf.d”

Hello

Thank you for your help !.. in fact, the file icinga2.conf has been modified (probably by the API add feature) and replaced the “include_recursive “conf.d”” by “include “conf.d/api-users.conf””… So none of my configuration was reachable… Now it works again … Thanks !!!

Ouch, if you are sure this is the reason, please create an issue over at GitHub - Icinga/icinga2: The core of our monitoring platform with a powerful configuration language and REST API.