Nagios Core doen't show all services on page

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
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

Hello, I have started using Nagios Core for monitorize Windows Servers. After a lot of headaches and lot of research, I did it work. I use WMI to do it. This is what I use:

S.O: Debian 8.2
Nagios: Core 3.5.1 (from Debian Repository)
Apache: 2.4 (from Debian Repository)
wmic: 1.3.14 (from source)
check_wmi_plus: 1.54
pnp4nagios: 0.6.25 (from source)

The problem I have happens when I want to see all the services of all hosts, I don't see all the services at first (despite having less than 100 services). After a couple off auto-refresh, all the services are seen. I assume this is a problem or a bad configuration of Apache but I don't know where to start. Greetings.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Core doen't show all services on page

Post by Box293 »

andresrinaldi_uy wrote:The problem I have happens when I want to see all the services of all hosts, I don't see all the services at first (despite having less than 100 services). After a couple off auto-refresh, all the services are seen. I assume this is a problem or a bad configuration of Apache but I don't know where to start. Greetings.
What do you see logged in the apache error logs:

Code: Select all

tail /var/log/httpd/error_log -n 100
Are you able to show a screenshot when it is not showing all the services. You might have a filter on and it's not showing pending services.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Re: Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

Here is the Apache Log

Code: Select all

[Thu Oct 29 12:09:30.596439 2015] [ssl:warn] [pid 561] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 29 12:09:32.141240 2015] [ssl:warn] [pid 582] AH01909: 127.0.0.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 29 12:09:32.143290 2015] [mpm_prefork:notice] [pid 582] AH00163: Apache/2.4.10 (Debian) mod_auth_kerb/5.4 mod_ldap_userdir/1.1.19 OpenSSL/1.0.1k mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Thu Oct 29 12:09:32.143309 2015] [core:notice] [pid 582] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 29 12:11:50.597407 2015] [mpm_prefork:notice] [pid 582] AH00169: caught SIGTERM, shutting down
[Thu Oct 29 12:11:51.647157 2015] [ssl:warn] [pid 2514] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 29 12:11:51.692504 2015] [ssl:warn] [pid 2517] AH01909: 127.0.1.1:443:0 server certificate does NOT include an ID which matches the server name
[Thu Oct 29 12:11:51.695041 2015] [mpm_prefork:notice] [pid 2517] AH00163: Apache/2.4.10 (Debian) mod_ldap_userdir/1.1.19 OpenSSL/1.0.1k mod_perl/2.0.9dev Perl/v5.20.2 configured -- resuming normal operations
[Thu Oct 29 12:11:51.695070 2015] [core:notice] [pid 2517] AH00094: Command line: '/usr/sbin/apache2'
[Thu Oct 29 12:12:46.524915 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: *** buffer overflow detected ***: /usr/lib/cgi-bin/nagios3/status.cgi terminated, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.524960 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: ======= Backtrace: =========, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525071 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(+0x6c6f3)[0xb761a6f3], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525108 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__fortify_fail+0x45)[0xb76a82d5], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525141 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(+0xf838a)[0xb76a638a], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525172 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(+0xf7ae8)[0xb76a5ae8], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525212 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(_IO_default_xsputn+0x8e)[0xb761e04e], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525249 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(_IO_vfprintf+0x161c)[0xb75f282c], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525286 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__vsprintf_chk+0xb4)[0xb76a5ba4], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525321 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__sprintf_chk+0x2f)[0xb76a5acf], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525351 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /usr/lib/cgi-bin/nagios3/status.cgi(+0x13215)[0xb77a4215], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525380 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /usr/lib/cgi-bin/nagios3/status.cgi(+0xd40f)[0xb779e40f], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525411 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /usr/lib/cgi-bin/nagios3/status.cgi(main+0x19b)[0xb779272b], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525448 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /lib/i386-linux-gnu/i686/cmov/libc.so.6(__libc_start_main+0xf3)[0xb75c7a63], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525477 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: /usr/lib/cgi-bin/nagios3/status.cgi(+0x246c)[0xb779346c], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525503 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: ======= Memory map: ========, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525543 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b73f4000-b7410000 r-xp 00000000 08:02 5111812    /lib/i386-linux-gnu/libgcc_s.so.1, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525583 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7410000-b7411000 rw-p 0001b000 08:02 5111812    /lib/i386-linux-gnu/libgcc_s.so.1, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525621 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7424000-b75ad000 r--p 00000000 08:02 4067006    /usr/lib/locale/locale-archive, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525643 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b75ad000-b75ae000 rw-p 00000000 00:00 0 , referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525686 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b75ae000-b7752000 r-xp 00000000 08:02 5244466    /lib/i386-linux-gnu/i686/cmov/libc-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525730 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7752000-b7754000 r--p 001a4000 08:02 5244466    /lib/i386-linux-gnu/i686/cmov/libc-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525773 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7754000-b7755000 rw-p 001a6000 08:02 5244466    /lib/i386-linux-gnu/i686/cmov/libc-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525796 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7755000-b7758000 rw-p 00000000 00:00 0 , referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525818 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7769000-b776d000 rw-p 00000000 00:00 0 , referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525846 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b776d000-b776e000 r-xp 00000000 00:00 0          [vdso], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525874 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b776e000-b7770000 r--p 00000000 00:00 0          [vvar], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525913 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7770000-b778f000 r-xp 00000000 08:02 5111813    /lib/i386-linux-gnu/ld-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525951 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b778f000-b7790000 r--p 0001f000 08:02 5111813    /lib/i386-linux-gnu/ld-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.525989 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7790000-b7791000 rw-p 00020000 08:02 5111813    /lib/i386-linux-gnu/ld-2.19.so, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526030 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b7791000-b77e8000 r-xp 00000000 08:02 4330444    /usr/lib/cgi-bin/nagios3/status.cgi, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526070 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b77e8000-b77e9000 r--p 00056000 08:02 4330444    /usr/lib/cgi-bin/nagios3/status.cgi, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526111 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b77e9000-b77ea000 rw-p 00057000 08:02 4330444    /usr/lib/cgi-bin/nagios3/status.cgi, referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526133 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b77ea000-b77ee000 rw-p 00000000 00:00 0 , referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526161 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: b8d9e000-b8e43000 rw-p 00000000 00:00 0          [heap], referer: https://localhost/nagios3/side.php
[Thu Oct 29 12:12:46.526195 2015] [cgi:error] [pid 2521] [client ::1:53939] AH01215: bffd2000-bfff3000 rw-p 00000000 00:00 0          [stack], referer: https://localhost/nagios3/side.php
[img]
Not working
Not working
[/img]

[img]
Working
Working
[/img]


I did some research and I found there is problems with unprintable characters in "service_description" what causes the problem I got. I removed those characters but the problem is still there. Thanks a lot for your answer.
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagios Core doen't show all services on page

Post by ssax »

Are any of those unprintable characters in the service status information column?
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Re: Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

Yes they are, it is what I was not having in mind. I kept searching and Nagios does not support it. The thing is that all OS are installed in spanish so the results of the queries have unprintable characters. Is there any way to change this in Nagios?
I am thinking in a workaround with check_wmi_plugin, to replace or remove those characters. Thanks for your answer.
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagios Core doen't show all services on page

Post by Box293 »

We have someone who works with Nagios Core in the Spanish language, @lcontreras, I'm going to reach out to him to see if he has come across this problem.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Re: Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

I would appreciate a lot. Thanks for your anwser.
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Re: Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

Meanwhile i have found a workaround. It consist on use of "sed" command. The problem was in the output of the services so in the "commands.cfg" file added to the "command_line".

ie:

Code: Select all

command_line ($USER6$/check_wmi_plus.pl -H $HOSTADDRESS$ -m checkservice -u $USER8$ -p $USER9$ -a '$ARG1$' -o '$ARG2$' $ARG3$ $ARG4$ $ARG5$ | sed -f $USER6$/replaces.sed)
I created a file named replaces.sed which contains the characters to replace. ie:

Code: Select all

s/\ß/a/g
s/\Ú/e/g
s/\Ý/i/g
s/\¾/o/g
s/\·/u/g
And now it works as it should do.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios Core doen't show all services on page

Post by rkennedy »

Thanks for posting your fix!

Just to check - does this solve your issue than, and am I good to close out this thread?
Former Nagios Employee
andresrinaldi_uy
Posts: 13
Joined: Wed Oct 28, 2015 11:19 am

Re: Nagios Core doen't show all services on page

Post by andresrinaldi_uy »

Yes, this solved my issue. Tanks.
Locked