Contact service notification commands not being executed
Posted: Wed Sep 06, 2023 10:48 am
Hello
I recently finished a migration from core to XI, complete with enterprise license installed, etc.. In core, we currently have a contact set up that will get notified via the service notification command / host notification commands which has been working fine for years. I've been trying to figure out why it is, but for whatever reason when a service notification gets triggered, the contacts service notification command isn't being executed at all (as observed in the /usr/local/nagios/var/nagios.log log file). It only seems to be getting executed when I submit a custom service notification.
We haven't completely cut over to XI for this reason so I'm posting here in attempt to get some support for this because it's holding up continued efforts for a complete cut over.
Here's a couple things I tried:
Executed the command manually using the nagios user (successful)
Reconfigured the contact to use a different contact template (reverted, didn't seem to make a difference)
Reconfigured the timeperiods, to make sure it didn't have something to do with it not getting notified at a certain time (reverted since it didn't seem to matter)
Ensured the permissions of the script were correct (nagios/nagios) - (should these be apache/nagios on cent7?)
Re imported the contact I'm trying to use that's intended to execute the command
Reconfigured the notification interval / alert settings for the service I'm wanting to get notified for (eventually reverted)
Enabled the "enable_environment_macros" option in nagios.cfg (reverted)
Disabled the global event handlers (reverted)
Nagios XI version: 5.11.1
OS: CentOS Linux release 7.9.2009
I'm sort of new to the XI scene, but have significant experience in Core, so it might be something really simple that I'm missing..
Appreciate any assistance in advance.
I recently finished a migration from core to XI, complete with enterprise license installed, etc.. In core, we currently have a contact set up that will get notified via the service notification command / host notification commands which has been working fine for years. I've been trying to figure out why it is, but for whatever reason when a service notification gets triggered, the contacts service notification command isn't being executed at all (as observed in the /usr/local/nagios/var/nagios.log log file). It only seems to be getting executed when I submit a custom service notification.
We haven't completely cut over to XI for this reason so I'm posting here in attempt to get some support for this because it's holding up continued efforts for a complete cut over.
Here's a couple things I tried:
Executed the command manually using the nagios user (successful)
Reconfigured the contact to use a different contact template (reverted, didn't seem to make a difference)
Reconfigured the timeperiods, to make sure it didn't have something to do with it not getting notified at a certain time (reverted since it didn't seem to matter)
Ensured the permissions of the script were correct (nagios/nagios) - (should these be apache/nagios on cent7?)
Re imported the contact I'm trying to use that's intended to execute the command
Reconfigured the notification interval / alert settings for the service I'm wanting to get notified for (eventually reverted)
Enabled the "enable_environment_macros" option in nagios.cfg (reverted)
Disabled the global event handlers (reverted)
Nagios XI version: 5.11.1
OS: CentOS Linux release 7.9.2009
I'm sort of new to the XI scene, but have significant experience in Core, so it might be something really simple that I'm missing..
Appreciate any assistance in advance.