Looking to send alarm notifications to an email address. I've created a new Contact which doesn't have an XI account. Applying configuration results in:
Error: Contact 'Contact Name' has no service notification commands defined!
Error: Contact 'Contact Name' has no host notification commands defined!
If I simply Go to Configure -> CCM -> Contact -> Edit Contact Name > Alert Settings Tab Set to add the following:
Manage Host Notification Commands = xi_host_notification_handler
Manage Service Notification Commands = xi_service_notification_handler
Will that work correctly, or must the new contact have an associated XI account?
Creating a contact without a Nagios XI account?
Creating a contact without a Nagios XI account?
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Creating a contact without a Nagios XI account?
Those 2 specific commands require an XI user because they use the XI notification settings, users specific setting and templates. You could use commands like notify-host-by-email and notify-service-by-email which will send through the MTA on the XI server.
More info
https://assets.nagios.com/downloads/nag ... ntacts.pdf
More info
https://assets.nagios.com/downloads/nag ... ntacts.pdf
Re: Creating a contact without a Nagios XI account?
I've made the change, both notify-host-by-email have and notify-service-by-email have been applied. The notification isn't received for the new contact. Any suggestions?
Last edited by TBT on Thu Jun 18, 2020 9:19 am, edited 2 times in total.
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Creating a contact without a Nagios XI account?
Do you see anything in /var/log/maillog for it trying to send?TBT wrote:I've made the change, both notify-host-by-email have and notify-service-by-email have been applied. The notification isn't received for the new contact. Any suggestions?
Also, you may want to look for the notification in the nagios.log, if the command didn't process properly you should see an error by the notification line.
The notification does show in the notification report correct?
Re: Creating a contact without a Nagios XI account?
Got it working after also populating the Notifications Timeperiod and Options (by default they are empty).
Thanks,
Thanks,
Nagios XI 2024R2.2.1 (8 Servers)
Nagios Fusion 2024R1.0.2
Nagios Fusion 2024R1.0.2
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Creating a contact without a Nagios XI account?
Oh great! glad it is sortedTBT wrote:Got it working after also populating the Notifications Timeperiod and Options (by default they are empty).
Thanks,
Locking thread