Hi<br><br>First of all, I would like to <span>apologize</span> <span>for</span> <span>my</span> <span>english</span>.<br><br>I need your help, I'm trying to configure Nagios (version 2.5) for launch backups with Bacula (<a href="http://www.bacula.org" target="_blank">www.bacula.org</a>), <span>for</span> that I'm use a Event Handler. <span>My</span> problem is that I've configure Nagios for start this event<span></span><span></span>, I'm new in the Event Handlers theme.
The most importan parts of <span>my</span> nagios configuration:<br><br>In "nagios.cfg":<br>enable_event_handlers=1<br><br>In "bigger.cfg":<br># 'scliente' host definition<br>define host{<br>
        use                     generic-host<br><br>        host_name               scliente<br>        alias                   scliente - Desktop<br>        address                 <a href="http://192.168.101.14" target="_blank">192.168.101.14</a><br>


        parents                 vs1-dhcp<br>        check_command           check-host-alive<br>        max_check_attempts      10<br>        check_period            24x7<br>        notification_interval   120<br>        notification_period     workhours<br>


        notification_options    d,u,r<br>        event_handler           launch-bacula-jobs<br>        contact_groups          desktop-admins<br>        }<br><br><br>In "checkcommads.cfg":<br># 'launch-bacula-jobs' command definition<br>


define command{<br>        command_name    launch-bacula-jobs<br>        command_line    $USER2$/eventhandlers/launch-bacula-jobs $HOSTNAME$ $HOSTSTATE$ $HOSTSTATETYPE$<br>        }<br><br><br>My Script is  "/usr/lib/nagios/plugins/eventhandlers/launch-bacula-jobs"<br>


<br>#!/bin/sh<br><br># LAUNCH BACULA JOBS EVENT HANDLER SCRIPT<br># Written By: Skina Technologies (<a href="mailto:skina@skinatech.com" target="_blank">skina@skinatech.com</a>)<br># Last Modified: 04-04-2008<br><br><br>

echo "Bacula Event Handler Script"<br>
echo "HOSTNAME: $1"<br>echo "HOSTSTATE: $2"<br>echo "HOSTSTATETYPE: $3"<br><br># Only take action on hard host states...<br>case "$3" in<br>HARD)<br><br>        case "$2" in<br>


        DOWN)<br>                echo "The host is DOWN"<br>                ;;<br><br>        UP)<br>                echo "The host is UP. Start backup to $1"<br>                echo "run $1 yes" | bconsole<br>


                ;;<br>        esac<br>        ;;<br><br>esac<br>exit 0<br><br><br>What is the problem????<br><br><span></span>Thanks, any help would be greatly appreciated.<br><br><br clear="all"><br>-- <br>
Atentamente,<br><br><br>Miguel Angel Moreno Bolaņos<br><br>Usuario Linux registrado No. 391784<br><a href="http://counter.li.org" target="_blank">http://counter.li.org</a><br><br>"El amor es un dolor entre pecho y espalda,<br>

que sabe a papas fritas sin salsa de tomate!"<br>
<br>Att: Nous