[Nagiosplug-help] How to use an external file with data
Marc Belanger
sun.jedi at gmail.com
Tue Jun 26 23:12:50 CEST 2007
Without knowing the details, wouldn't it be easy enough to use cron to run
the commands, and use check_log to parse the local file created? Or,
depending on the parsing logic you require, use the exit codes of a custom
plugin script to shoot back to nagios. There is information on plugin
development at http://nagiosplug.sourceforge.net/developer-guidelines.htmlthat
pointed me in the right direction for custom stuff.
-Marc
On 3/27/07, Robert Finney <rfinney at co.jefferson.co.us> wrote:
>
> List,
>
> I'm working with a developer to put together a plugin that when executed
> will login
> to a host, run a series of commands, and write the output to a local file.
>
> My question is how to set up Nagios to read the local file and update
> nagios appropriately.
>
> We are using Nagios 2.6, plugin version 1.4.5, OS is Linux Redhat 4.
>
> Thanks in advance for your help.
>
> Bob
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Nagiosplug-help mailing list
> Nagiosplug-help at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/nagiosplug-help
> ::: Please include plugins version (-v) and OS when reporting any issue.
> ::: Messages without supporting info will risk being sent to /dev/null
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20070626/536516c9/attachment.html>
More information about the Help
mailing list