Page 1 of 1

Creating a contact without a Nagios XI account?

Posted: Wed Jun 17, 2020 2:16 pm
by TBT
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?

Re: Creating a contact without a Nagios XI account?

Posted: Wed Jun 17, 2020 2:22 pm
by scottwilkerson
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

Re: Creating a contact without a Nagios XI account?

Posted: Thu Jun 18, 2020 8:38 am
by TBT
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?

Re: Creating a contact without a Nagios XI account?

Posted: Thu Jun 18, 2020 9:02 am
by scottwilkerson
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?
Do you see anything in /var/log/maillog for it trying to send?

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?

Posted: Thu Jun 18, 2020 9:18 am
by TBT
Got it working after also populating the Notifications Timeperiod and Options (by default they are empty).

Thanks,

Re: Creating a contact without a Nagios XI account?

Posted: Thu Jun 18, 2020 9:22 am
by scottwilkerson
TBT wrote:Got it working after also populating the Notifications Timeperiod and Options (by default they are empty).

Thanks,
Oh great! glad it is sorted

Locking thread