Creating a contact without a Nagios XI account?

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Creating a contact without a Nagios XI account?

Post 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?
Nagios XI 2024R2.2.1 (8 Servers)
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?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Creating a contact without a Nagios XI account?

Post 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?
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
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?

Post 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?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
TBT
Posts: 625
Joined: Wed May 18, 2011 1:26 pm

Re: Creating a contact without a Nagios XI account?

Post by TBT »

Got it working after also populating the Notifications Timeperiod and Options (by default they are empty).

Thanks,
Nagios XI 2024R2.2.1 (8 Servers)
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?

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked