Thoughts about a custom plugin

Andy Shellam andy.shellam-lists at mailnetwork.co.uk
Sun Jul 20 21:34:13 CEST 2008


Hi,

Thomas Guyot-Sionnest wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> On 20/07/08 11:19 AM, stan wrote:
>   
>> On Sun, Jul 20, 2008 at 10:16:45AM -0500, Marc Powell wrote:
>>     
>>> On Jul 20, 2008, at 9:28 AM, stan wrote:
>>>       
>>>> After having looked at the way Nagios plugins work, i have a couple of
>>>> concerns about this design. The first is the rule that says the status
>>>> returned by a plugin should be less than 8 characters. The 2nd is  
>>>> that, for
>>>>         
>>> Perhaps I'm not following but I'm not aware of any such restriction.  
>>> Nagios only really cares about the exit _code_ code of a plugin (1-4)  
>>> and the text is for humans only. That text can be quite large. In  
>>> nagios-2 it must all be on one line. There is a limit but it depends  
>>> on how you're getting your results back to nagios but in all cases is  
>>> much greater than 8 characters (i.e. ~500 at minimum I believe for  
>>> passive checks). In nagios-3 it can be split across multiple lines  
>>> (with documented caveats) with no limit I believe (but check the  
>>> documentation).
>>>
>>>       
>> Sorry for the 8, it was supposed to be 80, and came from a web page I read
>> about developing NAGIO plugins. If I recall the reason corectly, it was
>> because that status might go to a printed report?
>>     
>
> In the official Nagios-plugins we enforce a 80-characters limit on the
> - --help output as the plugins might get configured from a 80x24 text
> terminal (just to avoid line breaks - it won't break anything though).
> That's the only 80 characters limit I've ever heard about...
>   

The maximum plugin output, according to Nagios 3's release notes, is 4KB 
(or 350 bytes in previous versions) and can be changed by re-compiling.  
This equates to 4096 ASCII characters.

See http://nagios.sourceforge.net/docs/3_0/pluginapi.html.  The plugin 
API is not as restrictive as you may think.

Andy

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
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