Page 1 of 1

NRPE Output Size

Posted: Thu Jul 13, 2017 5:03 pm
by ssoliveira
Good evening,

My graphics are having problems because information is being truncated by check_nrpe.

Calling the command locally is returning correctly.

Code: Select all

 [root@datalog-ugt-log1 libexec]# /usr/bin/check_elasticsearch
Monitoring cluster 'a5726a09-769e-4f2b-be91-d786c8165c6f' | cluster_nodes=4;;;;; cluster_master_eligible_nodes=4;;;;; cluster_data_nodes=4;;;;; cluster_active_shards=1038;;;;; cluster_relocating_shards=0;;;;; cluster_initialising_shards=0;;;;; cluster_unassigned_shards=0;;;;; cluster_total_shards=1038;;;;; cluster_total_indices=70;;;;; cluster_closed_indices=0;;;;; storesize=2124557370946B;;;;; documents=1920168754c;;;;; index_ops=737278752c;;;;; index_time=322062338ms;;;;; flush_ops=9641c;;;;; flush_time=1228456ms;;;;; throttle_time=217690564ms;;;;; index_ops=737278752c;;;;; index_time=322062338ms;;;;; delete_ops=198c;;;;; delete_time=57ms;;;;; get_ops=630539c;;;;; get_time=106761ms;;;;; exists_ops=630536c;;;;; exists_time=106761ms;;;;; missing_ops=3c;;;;; missing_time=0ms;;;;; query_ops=1418392c;;;;; query_time=86096168ms;;;;; fetch_ops=1158580c;;;;; fetch_time=575445ms;;;;; merge_ops=362208c;;;;; refresh_ops=1825688c;;;;; refresh_time=60179314ms;;;;; gc_old_count=21995c;;;;; gc_young_count=185113c;;;;; heap_used=74%;;;;;
However, calling via check_nrpe, it is truncating after the character 1024

Code: Select all

[root@datalog-ugt-log1 libexec]# ./check_nrpe -H 127.0.0.1 -t 90 -c check_elasticsearch
Monitoring cluster 'a5726a09-769e-4f2b-be91-d786c8165c6f' | cluster_nodes=4;;;;; cluster_master_eligible_nodes=4;;;;; cluster_data_nodes=4;;;;; cluster_active_shards=1038;;;;; cluster_relocating_shards=0;;;;; cluster_initialising_shards=0;;;;; cluster_unassigned_shards=0;;;;; cluster_total_shards=1038;;;;; cluster_total_indices=70;;;;; cluster_closed_indices=0;;;;; storesize=2124552989529B;;;;; documents=1920159721c;;;;; index_ops=737269359c;;;;; index_time=322057667ms;;;;; flush_ops=9641c;;;;; flush_time=1228456ms;;;;; throttle_time=217688412ms;;;;; index_ops=737269359c;;;;; index_time=322057667ms;;;;; delete_ops=198c;;;;; delete_time=57ms;;;;; get_ops=630518c;;;;; get_time=106757ms;;;;; exists_ops=630515c;;;;; exists_time=106757ms;;;;; missing_ops=3c;;;;; missing_time=0ms;;;;; query_ops=1418362c;;;;; query_time=86087807ms;;;;; fetch_ops=1158557c;;;;; fetch_time=575429ms;;;;; merge_ops=362199c;;;;; refresh_ops=1825662c;;;;; refresh_time=60177868ms;;;;; gc_old_count=21992c;;;;; gc_young_count=185110c;;;;; he
Apparently there is a limit on the amount of characters processed.
How can I configure NRPE to return the complete string?

[root@datalog-ugt-log1 libexec]# ./check_nrpe
Incorrect command line arguments supplied

NRPE Plugin for Nagios
Copyright (c) 1999-2008 Ethan Galstad ([email protected])
Version: 2.15
Last Modified: 09-06-2013
License: GPL v2 with exemptions (-l for more info)
SSL/TLS Available: Anonymous DH Mode, OpenSSL 0.9.6 or higher required

Re: NRPE Output Size

Posted: Fri Jul 14, 2017 12:09 pm
by tgriep
Version 2.15 of the NRPE agent and plugin does have a limit in the amount of data that is sent in the buffer but the newer 3.x.x version has increased the size of the buffer that transfers the data so it should not get cut off.
You would have to recompile the Agent and the plugin for this to work and the instructions for doing that can be found here.
https://support.nagios.com/kb/article/n ... ource.html

Re: NRPE Output Size

Posted: Fri Jul 14, 2017 1:33 pm
by ssoliveira
Thank you very much

Re: NRPE Output Size

Posted: Fri Jul 14, 2017 2:54 pm
by bolson
Is it ok if we go ahead and close this?