Alert problem

Stephane Auger sauger at pre2post.com
Wed Mar 23 16:42:07 CET 2005


Does nagios have permissions to write to /home/nagios?

 

Stephen


-----Original Message-----
From: nagios-users-admin at lists.sourceforge.net
[mailto:nagios-users-admin at lists.sourceforge.net] On Behalf Of Guillaume
RENARD
Sent: March 23, 2005 9:03 AM
To: nagios-users at lists.sourceforge.net
Subject: [Nagios-users] Alert problem

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: 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_idh82&alloc_id148&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