NagiosXI Metrics

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

NagiosXI Metrics

Post by bramassendorp »

Hi,

I have a mixed environment (Windows and Red Hat), both use the NCPA agent, and for both I have "CPU Usage" as a service test.

For the Red Hat host, I see the "CPU Usage" on the Metrics page.
But for Windows there are no statistics.

I'm talking about the Matrix at the nagiosXI Home page -> Details -> Metrics.

For "Memory" both Windows and Red Hat are working.

Can you please explain why.

Thnx.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NagiosXI Metrics

Post by pbroste »

Hello @bramassendorp

Thanks for reaching out and would like to take a look at your Nagios XI System Profile so we can see what is going on.

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, send via Private Message
Thanks,
Perry
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

Re: NagiosXI Metrics

Post by bramassendorp »

pbroste wrote:Hello @bramassendorp

Thanks for reaching out and would like to take a look at your Nagios XI System Profile so we can see what is going on.

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, send via Private Message
Thanks,
Perry
Have send you the file.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NagiosXI Metrics

Post by pbroste »

Hello @bramassendorp

Appears that the attachment did not make the trip. Please size it down and send individual splits [PM].

here is the split command to size down the compressed Profile.

Code: Select all

split -b 40M hereprofile.zip part
Please send each 'part[x]' in a separate PM.

Thanks,
Perry
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

Re: NagiosXI Metrics

Post by bramassendorp »

pbroste wrote:Hello @bramassendorp

Appears that the attachment did not make the trip. Please size it down and send individual splits [PM].

here is the split command to size down the compressed Profile.

Code: Select all

split -b 40M hereprofile.zip part
Please send each 'part[x]' in a separate PM.

Thanks,
Perry
Hi,

The profile.zip was only 428KB ? Not big enough to split.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NagiosXI Metrics

Post by pbroste »

Hello @bramassendrop

Please try to resend the System Profile again, it should stick.

Thanks
Perry
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

Re: NagiosXI Metrics

Post by bramassendorp »

pbroste wrote:Hello @bramassendrop

Please try to resend the System Profile again, it should stick.

Thanks
Perry
Hi Added the profile.zip again (454KB), today I have updated nagios installation to latest version.
Now I do not have CPU metrics at all (not for windows or linux).
You do not have the required permissions to view the files attached to this post.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: NagiosXI Metrics

Post by pbroste »

Hello @bramassendorp

Thanks for following up and sending over the System Profile. In review, we see that 'Selinux is enabled and want to find out if that has always been enabled? Selinux security protocols can play havoc with the Nagios XI service checks and other functions, with that you may want to disable Selinux to verify. (FYI, 'setenforce 0' will disable after reboot)

Want to make some adjustments based on what we see from the logs present in the System Profile.

In the /usr/local/nagios/var/perfdata.log and
cmdsubsys.log we see:
SQL Error [nagiosxi] : MySQL server has gone away
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:

Because you're getting things like:
NPCD: WARN: MAX load reached: load 12.800000
in your /usr/local/nagios/var/npcd.log...

Increase the following values in these files:

/usr/local/nagios/etc/pnp/process_perfdata.cfg:
TIMEOUT = 15

/usr/local/nagios/etc/pnp/npcd.cfg:
sleep_time = 10

Try a timeout of 30 and a sleep time of 15 and see if that improves things.

Then do:

Code: Select all

systemctl restart crond
systemctl restart npcd
systemctl restart nagios
systemctl restart mariadb mysqld
Let's start with these adjustments to your environment and let us know how things are looking,
Perry
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

Re: NagiosXI Metrics

Post by bramassendorp »

pbroste wrote:Hello @bramassendorp

Thanks for following up and sending over the System Profile. In review, we see that 'Selinux is enabled and want to find out if that has always been enabled? Selinux security protocols can play havoc with the Nagios XI service checks and other functions, with that you may want to disable Selinux to verify. (FYI, 'setenforce 0' will disable after reboot)

Want to make some adjustments based on what we see from the logs present in the System Profile.

In the /usr/local/nagios/var/perfdata.log and
cmdsubsys.log we see:
SQL Error [nagiosxi] : MySQL server has gone away
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:

Because you're getting things like:
NPCD: WARN: MAX load reached: load 12.800000
in your /usr/local/nagios/var/npcd.log...

Increase the following values in these files:

/usr/local/nagios/etc/pnp/process_perfdata.cfg:
TIMEOUT = 15

/usr/local/nagios/etc/pnp/npcd.cfg:
sleep_time = 10

Try a timeout of 30 and a sleep time of 15 and see if that improves things.

Then do:

Code: Select all

systemctl restart crond
systemctl restart npcd
systemctl restart nagios
systemctl restart mariadb mysqld
Let's start with these adjustments to your environment and let us know how things are looking,
Perry
Changed the above settings, still no positive results (no CPU Metrics).

Have send you a new profile.zip via PM.
bramassendorp
Posts: 28
Joined: Sun Jun 09, 2019 3:16 am

Re: NagiosXI Metrics

Post by bramassendorp »

Just found this one:

https://support.nagios.com/forum/viewto ... 16&t=63931

Seems related, have tested, but it will still not show everything (as far as I can see only Linux, no Windows.)
Locked