Mark, thanks a lot for this explanation and the hints. I think I'll have a
look at the event broker thing.

thanks!
Karl
On Mon, Sep 8, 2008 at 5:39 PM, Marc Powell <[EMAIL PROTECTED]> wrote:

>
> On Sep 8, 2008, at 9:59 AM, K-L Reinhard wrote:
>
> > Hi,
> >
> > I'm really unexpierenced with nagios but I have the following task.
> > We have to fire on a script, after the internal logrotating of
> > nagios is done. I know, it would be a lot simpler if we use lograte,
> > but we don't -.-.
>
> ... and shouldn't. Using logrotate will break nagios reporting
> capabilities.
>
> > Is there a way to solve this matter with an event handler or is it
> > possible to define a postscript? Maybe there's a way to call the
> > logrotate function manually ?
>
> Yes to the first, but not trivially and not as an event handler, no to
> the second and no to the third (can't be done and it would break
> nagios reporting capabilities). It's an unusual request so there
> aren't any easy-to-use capabilities... Nagios doesn't provide an event
> handler type of action for log rotation but _does_ notify event broker
> modules of the log rotation event (EVENT_LOG_ROTATION, I believe). You
> could write an event broker module that listens for that event and
> takes appropriate action. Alternately, nagios does log the rotation
> event to nagios.log as 'LOG ROTATION:'. You could maintain a
> continuous tail of the file looking for a sudden decrease in the log
> file size, inode change and/or that entry and take appropriate action.
>
> --
> Marc
>
>
> -------------------------------------------------------------------------
> This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> Nagios-users mailing list
> [email protected]
> 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 the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Nagios-users mailing list
[email protected]
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

Reply via email to