Web UI does not shows multilines in Service Details

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.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Web UI does not shows multilines in Service Details

Post by ssax »

Also, change the include2 back to what it was.
guizalan
Posts: 20
Joined: Mon Mar 16, 2015 3:53 pm

Re: Web UI does not shows multilines in Service Details

Post by guizalan »

I've changed it back (10 seconds timeout), but the same keeps on happening.
Just the first line is shown on the web ui.

And now that I've learned a lot (thanks to you guys), I'm thinking that this is not related to the output size, as the server was already getting all the info before (at 1024). I think this is post NRPE, because nrpe does everything it should be doing at 1024. This seems to be on the web or on apache, I don't know... But then again, I don't know much...
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Web UI does not shows multilines in Service Details

Post by ssax »

Correct, that's what it looks like, it's weird because I'm on the same version and it's working fine.

I didn't see a response on if you were using ndomod or not?

The 4096 issue will need to be resolved if you have any hosts that have more programs installed, it was cutting mine off and the 4096 fixed that, you may run into it in the future, just be aware.

Run the command below (different file this time) and post the output:

Code: Select all

grep "Program Files Counted" /usr/local/nagios/var/retention.dat -A 2
guizalan
Posts: 20
Joined: Mon Mar 16, 2015 3:53 pm

Re: Web UI does not shows multilines in Service Details

Post by guizalan »

I don't know if I have ndomod... How can I check for it?

Code: Select all

root@nagios:/home/nagios# grep "Program Files Counted" /usr/local/nagios/var/retention.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#
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Web UI does not shows multilines in Service Details

Post by ssax »

You can see if NDO is running with:

Code: Select all

ps aux | grep ndo2db
For testing, make a backup of the file below and copy the attached one over it, restart nagios, and try to view it again:

Code: Select all

/usr/local/nagios/sbin/extinfo.cgi
extinfo.zip
(104.53 KiB) Downloaded 186 times
guizalan
Posts: 20
Joined: Mon Mar 16, 2015 3:53 pm

Re: Web UI does not shows multilines in Service Details

Post by guizalan »

Yes, I have NDO

Code: Select all

root@nagios:/home/nagios# ps aux | grep ndo2db
root      68094  0.0  0.1  11748  2220 pts/0    S+   11:21   0:00 grep --color=auto ndo2db
and the extinfo file didn't do anything... (made bkp, copied, restarted nagios, and rechecked the services).
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Web UI does not shows multilines in Service Details

Post by ssax »

No, it doesn't look like you have NDO, that is just showing the grep command you ran because it shows up when you list the processes because it's running at that time.

I'm going to have to talk with some other members of our support team to see what they might be able to add to the discussion.

Edit:

Can you right click where it says "Program Files Counted:" in the web interface and select This Frame > View Frame Source and PM it to me?

Also, PM me your Host and Service definition for that specific host/service and also the files below:

Code: Select all

/usr/local/nagios/etc/nagios.cfg
/usr/local/nagios/etc/cgi.cfg
Edit 2: Received files and placed in shared location for support.
guizalan
Posts: 20
Joined: Mon Mar 16, 2015 3:53 pm

Re: Web UI does not shows multilines in Service Details

Post by guizalan »

Done, I've sent you more than you asked. Hope this helps in figuring out this issue...
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Web UI does not shows multilines in Service Details

Post by ssax »

I find nothing wrong after importing it into mine.

Let's try this, can you compress your /usr/local/nagios directory, create a dropbox account or another file share that you can PM me the location of so I can download it?

Code: Select all

tar -zcvf nagios.tar.gz /usr/local/nagios
guizalan
Posts: 20
Joined: Mon Mar 16, 2015 3:53 pm

Re: Web UI does not shows multilines in Service Details

Post by guizalan »

Done. File in PM.
Locked