questions regarding plugins and actions

Nathan Oyler noyler at khimetrics.com
Fri Mar 4 16:24:30 CET 2005


> 
> First question:  Is there a generic plugin framework around that I can
use
> as a starting point for writing a new plugin?

[Nathan Oyler] 

My first perl script was a Nagios plugin to check nfs mounts to verify
they are okay.

I catted plugins until I found the perl ones, and followed their basic
outline. You should get very far doing that.

> 
> Second question:  I would like to write a plugin that monitors the
last
> modified time of a file and alerts if it hasn't been modified in 60
> seconds.  Is there an existing plugin that can do this or will I need
to
> write one?
> 
[Nathan Oyler] 

Don't know, I thought it was a lot of fun writing my first plugin, I
think you should just go that route anyway.

> Third question:  I would like to have nagios take an action on
receiving
> such a notification in addition to alerting - I'd like it to restart a
> process (the web server process, to be exact).  Can I use one of the
> commands in the misccommands.cfg file (I think) to cause this to
happen?
> 
[Nathan Oyler] 

Read up on event handlers, that's there exact purpose.

> Essentially, my last question is more generally this:  Is there any
reason
> why nagios can't be more proactive in solving problems, or is it only
> designed for notification?
> 
[Nathan Oyler] 

Again, Event Handlers are your friend.

> --Russell
> 
> --
> In Transit.
> 
> 
> 
> -------------------------------------------------------
> SF email is sponsored by - The IT Product Guide
> Read honest & candid reviews on hundreds of IT Products from real
users.
> Discover which products truly live up to the hype. Start reading now.
> http://ads.osdn.com/?ad_id=6595&alloc_id=14396&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




-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_ide95&alloc_id396&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