Nagios Notifications
Patrick Morris
patrick.morris at hp.com
Fri Dec 15 01:23:58 CET 2006
Hi Danilo!
On Thu, 14 Dec 2006, Danilo Perdomo wrote:
> > On Thu, 14 Dec 2006, Danilo Perdomo wrote:
> >
> >
> >> Hi People, i have a litte problem with the notifications of my Nagios 2.5.
> >> For example :
> >> # 'check_nt_cpu' command definition
> >> define command{
> >> command_name check_nt_cpu
> >> command_line $USER1$/check_nt -H $HOSTADDRESS$ -p 1248 -v
> >> CPULOAD -l 15,90,98
> >> }
> >> When the notification arrives, in the additional info field i get
> >> information about the Ping instead of the CPU Load
> >> of the host, this happens when i'm checking disk, memory and others.
> >> I'd appreciate any help, thanks in advanced.
> >>
> >
> > What are your notification commands? Can't help much without those
> >
> Notification commands:
>
> # 'notify-by-email' command definition
> define command{
> command_name notify-by-email
> command_line /usr/bin/printf "%b" "***** Nagios Nacional
> *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService:
> $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState:
> $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional
> Info:\n$HOSTOUTPUT$" | /bin/mail -s "Alerta: $NOTIFICATIONTYPE$ -
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$" $CONTACTEMAIL$
> }
$HOSTOUTPUT$ will always give you the output of the last host check. You
probably want $SERVICEOUTPUT$.
-------------------------------------------------------------------------
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