Page 1 of 3
NagiosXI Metrics
Posted: Mon Feb 14, 2022 9:10 am
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.
Re: NagiosXI Metrics
Posted: Mon Feb 14, 2022 5:57 pm
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
Re: NagiosXI Metrics
Posted: Tue Feb 15, 2022 9:24 am
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.
Re: NagiosXI Metrics
Posted: Tue Feb 15, 2022 3:05 pm
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.
Please send each
'part[x]' in a separate PM.
Thanks,
Perry
Re: NagiosXI Metrics
Posted: Wed Feb 16, 2022 3:01 am
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.
Please send each
'part[x]' in a separate PM.
Thanks,
Perry
Hi,
The profile.zip was only 428KB ? Not big enough to split.
Re: NagiosXI Metrics
Posted: Wed Feb 16, 2022 2:35 pm
by pbroste
Hello
@bramassendrop
Please try to resend the System Profile again, it should stick.
Thanks
Perry
Re: NagiosXI Metrics
Posted: Thu Feb 17, 2022 5:02 am
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).
Re: NagiosXI Metrics
Posted: Thu Feb 17, 2022 10:37 am
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:
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
Re: NagiosXI Metrics
Posted: Mon Feb 21, 2022 3:24 am
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:
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.
Re: NagiosXI Metrics
Posted: Mon Feb 21, 2022 8:24 am
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.)