Multiple output lines in plugins?
Christopher M Bergeron
christopher at bergeron.com
Fri Jul 9 18:09:06 CEST 2004
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).
Hope this helps!
Best regards,
Chris Bergeron
Nicole Hähnel wrote:
> Hi,
>
> I've written my own plugin to get more information from a server.
> I use nrpe to check the other servers with my plugin.
> The plugin is not only to get "status ok". It gives out more lines,
> something like this:
>
> Temperatures OK
> CPU Planar 38.0 Celsius
> Ambient 26.0 Celsius
> BP Bottom Temp 23.0 Celsius
>
> The problem is check_nrpe gets only the first line.
> All I see is "Temperatures OK", the other lines are ignored.
>
> Is there any possibility to get more than one line?
> Or is the only thing I can do, write all output in one line?
>
>
> Thanks!
>
> Nicole
>
>
> -------------------------------------------------------
> 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
>
>
-------------------------------------------------------
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