Re: Emails not recieved from Nagios
Posted: Fri Jan 08, 2016 8:41 am
Code: Select all
[1452259965] wproc: NOTIFY job 16 from worker Core Worker 24096 is a non-check helper but exited with return code 255
[1452259965] wproc: host=AD1; service=(none); contact=itsupport
[1452259965] wproc: early_timeout=0; exited_ok=1; wait_status=65280; error_code=0;
[1452259965] wproc: stdout line 01: Error: no recipients have been provided
[1452259965] wproc: stdout line 02: Usage: /usr/local/nagios/libexec/nagios_send_host_mail.pl [-v] [-V] [-h] [-t] [-H <SMTP host>] [-p <customername>]
[1452259965] wproc: stdout line 03: [-r <to_recipients>] or -g <to_group>] [-c <cc_recipients>] [-b <bcc_recipients>]
[1452259965] wproc: stdout line 04: [-f <text|html|multi|graph>] [-u] [-l <en|jp|fr|de|(or other languages if added)>]
Code: Select all
# 'service-email-html-int-en' command definition
# sends HTML e-mails in English and includes Nagios URL for Intranet access
define command{
command_name service-email-html-int-en
command_line /usr/local/nagios/libexec/nagios_send_service_mail.pl \
-p "Ramsdens Financial" \
-H 192.168.87.114 \
-c "$CONTACTADDRESS1$" \
-f multi -u
}
# 'host-email-html-int-en' command definition
# sends HTML e-mails in English and includes Nagios URL for Intranet access
define command{
command_name host-email-html-int-en
command_line /usr/local/nagios/libexec/nagios_send_host_mail.pl \
-p "Ramsdens Financial" \
-H 192.168.87.114 \
-c "$CONTACTADDRESS1$" \
-f multi -u
}
Code: Select all
define contact{
contact_name itsupport
alias IT Support
service_notification_period workhours
host_notification_period 24x7
service_notification_options w,u,c,r
host_notification_options d,r
service_notification_commands service-email-html-int-en
host_notification_commands host-email-html-int-en
email [email protected]
}