Multiple output lines in plugins?
Fabio Lo Votrico
fabio at link.it
Tue Jul 13 09:48:44 CEST 2004
On Fri, 2004-07-09 at 19:52, Sean Dilda wrote:
> On Fri, 2004-07-09 at 12:09, Christopher M Bergeron wrote:
> > Nicole, you can "trick" nagios by putting in "<br>" where you want each
> > line to break. Like this:
> > Temperatures OK<br>CPU Planar 38.0 Celsius<br>Ambient 26.0
> > Celsius<br>BP Bottom Temp 23.0 Celsius
> >
> > nsca will see it as one line, and when it renders it in the browser, the
> > <br> will be a new line. (<br> is html markup for a line break).
>
> If you're doing this, you'll want to make pass all your notifications
> through a filter to clean that up. Otherwise you'll get ugly
> emails/pages.
I'm doing exactly what Christopher is suggesting, but I don't know
_where_ to filter the output and translate <br> in \n
Nagios is stripping "<" and ">" out of it and I'd like to maintain this
behaviour in general.
So I need to translate before Nagios do its filtering.
Is there any way to do this?
--
Fabio
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
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