NRPE - performance data larger than 1024B
Thomas Guyot-Sionnest
dermoth at aei.ca
Thu Mar 29 08:00:39 CEST 2012
-----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/blob/HEAD:/nagios/eventhandlers/check_by_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 SF email is sponsosred by:
Try Windows Azure free for 90 days Click Here
http://p.sf.net/sfu/sfd2d-msazure
More information about the Developers
mailing list