NagiosXI Metrics
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
NagiosXI Metrics
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.
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
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.
Perry
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
Perry
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
Re: NagiosXI Metrics
Have send you the file.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.Thanks,
- 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
Perry
Re: NagiosXI Metrics
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
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 partThanks,
Perry
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
Re: NagiosXI Metrics
Hi,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.Code: Select all
split -b 40M hereprofile.zip part
Thanks,
Perry
The profile.zip was only 428KB ? Not big enough to split.
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
Re: NagiosXI Metrics
Hi Added the profile.zip again (454KB), today I have updated nagios installation to latest version.pbroste wrote:Hello @bramassendrop
Please try to resend the System Profile again, it should stick.
Thanks
Perry
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.
Re: NagiosXI Metrics
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:
Then restart the mariadb/mysqld service and other services:
Because you're getting things like:
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:
Let's start with these adjustments to your environment and let us know how things are looking,
Perry
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:
Add this to your /etc/my.cnf under the [mysqld] section:SQL Error [nagiosxi] : MySQL server has gone away
Code: Select all
max_allowed_packet=512MBecause you're getting things like:
in your /usr/local/nagios/var/npcd.log...NPCD: WARN: MAX load reached: load 12.800000
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
Perry
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
Re: NagiosXI Metrics
Changed the above settings, still no positive results (no CPU Metrics).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:Add this to your /etc/my.cnf under the [mysqld] section:SQL Error [nagiosxi] : MySQL server has gone away
Then restart the mariadb/mysqld service and other services:Code: Select all
max_allowed_packet=512M
Because you're getting things like:
in your /usr/local/nagios/var/npcd.log...NPCD: WARN: MAX load reached: load 12.800000
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:Let's start with these adjustments to your environment and let us know how things are looking,Code: Select all
systemctl restart crond systemctl restart npcd systemctl restart nagios systemctl restart mariadb mysqld
Perry
Have send you a new profile.zip via PM.
-
bramassendorp
- Posts: 28
- Joined: Sun Jun 09, 2019 3:16 am
Re: NagiosXI Metrics
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.)
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.)