notify with qmail and gentoo problem

Volker.Aust at premiere.de Volker.Aust at premiere.de
Fri Oct 25 15:06:42 CEST 2002


There is definitely something missing in the "|  -s" part. Try to insert
/usr/bin/mail (or /usr/bin/mailx, if you have Solaris).

-vol

> -----Original Message-----
> From: Lloyd Meinholz [mailto:Meinholz at bmpcoe.org]
> Sent: Friday, October 25, 2002 2:42 PM
> To: 'Volker.Aust at premiere.de'; nagios-users at lists.sourceforge.net
> Cc: Lloyd Meinholz
> Subject: RE: [Nagios-users] notify with qmail and gentoo problem
> 
> 
> Here's my command form misc_commands.cfg: 
> # 'notify-by-email' command definition 
> define command { 
>         command_name    notify-by-email 
>         command_line    /usr/bin/printf "%b" "***** Nagios 
> 1.0b6 *****\n\nNotification Type: 
> $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: 
> $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: 
> $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional 
> Info:\n\n$OUTPUT$" |  -s "** $NOTIFICATIONTYPE$ alert - 
> $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$
>         } 
> I assumed this command was right and I just didn't know what 
> was going on with the "| -s" part. It is possible that I 
> didn't have my mail system installed and configured when I 
> installed nagios (new box), so perhaps it didn't find any 
> mail stuff and left parts of this command empty??? I'll try a 
> new make install-config and see if I get anything interesting 
> in misc_commands.cfg...
> Lloyd 
> 
> 
> 
> > -----Original Message----- 
> > From: Volker.Aust at premiere.de [mailto:Volker.Aust at premiere.de] 
> > Sent: Friday, October 25, 2002 8:25 AM 
> > To: nagios-users at lists.sourceforge.net 
> > Cc: Meinholz at bmpcoe.org 
> > Subject: RE: [Nagios-users] notify with qmail and gentoo problem 
> > 
> > 
> > Hi Lloyd, 
> > 
> > > -----Original Message----- 
> > > From: Lloyd Meinholz [mailto:Meinholz at bmpcoe.org] 
> > > Sent: Friday, October 25, 2002 1:41 PM 
> > > To: 'sancho at sancho2k.net'; nagios-users at lists.sourceforge.net 
> > > Subject: RE: [Nagios-users] notify with qmail and gentoo problem 
> > 
> > <snip> 
> > 
> > > Since I got the following in nagios.log: 
> > > [1035474094] Warning: Attempting to execute the command 
> > > "/usr/bin/printf "%b" "Service: NTP\nHost: odin\nAddress: 
> > > 204.255.194.4\nState: OK\nInfo: OK: Time difference -0.033110 
> > > seconds\nDate: Thu Oct 24 11:41:34 EDT 2002" |  -s "RECOVERY: 
> >                                                ^^^^ 
> > > Odin Sun E3000/NTP is OK" meinholz at imcingular.com" resulted 
> > > in a return code of 127.  Make sure the script or binary you 
> > > are trying to execute actually exists... 
> > 
> > </snip> 
> > 
> > printf is not your problem, but at the mark there is no mail 
> > command. printf 
> > is only used to pipe the mail message body to your mail 
> > program. '-s "blah"' 
> > is the subject and 'meinholz at ...' is the receipient. I think 
> > qmail never 
> > see's your mail. 
> > 
> > Can you post your notify-by-email (or host-notify-by-email) 
> > command from 
> > your (misc-) commands.cfg? 
> > 
> > -vol 
> > 
> 


-------------------------------------------------------
This sf.net email is sponsored by: Influence the future 
of Java(TM) technology. Join the Java Community 
Process(SM) (JCP(SM)) program now. 
http://ads.sourceforge.net/cgi-bin/redirect.pl?sunm0004en




More information about the Users mailing list