Hello Nagios Crew,
I'm back with a new problem.
When I go to Home->Details ->Metrics I am able to view only the data related the Disk ocupation when i choose a hostgroup (performance02 image). If try to produce the same data with CPU usage I get no information (performance01 image). This happens also with Load, Memory and swap.
Can you please help?
Thanks
SAndro
Metrics Visualization not showing data
Re: Metrics Visualization not showing data
Did you forget to upload the "performance02" image?
Do you see data for individual hosts (when no specific hostgroup is selected from the drop-down menu) for all metrics? How did you set up your CPU/Load/Memory checks? Did you use our "default" wizards, shipped with XI or you used custom plugins?
Note: The Metrics component is somewhat limited in a way that would work well only with the "standard"/"default" checks, created by our wizards, e.g. Linux Server, Windows Server, etc. I you used a 3rd party plugins or if you customized your checks, the data may not be available for you for some of the metrics.
Do you see data for individual hosts (when no specific hostgroup is selected from the drop-down menu) for all metrics? How did you set up your CPU/Load/Memory checks? Did you use our "default" wizards, shipped with XI or you used custom plugins?
Note: The Metrics component is somewhat limited in a way that would work well only with the "standard"/"default" checks, created by our wizards, e.g. Linux Server, Windows Server, etc. I you used a 3rd party plugins or if you customized your checks, the data may not be available for you for some of the metrics.
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Metrics Visualization not showing data
Opss sorry about that.
I have been using wizards to setup my monitoring and bulk install.
So CPU, DISK, MEM, and SWAP are checked with standard wizard procedure.
Without selecting any hostgroupo I do not get any data.
Thanks
Sandro
I have been using wizards to setup my monitoring and bulk install.
So CPU, DISK, MEM, and SWAP are checked with standard wizard procedure.
Without selecting any hostgroupo I do not get any data.
Thanks
Sandro
You do not have the required permissions to view the files attached to this post.
Re: Metrics Visualization not showing data
Go to the Metrics component, select "CPU Usage" from the "Metric" drop-down menu. Do NOT select a hostgroup from the "Limit To Hostgroup" drop-down menu. Click on "Run", and show us a screenshot of the page.
Can you PM me (or anyone else on the Nagios Support team) your profile?
Admin > System Profile > Download Profile
Can you PM me (or anyone else on the Nagios Support team) your profile?
Admin > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Metrics Visualization not showing data
Hello,
attached printscreen.
I will PM you the profile.
Sandro
attached printscreen.
I will PM you the profile.
Sandro
You do not have the required permissions to view the files attached to this post.
Re: Metrics Visualization not showing data
OK, try the following:
1. Make a backup of your original "/usr/local/nagiosxi/html/includes/utils-metrics.inc.php" file:
2. Open the "/usr/local/nagiosxi/html/includes/utils-metrics.inc.php" file in a text editor, e.g. vim, and change this line (it should be line 188 or close to it):
to this:
Save, exit and check your Metrics component again. Do you see the CPU checks on the page?
1. Make a backup of your original "/usr/local/nagiosxi/html/includes/utils-metrics.inc.php" file:
Code: Select all
cp -p /usr/local/nagiosxi/html/includes/utils-metrics.inc.php /usr/local/nagiosxi/html/includes/utils-metrics.inc.php.origCode: Select all
} else if (preg_match("/check_xi_ncpa_agent/", $command) > 0) { //NCPACode: Select all
} else if (preg_match("/check_xi_ncpa/", $command) > 0) { //NCPABe sure to check out our Knowledgebase for helpful articles and solutions!
-
nagiosEngie
- Posts: 104
- Joined: Thu May 03, 2018 7:57 am
Re: Metrics Visualization not showing data
Hello,
we are getting closer. For the moment it will visualize only CPUs for the 2 nagios servers.
Attached file (metrics cpu no data02.jpg)
If I try to set a hostgroup I will get no results.
Sandro
we are getting closer. For the moment it will visualize only CPUs for the 2 nagios servers.
Attached file (metrics cpu no data02.jpg)
If I try to set a hostgroup I will get no results.
Sandro
You do not have the required permissions to view the files attached to this post.
Re: Metrics Visualization not showing data
Hmm, I thought this pattern would work with both, the old and the new command but this may not be the case... Our developers modified this line as such:
Try that, and see if more metrics will show up. This is the "official" fix, which will be in Nagios XI 5.5.1. If this is still not working for you, then you may have a different issue, and opening a support ticket via our Support Center would be a way to go:
https://support.nagios.com/tickets/
Code: Select all
} else if (preg_match("/check_xi_ncpa_agent/", $command) > 0 || preg_match("/check_xi_ncpa/", $command) > 0) { //NCPAhttps://support.nagios.com/tickets/
Be sure to check out our Knowledgebase for helpful articles and solutions!