title: Nagios: NRPE cannot return output more than 1024 bytes
body: <p>I am using AWS in which I am using <strong>Nagios Core 4.2.4</strong> to monitor nodes having <strong>NRPE agent v2.15</strong> in AMI </p>
  
  <p>Problem is the output from NRPE agent from node to Nagios monitoring server is getting truncated after <strong><em>1KB</em></strong> whereas it should be limited to <strong><em>4KB</em></strong> in the first place as per documentation. </p>
  
  <p>I tried to increase values of those limits and tried recompiling as per <a href="https://buildhost.jacobs-university.de/package/view_file/jsj/nagios/nagios-output-length.patch?expand=1&amp;rev=b78aa984d34034f347131a2ee0eee573" rel="nofollow noreferrer">patch</a> but thats not working </p>
  
  <p>I then installed new <strong>NRPE v3</strong> where it says the limits have been increased to <strong><em>64K</em></strong> but I still keep getting output value no more than <strong><em>1KB</em></strong>.</p>
  
  <p>Not sure if there's a conflict because when I run this from Nagios monitoring server I get</p>
  
  <blockquote>
    <p>/usr/lib64/nagios/plugins/check_nrpe -H slavenodeIP</p>
    
    <p>NRPE v2.15</p>
  </blockquote>
  
  <p>but when I run this from both server and slave I get same output</p>
  
  <blockquote>
    <p>/usr/local/nagios/bin/nrpe | grep -i version</p>
    
    <p>Version: nrpe-3.0</p>
  </blockquote>
  
  <p>Just to confirm if my setup makes sense</p>
  
  <p>Nagios Monitoring Server -> Nagios Core + NRPE</p>
  
  <p>Slaves to be monitored -> NRPE + Plugins(For eg check_nrpe )</p>
  
  <p>So does that mean I am using NRPE v3 and NRPE Plugins v2.15 which conflict? Has anyone faced this issue and how did it get resolved? Been lurking on google since long time but couldn't get a fix for it</p>