<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    For shell based event handlers I normally add these lines to the top
    of the script:<br>
    <br>
    set -x<br>
    exec >> /tmp/event.log 2>&1<br>
    echo "================= Started `date` ================"<br>
    set<br>
    <br>
    This way, everything the event handler does is written to the file
    /tmp/event.log<br>
    <br>
    Also, this page:
    <a class="moz-txt-link-freetext" href="http://edcint.co.nz/checkwmiplus/?q=genericeventhandler">http://edcint.co.nz/checkwmiplus/?q=genericeventhandler</a><br>
    is about a generic event handler which could replace your event
    handler just by passing it some parameters. The other advantage of
    the generic event handler is that is has good logging and debug
    features.<br>
    <br>
    This page:
    <a class="moz-txt-link-freetext" href="http://edcint.co.nz/checkwmiplus/?q=faq_worksoncommandline">http://edcint.co.nz/checkwmiplus/?q=faq_worksoncommandline</a><br>
    is about plugins that don't work in Nagios but work on the command
    line. Most of the pointers here also apply to event handlers.<br>
    <br>
    <div class="moz-cite-prefix">On 28/11/2012 6:16 AM, Assaf Flatto
      wrote:<br>
    </div>
    <blockquote cite="mid:50B511A2.7020605@flatto.net" type="cite">
      <pre wrap="">On 27/11/12 17:32, <a class="moz-txt-link-abbreviated" href="mailto:fatcharly@gmx.de">fatcharly@gmx.de</a> wrote:
</pre>
      <blockquote type="cite">
        <pre wrap="">Hi,

I`m using a nagios 3.0.3 on a CentOS 5.8 and I´m a little stuck with a eventhandeler problem- I can`t see it running and I can´t find a problem in the logfiles. Here a short overview:

</pre>
      </blockquote>
      <br>
    </blockquote>
    <br>
    <br>
    <div class="moz-signature">-- <br>
      <font size="-1">
        <a href="http://www.smartmon.com.au">Smartmon System Monitoring</a>
        <br>
        <a href="http://www.smartmon.com.au">www.smartmon.com.au</a> </font></div>
  </body>
</html>