RES: Incomplete Notifications
Sandro Vaz (UOL)
sandromergvaz at uol.com.br
Tue Feb 25 12:53:44 CET 2003
Tom:
It happens with the default service notification command, that comes with
the config samples.
Anyway, there it goes...
define command{
command_name notify-by-email
command_line /usr/bin/printf "%b" "***** OpMon
*****\n\nNotificationType: $NOTIFICATIONTYPE$\n\nService:
$SERVICEDESC$\nHost: $HOSTALIAS$\nAddress:$HOSTADDRESS$\nState:
$SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info
:\n\n$OUTPUT$" | /bin/mail -s "** OpMon Alert - $NOTIFICATIONTYPE$ -
$HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
}
I hope that you have a solution.
Sandro Vaz
-----Mensagem original-----
De: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] Em nome de Tom DE BLENDE
Enviada em: terça-feira, 25 de fevereiro de 2003 04:31
Para: Hiatt William
Cc: Nagios-users at lists.sourceforge.net
Assunto: Re: [Nagios-users] Incomplete Notifications
Could you post your notification commands? What happens is that your email
gets chopped at the backslash that is next to the C:. Probably bad usage of
quotes.
"Hiatt, William" wrote:
>
> Whenever I have nagios notify me in regards to my disk space service,
> I get the following as the notification:
>
> ***** Nagios 1.0 *****
>
> Notification Type: PROBLEM
>
> Service: C:
>
> It doesn't have the detailed information in the e-mail, which I would
> like to have. Why wouldn't this be showing up? I've tried it with my
> other services (CPU, etc) and it works just fine, as I get the
> notification as follows:
>
> ***** Nagios 1.0b4 *****
>
> Notification Type: RECOVERY
>
> Service: CPU #1
> Host: dc-01.upstanding.com
> Address: 10.0.254.1
> State: OK
>
> Date/Time: Mon Feb 24 14:14:49 PST 2003
>
> Additional Info:
>
> CPU Load (5 min. 9%) (60 min. 1%) (720 min. 0%)
>
> The services are configured with the same exact options. I just find
> it odd since NAGIOS has all the information on the web page for the
> disk service.
>
> Any ideas?
>
> Thanks
> william
>
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> 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
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf _______________________________________________
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
---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/2/2003
---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.458 / Virus Database: 257 - Release Date: 24/2/2003
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
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