For all support requests, we need to know:
1.Linux Distribution and version? - Centos 6.4
2.32 or 64bit? - 64 bit
3.VMware Image or Manual Install of XI? - manual install
4.Are there special configurations on your system, ie; is Gnome installed? Are you using a proxy? Are you using SSL? NOPE
Hi there,
I have an issue in that my notification emails are not displaying the variable but are displaying the $ sign instead for service and state. See below. Tx
This is my notification management settings:
%type% Service Alert - %host%/%service% is %servicestate%
***** Nagios XI Alert *****
%alertsummary%
Notification Type: %type%
Service: %service%
Host: %host%
Address: %hostaddress%
State: %servicestate%
Info:
%serviceoutput%
Date/Time: %datetime%
Respond: %responseurl%
Nagios URL: %xiserverurl%
This is the email I receive
***** Nagios Monitor XI Alert *****
Notification Type: RECOVERY
Service: $
Host: host.co.za
Address: xx.xx.xx.115
State: $
Date/Time: Mon Mar 16 12:45:34 SAST 2015
Additional Info:
Notification Email Doesn't display service
-
mindspring
- Posts: 117
- Joined: Thu Jul 19, 2012 10:24 am
Re: Notification Email Doesn't display service
You may have incorrect notification handlers set on the contact. Go to the CCM --> Contacts --> Click the "save" (disk) icon to for the contact and post their relevant directive for the contact from the text file.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
mindspring
- Posts: 117
- Joined: Thu Jul 19, 2012 10:24 am
Re: Notification Email Doesn't display service
Is this what you require?
define contact {
contact_name WK
alias Testing Account for Gmail
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,
service_notification_options c,r,
host_notification_commands notify-host-by-email,notify-service-by-email
service_notification_commands notify-host-by-email,notify-service-by-email
can_submit_commands 1
email w********@gmail.com
define contact {
contact_name WK
alias Testing Account for Gmail
host_notifications_enabled 1
service_notifications_enabled 1
host_notification_period 24x7
service_notification_period 24x7
host_notification_options d,u,r,
service_notification_options c,r,
host_notification_commands notify-host-by-email,notify-service-by-email
service_notification_commands notify-host-by-email,notify-service-by-email
can_submit_commands 1
email w********@gmail.com
Re: Notification Email Doesn't display service
Yes, you have one too many notification commands for both host and service:
The notification handler is trying to use host macros for services and vice versa for hosts. This is causing the macros to fail populating. Fix the handlers on the contact and all should be well.
It should resemble:mindspring wrote:host_notification_commands notify-host-by-email,notify-service-by-email
service_notification_commands notify-host-by-email,notify-service-by-email
Code: Select all
host_notification_commands notify-host-by-email
service_notification_commands notify-service-by-emailFormer Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
-
mindspring
- Posts: 117
- Joined: Thu Jul 19, 2012 10:24 am
Re: Notification Email Doesn't display service
Many thanks, that worked.
Re: Notification Email Doesn't display service
I'll be closing this thread now, but feel free to open another if you need anything in the future!
Former Nagios employee