Page 1 of 1

Setting up Email Alerts

Posted: Tue Jan 28, 2014 6:26 am
by pireland
I am unable to get any of my hosts or services send email notifications when in critical state.

I am trying to use contact not local users.

efine service {
host_name xxxxxxxxxxxx
service_description Drive J: Disk Usage
use xiwizard_windowsserver_nsclient_service
check_command check_xi_service_nsclient!!USEDDISKSPACE!-l J -w 80 -c 95
max_check_attempts 1
check_interval 2
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 5
notification_period xi_timeperiod_24x7
contacts Phil Ireland
_xiwizard windowsserver
register 1
}

Re: Setting up Email Alerts

Posted: Tue Jan 28, 2014 1:48 pm
by abrist
1. What notification commands are you using for the contacts?
2. Could you post a tail of the maillog?

Code: Select all

tail -25 /var/log/maillog
3. Can you send an email with sendmail?

Code: Select all

echo "Subject: Testing" | /usr/lib/sendmail -t <your email address>