Re: [Nagios-devel] NRPE - performance data larger than 1024B

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Guest

Re: [Nagios-devel] NRPE - performance data larger than 1024B

Post by Guest »

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On 12-03-28 08:52 AM, SCHAER Frederic wrote:
> Hi,
>
> when the patch is not enough (this happened to me), you can transfer about 300KB of text data using both the patch + bzip2 +
> uuencode on the nrpe side, and bunzip + uudecode decoder on the nagios side...
> base64/uu encoding increases the size, but nrpe is not happy with binary data.
>
> Bzip+uuencoding was the best solution I could find - and that was available on all my managed machines, thus not requiring to
> deploy more packages.
> I havent't tried this method without the patch : it might help transferring a bit more data than 4Kbytes (or 8K ?) - or not...

FWIW I approached the problem a different way - I wrote a simple bash
script associated with an SSH key that reads nrpe.conf and run the
requested command - it doesn't support arguments (yet) and require a
recent (regex-enabled) version of bash. On old servers I just compiled a
recent bash as "bash3" and used it in the #! line...

You can get the script here...
http://repo.or.cz/w/thomas_code.git/blo ... _ssh_proxy

Then set up a key on the monitoring server, authorized_keys on the
remote end (specifying the check_by_ssh_proxy script as forced command),
and use the nrpe command names the check_by_ssh command line.

- --
Thomas
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAk9z+ocACgkQ6dZ+Kt5BchbYuQCgtYGQpieo80wpYmAC1lsYXusB
XEgAoNdbCU6ywkmHZ56GfUtcdHjKqH/A
=AI4f
-----END PGP SIGNATURE-----





This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]
Locked