Alert problem

Gerard Marcel men.makaron at gmail.com
Thu Mar 24 05:34:54 CET 2005


he can't send an email by simply creating a file.  The command itself
is valid, but by itself it is useless.  That was my point.


GM


On Wed, 23 Mar 2005 13:44:37 -0600, Marc Powell <marc at ena.com> wrote:
> 
> 
> > -----Original Message-----
> > From: nagios-users-admin at lists.sourceforge.net [mailto:nagios-users-
> > admin at lists.sourceforge.net] On Behalf Of Gerard Marcel
> > Sent: Wednesday, March 23, 2005 1:10 PM
> > To: Guillaume RENARD
> > Cc: nagios-users at lists.sourceforge.net
> > Subject: Re: [Nagios-users] Alert problem
> >
> > Are you making an alert text file?  The command_line should actually
> > be a command that does something such a script.  this "command_line
> > /bin/touch /home/nagios/alerte" is incorrect.
> 
> Huh? In what way is /bin/touch any different than /bin/echo or any other
> executable on the file system? Nagios makes no distinction between them
> and simply attempts to run the process. The command definition below is
> just as valid as one that sends you an alert email, it just performs a
> different task. In this case, the existence of the file
> /home/nagios/alerte is sufficient for his purposes.
> 
> --
> Marc
> 
> >
> > On Wed, 23 Mar 2005 15:02:53 +0100, Guillaume RENARD
> > <guillaume.renard at gmail.com> wrote:
> > > The host-notify by alerte is defines in misccommands.cfg :
> > > # 'host-notify-by-alerte' command definition
> > > define command{
> > >        command_name    host-notify-by-alerte
> > >        command_line    /bin/touch /home/nagios/alerte
> > >        }
> 
> -------------------------------------------------------
> This SF.net email is sponsored by Microsoft Mobile & Embedded DevCon 2005
> Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
> Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
> by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&opclick
> _______________________________________________
> 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 Microsoft Mobile & Embedded DevCon 2005
Attend MEDC 2005 May 9-12 in Vegas. Learn more about the latest Windows
Embedded(r) & Windows Mobile(tm) platforms, applications & content.  Register
by 3/29 & save $300 http://ads.osdn.com/?ad_idh83&alloc_id149&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