@seliimgnc, if you login the Nagios web interface, and go the Process Info menu, are Notifications enabled?
If you go to the Reports > Notification menu, is the system trying to send the notifications to a contact?
Do you see any errors or entries in this log file?
[/quote]
if you login the Nagios web interface, and go the Process Info menu, are Notifications enabled?
- Yes, Notifications are enabled .
If you go to the Reports > Notification menu, is the system trying to send the notifications to a contact?
- Yes, system is the trying to send the contact. This is my /usr/local/nagios/var/nagios.log file:
root@ubuntu:/usr/local/nagios/libexec# tail -40 /usr/local/nagios/var/nagios.log
[1554791443] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1554791443] wproc: stdout line 01: Apr 09 09:30:43 ubuntu sendemail[23887]: ERROR => You must specify a 'from' field! Try --help.
[1554792867] HOST NOTIFICATION: nagiosadmin;JIRA;DOWN;notify-host-by-email;CRITICAL - Host Unreachable (192.168.10.115)
[1554792867] wproc: NOTIFY job 2806 from worker Core Worker 35984 is a non-check helper but exited with return code 1
[1554792867] wproc: host=JIRA; service=(none); contact=nagiosadmin
[1554792867] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1554792867] wproc: stdout line 01: Apr 09 09:54:27 ubuntu sendemail[24903]: ERROR => You must specify a 'from' field! Try --help.
[1554793243] HOST NOTIFICATION: nagiosadmin;KPI_VPC;DOWN;notify-host-by-email;PING CRITICAL - Packet loss = 100%
[1554793243] wproc: NOTIFY job 2820 from worker Core Worker 35983 is a non-check helper but exited with return code 1
[1554793243] wproc: host=KPI_VPC; service=(none); contact=nagiosadmin
[1554793243] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1554793243] wproc: stdout line 01: Apr 09 10:00:43 ubuntu sendemail[25172]: ERROR => You must specify a 'from' field! Try --help.
[1554794210] Auto-save of retention data completed successfully.
[1554794586] EXTERNAL COMMAND: DISABLE_NOTIFICATIONS;1554794586
[1554794715] EXTERNAL COMMAND: RESTART_PROCESS;1554794715
[1554794715] PROGRAM_RESTART event encountered, restarting...
[1554794715] Nagios 4.4.2 starting... (PID=35981)
[1554794715] Local time is Tue Apr 09 10:25:15 +03 2019
[1554794715] LOG VERSION: 2.0
[1554794715] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized
[1554794715] qh: core query handler registered
[1554794715] qh: echo service query handler registered
[1554794715] qh: help for the query handler registered
[1554794715] wproc: Successfully registered manager as @wproc with query handler
[1554794715] wproc: Registry request: name=Core Worker 26251;pid=26251
[1554794715] wproc: Registry request: name=Core Worker 26250;pid=26250
[1554794715] wproc: Registry request: name=Core Worker 26249;pid=26249
[1554794715] wproc: Registry request: name=Core Worker 26248;pid=26248
[1554794955] EXTERNAL COMMAND: ENABLE_HOST_SVC_NOTIFICATIONS;CLOGGER
[1554795289] EXTERNAL COMMAND: ENABLE_NOTIFICATIONS;1554795289
[1554795345] HOST NOTIFICATION: nagiosadmin;KPI_VPC;DOWN;notify-host-by-email;PING CRITICAL - Packet loss = 100%
[1554795345] wproc: NOTIFY job 24 from worker Core Worker 26250 is a non-check helper but exited with return code 1
[1554795345] wproc: host=KPI_VPC; service=(none); contact=nagiosadmin
[1554795345] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1554795345] wproc: stdout line 01: Apr 09 10:35:45 ubuntu sendemail[26823]: ERROR => You must specify a 'from' field! Try --help.
[1554795502] HOST NOTIFICATION: nagiosadmin;JIRA;DOWN;notify-host-by-email;CRITICAL - Host Unreachable (192.168.10.115)
[1554795502] wproc: NOTIFY job 29 from worker Core Worker 26248 is a non-check helper but exited with return code 1
[1554795502] wproc: host=JIRA; service=(none); contact=nagiosadmin
[1554795502] wproc: early_timeout=0; exited_ok=1; wait_status=256; error_code=0;
[1554795502] wproc: stdout line 01: Apr 09 10:38:22 ubuntu sendemail[26942]: ERROR => You must specify a 'from' field! Try --help.
Do you see any errors or entries in this log file?
[/quote][/b]
My /var/log/sendemail log file is empty