email notice problem
Gavin Conway
gavin.conway at uksolutions.co.uk
Fri Feb 16 16:26:42 CET 2007
admin at lctn.org wrote:
> define contact{
> contact_name nagiosadmin
> alias Nagios Admin
> service_notification_period 24x7
> host_notification_period 24x7
> service_notification_options w,u,c,r
> host_notification_options d,r
> service_notification_commands notify-by-email
> host_notification_commands host-notify-by-email
> email admin at domain.com
> }
That looks fine to me. The problem is in your host-notify-by-email
definition in the misccommands.cfg file. If you look below you have;
Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> 2007\n" | -s "Host DOWN alert for relay-1.domain.com!" admin at domain.com"
Where it should read;
> Host Unreachable (10.10.4.89)\n\nDate/Time: Fri Feb 16 09:10:01 CST
> 2007\n" | mail -s "Host DOWN alert for relay-1.domain.com!"
admin at domain.com"
Looks like a copy and paste error. Oh and you probably also want to use
something other than your 'admin at lctn' account. It's like sending from
root at localhost.localdomain :P
Cheers,
Gavin
--
UKS Ltd, Birmingham Road, Studley, Warwickshire, B80 7BG
Tel: 08700 681 333 - Fax: 01527 851 301 - AS: 20547
gavin.conway at uksolutions.co.uk - www.uksolutions.co.uk
- Please, consider the environment before printing this email -
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue.
::: Messages without supporting info will risk being sent to /dev/null
More information about the Users
mailing list