monitoring - Nagios Herald won't send emails -


i'm trying set nagios herald on production nagios instance. i've made setup neccessary , when run following dry run, notification sent straight away:

root@mon1 objects]# /usr/local/nagios-herald/bin/nagios-herald --env-file /tmp/test_herald.out --message-type email -r my.email@address.net --formatter=$_servicemessage_formatter_name$ --nagios-cgi-url=http://192.168.0.1/nagios/cgi-bin/cmd.cgi --reply-to=nagios@somehost.com

i want able test keeping legacy notifications in place, created new command, contactgroup, , contact definition:

define command {     command_name    herald-service-email     command_line   /usr/local/nagios-herald/bin/nagios-herald --message-type email -r my.email@address.net --formatter=$_servicemessage_formatter_name$ --nagios-cgi-url=http://192.168.0.1/nagios/cgi-bin/cmd.cgi --reply-to=nagios@somehost.com      }  # nagios herald testing define contactgroup {     contactgroup_name              nagios-herald     alias                          nagios herald     name                           nagios-herald     members                        nagios-herald } define contact {     contact_name                   nagios-herald     alias                          nagios-herald     name                           nagios-herald     use                            generic-pager     service_notification_commands  herald-service-email     register                       1     email                          my.email@address.net } 

lastly, added service notification command global contact used our alerting (the alert email aliased our actual email in /etc/aliases:

define contact {     contact_name                   admin     alias                          admin user     name                           admin     register                       1     host_notification_period       24x7     host_notification_options      d,u,r     host_notification_commands     notify-host-by-email     service_notification_period    24x7     service_notification_options   w,u,c,r     service_notification_commands  notify-service-by-email,dump-env,herald-service-email     email                          admin     pager                          admin-pager } 

and see notification getting invoked in thruk web ui, i'm @ loss how/why isn't working when command invoked manually works. have ideas or suggestions?

can provide 1 of service definitions you're expecting see alert from? perhaps have malformed _message_formatter_name directive.

you can append --trace argument end of nagios-herald notification command , provide more details on it's doing. remember set -l <logfile> in command or specify logfile: in config output captured in file.


Comments

Popular posts from this blog

html - Styling progress bar with inline style -

java - Oracle Sql developer error: could not install some modules -

How to use autoclose brackets in Jupyter notebook? -