Don't receive Notifications
carole verdon
verdon at cict.fr
Wed Jul 28 14:13:30 CEST 2004
First, you must define a contact group with a contact, for example the group 'nagios-admin' containing as contact 'nagios administrator' with your email address. Then put it in the definition of services in services.cfg.
You can look also in misccommands.cfg the commands (e.g 'notify-by-email') defined to send notifications looks at this:
/usr/bin/printf "%b" "***** Nagios
*****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional
Info:\n\n$OUTPUT$" | /usr/bin/mailx -s "** $NOTIFICATIONTYPE$ alert -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
The name of this command must be indicated in the definition of services in services.cfg.
You can try it from the command line to see what's happen and verify if it's works.
Carole.
Ane Telleria Iñurritegi wrote:
> I am doing some monitoring in the university, but can't get
> notifications from nagios. I have looked the config files and also
> sendmail.mc but I don't know what I have to configure.
> Is it possible to send notifications from a count that is not
> nagios at localhost.localdomain <mailto:nagios at localhost.localdomain>?
> For example from my email address.
> I would be very grateful if someone could answer me.
> Thanks.
>
> ------------------------------------------------------------------------
>
> Nuevo Yahoo! Búsquedas
> <http://es.rd.yahoo.com/mail_es/tagline/search/image/*http://www.viralbusquedas.yahoo.es>
>
>
-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_idG21&alloc_id040&op=click
_______________________________________________
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