[Nagiosplug-devel] How to know, which nagios-version calls a plugin?

Ingo Lantschner listen2007 at lantschner.name
Thu May 29 06:30:27 CEST 2008


Hi,
I am developing plugins for netapp-filers in Perl. Depending on the  
Nagios-version, the output of the plugin should either be shorter  
(Version 2) or longer (version 3). I can do this by introducing a  
parameter like --nagversion but it would be more implementation- 
friendly to have way, that the plugin can determine, from which nagios- 
version it is called?

Any idea?

Thanks in advance, Ingo




More information about the Devel mailing list