[Nagiosplug-devel] Plugin support for direct piping to NSCA?

Marc Haber mh+nagiosplug-devel at zugschlus.de
Thu Mar 16 06:26:08 CET 2006


On Mon, Jan 16, 2006 at 01:39:31AM -0800, Per Thomsen wrote:
> I'm writing a few plugins that should be run locally. I'm checking hosts
> that are behind other people's firewalls, so I am using NSCA.
> 
> I would like to publish my plugins, when they're working properly. Since
> I'm using nsca, I have added an option '-N' (or '--nsca'), which changes
> the output of the plugin to something that can be piped directly into
> 'send_nsca'.
> 
> Is this a desirable way to do this, or do most people make use of a
> wrapper script? Should I remove this option when publishing the plugins?

btw, I think that either a wrapper binary should be included into the
distribution, or send_nsca should be enabled to act as a wrapper
itself. Something along the lines of

send_nsca -P "/usr/lib/nagios/plugins/check_disk -w 20% -c 10%" -H nagios.server

would do fine, in my opinion.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835




More information about the Devel mailing list