Page 1 of 1

Notification error

Posted: Tue May 28, 2013 7:30 am
by sarfarosh
Hello Guys,
I am not able to get proper Notification through Mail if any alerts it triggered , the notification that i get looks like

Code: Select all

    From: 
    Sent: Tuesday, May 28, 2013 9:59 AM
    To: 
    Subject: PROBLEM Service Alert - BHIL-4-ASIFNG-HASAN-202.14/$ is $

     

    ***** Nagios XI Alert *****

    Nagios has detected a problem with this service.

    Notification Type: PROBLEM

    Service: $
    Host: BHIL-4-ASIFNG-HASAN-202.14
    Address: 172.16.202.14
    State: $
    Info:
    $
    Date/Time: 2013-05-28 09:59:07

    Respond: http://123.176.37.155/nagiosxi//rr.php?uid=49--1-ecf775975c7dd5ebe7959e1305445e49
    Nagios URL: http://123.176.37.155/nagiosxi/

 

Mine templet in notification management is

Host Alert Message:

Code: Select all

***** Nagios XI Alert *****

%alertsummary%

Notification Type: %type%
Host: %host%
State: %hoststate%
Address: %hostaddress%
Info: %hostoutput%
Date/Time: %datetime%

Respond: %responseurl%
Nagios URL: %xiserverurl%
Service Alert Message:

Code: Select all

***** 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%

Re: Notification error

Posted: Tue May 28, 2013 12:36 pm
by abrist
What handlers do you have set for the contact in question?
Go to --> configure --> core config manager --> contacts --> click the contact in the question --> click alert settings tab.
What commands are selected for each of the: "Manage host notification commands" and "Manage service notification commands" ?

Re: Notification error

Posted: Tue May 28, 2013 12:54 pm
by sarfarosh
Abrist
Below are the Handler command assigned to the Contact in alert setting for service Notification

Code: Select all

notify-host-by-email

notify-service-by-email

process-host-perfdata-file-pnp-bulk

process-host-perfdata-pnp-normal

process-service-perfdata-file-bulk

process-service-perfdata-file-pnp-bulk

process-service-perfdata-pnp-normal

xi_host_event_handler

xi_host_notification_handler

xi_service_event_handler

xi_service_notification_handler


Now only available command is

Code: Select all

check_none

Re: Notification error

Posted: Tue May 28, 2013 1:09 pm
by abrist
This probably your issue. The contact should only have 1 notification command, and you are most likely receiving these '$' emails from setting a service handler on for a host command and vice versa.
For "manage host notification commands", only set:

Code: Select all

xi_host_notification_handler
For "manage service notification commands", only set:

Code: Select all

xi_service_notification_handler
Remove the others, save, and then "apply configuration".