Problem sending passive results using NSCA with multi-line output

Holger Weiß holger at cis.fu-berlin.de
Sat Feb 16 22:27:33 CET 2013


* Esteban Monge <esteban at nuevaeralatam.com> [2013-02-16 15:00]:

> > This looks like you're using a send_nsca version < 2.9, where multiple
> > check results were seperated using newlines.  In that case, you'll have
> > to replace each newline character within multi-line output with the
> > literal string '\n'.
> >
> > With NSCA >= 2.9, multiple check results are seperated using ASCII ETB
> > characters (octal value: 27) instead of newlines, and multi-line output
> > can be piped into send_nsca as-is.  (Actually, converting the newline
> > characters into '\n' will no longer work with NSCA >= 2.9.)
>
> I have one situation with both versions:
> NSCA < 2.9 in clients and NSCA > 2.9 in server.
> 
> Can send passive checks with "\n" for newline?

Yes, replacing newline characters with the literal string '\n' should do
the trick in your case.

Holger

------------------------------------------------------------------------------
The Go Parallel Website, sponsored by Intel - in partnership with Geeknet, 
is your hub for all things parallel software development, from weekly thought 
leadership blogs to news, videos, case studies, tutorials, tech docs, 
whitepapers, evaluation guides, and opinion stories. Check out the most 
recent posts - join the conversation now. http://goparallel.sourceforge.net/
_______________________________________________
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