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

Andreas Ericsson ae at op5.se
Mon Jan 16 02:35:00 CET 2006


Per Thomsen wrote:
> Hi,
> 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?
> 

I think most people use a wrapper script, seeing as most plugins don't 
support this. I think it's great that yours does, however.


> Additionally, when the plugin is used with 'send_nsca', I require two
> more parameters to be passed to the plugin:
> 
> -H (--hostname=s), the host_name parameter in the service and host
> definitions.
> -S (--servicedesc=s), the service_description parameter in the service
> definition.
> 

Understandable, ofcourse. It would be nice if hostname could come from 
gethostname(2) if it isn't supplied though.

-- 
Andreas Ericsson                   andreas.ericsson at op5.se
OP5 AB                             www.op5.se
Tel: +46 8-230225                  Fax: +46 8-230231




More information about the Devel mailing list