userObject.conf not updating

  • Version used (icinga2 --version)
    The Icinga 2 network monitoring daemon (version: r2.14.2-1)

  • Operating System and version
    Rocky Linux 8.8 Kernel: 4.18

  • Enabled features (icinga2 feature list)
    Enabled features: api checker mainlog

  • Icinga Web 2 version and modules (System - About)
    2.12.1

  • Config validation (icinga2 daemon -C)
    Yes. It checks out.

Hello,
When editing my userObject.conf with a new phone number it does not seem to update and I’m wondering what I’m doing wrong.
Steps I’ve taken:

  1. edit /etc/icinga2/zones.d/global/userObject.conf with my new phone number so I can receive SMS alerts.
  2. icinga2 daemon -C to check for errors
  3. systemctl reload icinga2

However, no matter how many times I step through this it still shows old phone number associated with my name. I show my old phone number whenever I do a:
icinga2 object list --type User

I did not set this server up, if there something that is wrong, please let me know and I will see what I can do to fix. I feel as though this setup is not up to icinga ‘best practices’ and that is my end goal.

Thank you in advance for any help you can provide.

~Ben

this looks very strange, are you sure you checked on the right machine.

  • you have icingaweb2 in version 2.12.1
  • but your feature list does not include ido or icingadb

this means there is nothing that can actually show any information regarding live monitoring

apart from that:
the object list command only works after dumping

root@icinga:/home/# sudo -u nagios icinga2 object list --type User
critical/cli: Cannot open objects file '/var/cache/icinga2/icinga2.debug'.
critical/cli: Run 'icinga2 daemon -C --dump-objects' to validate config and generate the cache file.

icinga2 daemon -C --dump-objects

after that object list showed something

maybe that is the issue of not seeing an update there

Are you sure icinga is actually using this config path? Or maybe an entirely different one? Take a look at the systemd unit etc

That is exactly what the problem was. Thank you so much! I’m learning so much as I go. I inherited this running machine, so there is a lot to learn.

v/r,
AB