>> * Esteban Monge <este...@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 >> >> > Thanks, I will work on that > > I worked on that.
I have a text file with next data: Nagios.DCCorp SSH 0 SSH OK - OpenSSH_5.5p1 Debian-6+squeeze2 (protocol 2.0)|time=0.420720s;;;0.000000;10.000000 Nagios.DCCorp Process MySQL 0 PROCS OK: 1 process with command name mysqld| Nagios.DCCorp Process NPCD 0 PROCS OK: 1 process with command name npcd| Nagios.DCCorp Process NSCA 0 PROCS OK: 1 process with command name nsca| Nagios.DCCorp NTP Time 0 NTP OK: Offset -0.01471853256 secs|offset=-0.014719s;60.000000;120.000000; And send it with to central Nagios with: cat results.sending | /usr/local/nagios/bin/send_nsca -H HappyCentralHost -c /usr/local/nagios/etc/send_nsca.cfg But in central Nagios receive: [1363376971] EXTERNAL COMMAND: PROCESS_SERVICE_CHECK_RESULT;Nagios.DCCorp SSH 0 SSH OK - OpenSSH_5.5p1 Debian-6+squeeze2 (protocol 2.0)|time=0.420720s;;;0.000000;10.000000\nNagios.DCCorp Process MySQL 0 PROCS OK: 1 process with command name mysqld|\nNagios.DCCorp Process NPCD 0 PROCS OK: 1 process with command name npcd|\nNagios.DCCorp Process NSCA 0 PROCS OK: 1 process with command name nsca|\nNagios.DCCorp NTP Time 0 NTP OK: Offset -0.01471853256 secs|offset=-0.014719s;60.000000;120.000000; I have in both NSCA... I don't understand good how can put ASCII ETB at the end of line. I have the same problem about services, I had a service check with several lines, via local SNMP: Warning - blade11 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration. blade12 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration. blade1 (HappyBlade1): Good No critical or warning events blade4 (HappyBlade4): Good No critical or warning events blade5 (HappyBlade5): Good No critical or warning events blade6 (HappyBlade6): Good No critical or warning events blade7 (SN#OPS): Good No critical or warning events blade10 (HappyBlade6): Good No critical or warning events blade11 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration blade12 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration blade13 (HappyBlade13): Good No critical or warning events But when I send to central Nagios Only receive: Warning - blade11 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration. blade12 (SN#OPS): Warning (SN#OPS) Blade incompatible with I/O module configuration. ------------------------------------------------------------------------------ >> 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@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 >> > > > > ------------------------------------------------------------------------------ > Everyone hates slow websites. So do we. > Make your web apps faster with AppDynamics > Download AppDynamics Lite for free today: > http://p.sf.net/sfu/appdyn_d2d_feb > _______________________________________________ > 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 > ------------------------------------------------------------------------------ Everyone hates slow websites. So do we. Make your web apps faster with AppDynamics Download AppDynamics Lite for free today: http://p.sf.net/sfu/appdyn_d2d_mar _______________________________________________ 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