NRPE Output Size

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
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

NRPE Output Size

Post 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 (nagios@nagios.org)
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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: NRPE Output Size

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
ssoliveira
Posts: 91
Joined: Wed Dec 07, 2016 6:02 pm

Re: NRPE Output Size

Post by ssoliveira »

Thank you very much
Attachments
check_nrpe.png
bolson

Re: NRPE Output Size

Post by bolson »

Is it ok if we go ahead and close this?
Locked