Thoughts about a custom plugin

Thomas Guyot-Sionnest dermoth at aei.ca
Sun Jul 20 20:02:57 CEST 2008


-----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...

Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFIg33R6dZ+Kt5BchYRAlPHAKDbA427nKf8G7Z6BbmiBCk5sQR1hgCg8vZ/
vDXYnhuI6Fz0DQb+rpXRsz4=
=X9ME
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
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