Page 2 of 4

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:06 pm
by guizalan
Update:
Yeah, this new attach with size = 4096 also gives "Invalid CRC32" error...

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:16 pm
by ssax
You need to make sure you have the information below in your nsclient.ini and restart the nsclient service:

[/settings/NRPE/server]
payload length=4096

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:19 pm
by guizalan
Nothing on status.dat:

Code: Select all

root@nagios:/home/nagios/nrpe-2.15# grep "Program Files Counted" /usr/local/nagios/var/status.dat -A 2
root@nagios:/home/nagios/nrpe-2.15#

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:22 pm
by ssax
That's because the last one gave an error.

You need to get the command to run, reschedule the check so it says Program Files Counted again, and then run the grep.

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:28 pm
by guizalan
Yes, you are correct!

1- I've put it back to 1024.
2- Re-executed the command
3- And here is the result of your command:

Code: Select all

root@nagios:/home/nagios/nrpe-2.15# grep "Program Files Counted" /usr/local/nagios/var/status.dat -A 2
        plugin_output=Program Files Counted: 28
        long_plugin_output=7-Zip 9.20 (x64 edition) \nAdobe Flash Player 16 ActiveX \nAdobe Flash Player 16 NPAPI \nAdobe Reader XI (11.0.10) - Portugus \nAvast Free Antivirus \nCaseWare Working Papers 2014 \nFoxit Reader \nGoogle Chrome \nIntel(R) Processor Graphics \nJava 8 Update 31 (64-bit) \nMagic ISO Maker v5.4 (build 0239) \nMicrosoft .NET Framework 4.5.2 \nMicrosoft Office Home and Business 2013 - pt-br \nMicrosoft Visio Premium 2010 \nMicrosoft Visual C++ 2005 Redistributable \nMicrosoft Visual C++ 2010 x64 Redistributable - 10.0.40219 \nMicrosoft Visual C++ 2010 x86 Redistributable - 10.0.40219 \nMozilla Firefox 35.0.1 (x86 pt-BR) \nMozilla Maintenance Service \nMSXML 4.0 SP3 Parser \nNSClient++ (x64) \nPacote de Driver do Windows - Qualcomm Atheros Communications Inc. (athr) Ne...\nPacote de Driver do Windows - Sony Corporation (SFEP) HIDClass (11/15/2011 ...\nPDFCreator \nSkypeT 7.1 \nSNMP Informant Agent (Standard Edition) \nSynaptics Pointing Device Driver \nVAIO Event Service
        performance_data=
root@nagios:/home/nagios/nrpe-2.15#

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:35 pm
by ssax
And it's still not showing in the interface?

Are you using ndomod?

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:44 pm
by guizalan
ssax wrote:You need to make sure you have the information below in your nsclient.ini and restart the nsclient service:

[/settings/NRPE/server]
payload length=4096
After setting this configuration, the service started, but the queries are now giving the error:

CHECK_NRPE: Socket timeout after 10 seconds.

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 2:47 pm
by ssax
That's because you need to recompile NRPE with 4096 support.

You can see what needs to be changed in the first post here: http://tracker.nagios.org/view.php?id=564

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 3:21 pm
by guizalan
Okay,

1- nsclient.ini with payload length=4096 ; service restarted
2- nrpe recompiled with 4906 in:

Code: Select all

root@nagios:/home/nagios/nrpe-2.15# grep -R 4096
include/common.h:#define MAX_INPUT_BUFFER       4096    /* max size of most buffers we use */
include/common.h:#define MAX_PACKETBUFFER_LENGTH        4096            /* max amount of data we'll send in one query/response */
include/include2:#define MAX_INPUT_BUFFER       4096    /* max size of most buffers we use */
include/include2:#define MAX_PACKETBUFFER_LENGTH        4096            /* max amount of data we'll send in one query/response */
src/snprintf.c: char buf1[4096];
src/snprintf.c: char buf2[4096];
contrib/nrpe_check_control.c:#define MAX_CHARS  4096
3- Timeout reconfigured to 30 on:
include/common.h:#define DEFAULT_SOCKET_TIMEOUT 30 /* timeout after 10 seconds */
include/include2:#define DEFAULT_SOCKET_TIMEOUT 30 /* timeout after 10 seconds */

4-I stopped the nagios service;
5- make clean
6- ./configure --with-ssl=/usr/bin/openssl --with-ssl-lib=/usr/lib/x86_64-linux-gnu
7- make
8- make install
9- service nagios start

With all that done, the web ui is showing just the first line. And yes, I've reschedule it to check (update now!)
But on the console, It's showing the error below:

Code: Select all

root@nagios:/home/nagios/nrpe-2.15# check_nrpe -H naud12 -c check_windows_app_installs
CHECK_NRPE: Socket timeout after 10 seconds.

Re: Web UI does not shows multilines in Service Details

Posted: Mon Mar 23, 2015 3:36 pm
by ssax
You could try changing the socket timeouts back, the timeout before was because of a mismatch.