In message <[EMAIL PROTECTED]>, Elliot Finley writes: >I have a lot of custom alarms that need to generate a lot of status >information. The way I deal with this is I generate an HTML file that >I place on the nagios server and the one line that I return as the >status is a link to this file. > >It would be nice if this were generalized such that if only one line >were returned to nagios, it would be displayed. But if multiple lines >were returned then nagios would create an HTML file from lines 2-N and >URLize the first line to point to this file. > >Any opinions on this idea? Any hopes of getting this feature into a >future release of Nagios?
Nagios 3 will support multiline output, although I am not sure of the mechanism. I am guessing that the unique event ID that is part of nagios 3 is used to label the multi-line output when it is broken into small enough chunks to be (atomically) fed back to the nagios core. In any case, at a prior employer I created a plugin wrapper that captured the output from it's child plugins and and sent back a URL to the file with all the output once the non-performance part of the output got too large (360 char or so IIRC). The only problem was that the html file could be opened by anybody (bypassing nagios permission checks), but the name was random (well an md5 hash of the script pid and time) and unique (more or less), so people could guess it but it was good enough for what we needed at the time. -- rouilj John Rouillard =========================================================================== My employers don't acknowledge my existence much less my opinions. ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Nagios-users mailing list Nagios-users@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