Alert problem
Gerard Marcel
men.makaron at gmail.com
Wed Mar 23 20:09:50 CET 2005
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.
GM
On Wed, 23 Mar 2005 15:02:53 +0100, Guillaume RENARD
<guillaume.renard at gmail.com> wrote:
> Hello all,
>
> First of all, I am french so excuse my awful english (I try to
> increase my level but it's difficult)
> I am using Nagios 1.2 with mysql support.
> OK then, the problem is that I want, for an host down/up notification
> that nagios launches another script more a mail.
> I have the mail but my script isnt' launched ... Why ?
>
> Here my service.cfg
> define service{
> use generic-service
> host_name hpovtest
> service_description check-host-alive
> is_volatile 0
> check_period 24x7
> max_check_attempts 1
> normal_check_interval 1
> retry_check_interval 1
> contact_groups nt-admins
> notification_interval 240
> notification_period arte_time
> notification_options w,u,c,r
> check_command check_ping_url!100.0,20%!500.0,50%
> }
>
> And the 'contact'define contact{
> contact_name g-renard
> alias Guillaume RENARD
> service_notification_period 24x7
> host_notification_period 24x7
> service_notification_options w,u,c,r
> host_notification_options d,u,r
> service_notification_commands notify-by-email
> host_notification_commands
> host-notify-by-email,host-notify-by-alerte
> email g-renard at arte-tv.com
> ]
>
> 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
> }
>
> But... I have mail but never my alerte file in /home/nagios...
>
> So what can the problem be ??
>
> Thanks for your help !!!
>
> --
> Guillaume RENARD
> http://glmrenard.free.fr
> --
> Guillaume RENARD
> http://glmrenard.free.fr
>
> -------------------------------------------------------
> This SF.net email is sponsored by: 2005 Windows Mobile Application Contest
> Submit applications for Windows Mobile(tm)-based Pocket PCs or Smartphones
> for the chance to win $25,000 and application distribution. Enter today at
> http://ads.osdn.com/?ad_id=6882&alloc_id=15148&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
>
-------------------------------------------------------
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_id=6883&alloc_id=15149&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