Page 1 of 1

No listing when click on number of Service Status Summary

Posted: Fri Dec 03, 2021 3:44 am
by azreenariff
Hi,

My client is using Nagios XI 5.8.7. We have a problem where when clicking on the number of 'Critical' under the Service Status Summary, the listing shows 'No matching services found' although it says 'Showing 1-50 of 599 total records'. This is the same for 'Unhandled' and 'Problems', but it displays normally for 'Ok', 'Warning' and 'Unknown'. Any idea on the solution for this? Below is a screenshot.
2021-12-03_16-14-36.png
Rgds,
Azreen

Re: No listing when click on number of Service Status Summar

Posted: Fri Dec 03, 2021 2:19 pm
by pbroste
Hello @azreenariff

Understand that you are not receiving results on the service summary for services in "critical". Want to find out when you select service summary from the web console do you see any "critical" services intermingled within the list?

Do you see "critical" services list within the core web console?

Code: Select all

https://yourhostaddresshere/nagios/cgi-bin/status.cgi?host=all
Do you get a list of "critical services" from the api:

Code: Select all

curl -k -XGET "https://yourhostaddresshere/nagiosxi/api/v1/objects/servicestatus?apikey=yourapikeyherebyclickingonusernameupperright&pretty=1&current_state=2"
* Adjust the 'current_state=# 0-3 for different state types

Let us know what you find and follow up with an updated System Profile.

To send us your system profile.
  • Login to the Nagios XI GUI using a web browser.
  • Click the "Admin" > "System Profile" Menu
  • Click the "Download Profile" button
  • Save the profile.zip file and send via Private Message
Thanks,
Perry

Re: No listing when click on number of Service Status Summar

Posted: Sat Dec 04, 2021 12:18 am
by azreenariff
Hi Perry,

"critical" services list within the core web console is listed okay as below screenshot

from the API, state types 0,1 and 3 are listed okay, but "critical services" comes out '0', as shown below
critical-all.png

rgds,
Azreen

Re: No listing when click on number of Service Status Summar

Posted: Mon Dec 06, 2021 12:23 pm
by pbroste
Hello @azreenariff

Thanks for following up with the details and sending over the System Profile.

In review, we see performance issues that we should tackle. The load on the environment is has stopped the graphs from displaying all data. Meaning the load_threshold option is so NPCD will not start a new thread(s) if your system load is too high. What this means is if the system's load is high, it will stop processing performance graphs which would add to the load. Tries to keep the system running as smoothly as possible sacrificing some points for your graphs.

To find out the processes that are generating the most load, run the following as root on the Nagios server.

Code: Select all

top -b -n1 |head -n 27
It will show the top 20 processes.

From the System Profile logs we see that MySQL and php-fpm: pool www are at the top of the list. We can increase the 'max_allowed_packets' in your '/etc/my.cnf'.

Add this to your /etc/my.cnf under the [mysqld] section:

Code: Select all

max_allowed_packet=512M
Then restart the mariadb/mysqld service and other services:

Code: Select all

systemctl stop crond npcd nagios

Code: Select all

systemctl restart mysqld

Code: Select all

systemctl start nagios npcd crond
Want to also provide a rundown on system performance options:
https://assets.nagios.com/downloads/nag ... uning.html

Once we see that the "MySQL server has gone away" message is no longer logged in the logs due to resource issues we will see that the service summary report will display full report stats.

Thanks,
Perry

Re: No listing when click on number of Service Status Summar

Posted: Tue Dec 07, 2021 7:10 am
by azreenariff
Hi Perry,

Ok got it. Thanks for your great support. You can close this ticket.

rgds,
Azreen

Re: No listing when click on number of Service Status Summar

Posted: Tue Dec 07, 2021 5:16 pm
by pbroste
Excellent, @azreenariff will go ahead and lock this.

Thanks,
Perry