Nagios Contact
Nagios Contact
I should bet able to create a contact and send an alert to it correct.
Re: Nagios Contact
Hi,
Here's the KB article for understanding Nagios XI users and contacts:
https://assets.nagios.com/downloads/nag ... ntacts.pdf
Regards,
Vinh
Here's the KB article for understanding Nagios XI users and contacts:
https://assets.nagios.com/downloads/nag ... ntacts.pdf
Regards,
Vinh
Re: Nagios Contact
Vinh it looks like I should beable to but it never send an alert off of just a contact.
Re: Nagios Contact
Hi,
Did you add the that contact to the "Contact Template"?
Regards,
Vinh
Did you add the that contact to the "Contact Template"?
Regards,
Vinh
You do not have the required permissions to view the files attached to this post.
Re: Nagios Contact
Does it mater xi_contact_generic or generic _contact
Re: Nagios Contact
Hi,
I looked and "generic_contact" used "/bin/mail" (example below):
"xi_contact_generic" used "php" (example below):
Regards,
Vinh
I looked and "generic_contact" used "/bin/mail" (example below):
Code: Select all
/usr/bin/printf "%b" "***** Nagios Monitor XI Alert *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "** $NOTIFICATIONTYPE$ Host Alert: $HOSTNAME$ is $HOSTSTATE$ **" $CONTACTEMAIL$
Code: Select all
/usr/bin/php /usr/local/nagiosxi/scripts/handle_nagioscore_notification.php --notification-type=host --contact="$CONTACTNAME$" --contactemail="$CONTACTEMAIL$" --type=$NOTIFICATIONTYPE$ --escalated="$NOTIFICATIONISESCALATED$" --author="$NOTIFICATIONAUTHOR$" --comments="$NOTIFICATIONCOMMENT$" --host="$HOSTNAME$" --hostaddress="$HOSTADDRESS$" --hostalias="$HOSTALIAS$" --hostdisplayname="$HOSTDISPLAYNAME$" --hoststate=$HOSTSTATE$ --hoststateid=$HOSTSTATEID$ --lasthoststate=$LASTHOSTSTATE$ --lasthoststateid=$LASTHOSTSTATEID$ --hoststatetype=$HOSTSTATETYPE$ --currentattempt=$HOSTATTEMPT$ --maxattempts=$MAXHOSTATTEMPTS$ --hosteventid=$HOSTEVENTID$ --hostproblemid=$HOSTPROBLEMID$ --hostoutput="$HOSTOUTPUT$" --longhostoutput="$LONGHOSTOUTPUT$" --datetime="$LONGDATETIME$"
Regards,
Vinh
Re: Nagios Contact
So I tried both and the "generic_contact" worked but" xi_contact_generic" did not is their any thing I need to do to get it to work ?
Re: Nagios Contact
Hi,
I think "generic_contact" is your only choice for "contact" users.
You could also try create these as normal XI users with the following options:
Please NOTE that if you create these as XI users, those users will be allowed to log into XI.
Regards,
Vinh
I think "generic_contact" is your only choice for "contact" users.
You could also try create these as normal XI users with the following options:
Code: Select all
- Enable Notifications
- Can see all hosts and services
- Read-only access
- Under "Core Config Manager access:", select "Limited" with "Contacts" box checked for "Alerting Permissions"
Regards,
Vinh
Re: Nagios Contact
Vinh you can close the Ticket
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Nagios Contact
Locking threadbtayl wrote:Vinh you can close the Ticket