We are monitoring file systems/disk space with Nagios XI
We are looking for way to fetch "used_percent" data into performance data, along with Used, Free and Total values.
As of now our disk check results in the following data on Nagios XI GUI:
OK: Used disk space was 83.70 % (Used: 16.00 GiB, Free: 3.11 GiB, Total: 20.16 GiB)
When I Run Check command against any host:
/usr/local/nagios/libexec/check_ncpa.py -H <HOSTNAME> -t '<TOKEN>' -P 5693 -M 'disk/logical/|' -w '90' -c '95'
OK: Used disk space was 83.70 % (Used: 16.00 GiB, Free: 3.11 GiB, Total: 20.16 GiB) | 'used'=16.00GiB;;; 'free'=3.11GiB;;; 'total'=20.16GiB;;;
In the above the data point 83.70% is visible in the console, but this data is not pushed to performance data, and hence cannot be used for graphs and dashboards.
I know I can see the data for used_percent, if I change the above Check command:
-M 'disk/logical/|' to -M 'disk/logical/|/used_percent' like the below:
/usr/local/nagios/libexec/check_ncpa.py -H <HOSTNAME> -t '<TOKEN>' -P 5693 -M 'disk/logical/|tmp/used_percent' -w '90' -c '95'
OK: Used_percent was 5.00 % | 'used_percent'=5.00%;90;95;
However, I am looking for a way to combine these two checks and get Used, Free, Total and Used_percent data in a single check for better graphing capabilities. Please suggest.
combining two checks
-
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: combining two checks
Hi nagiosxi-admins,
Nagios XI doesn't currently have an option to combine checks for performance graph reasons, you can create group logic using the BPI component for object health. However, here are few workarounds to see that data.
You can use graph Explorer ( Home > Performance Grapsh > graph Explorer) to combine and overlay performance graphs.
Another option would be to set up separate checks as you demonstrated, and then use the Metrics component (Home >Metrics > Grapsh) to view the performance graphs for those services on a single page.
Let me know if that would work for you.
Regards,
Benjamin
Nagios XI doesn't currently have an option to combine checks for performance graph reasons, you can create group logic using the BPI component for object health. However, here are few workarounds to see that data.
You can use graph Explorer ( Home > Performance Grapsh > graph Explorer) to combine and overlay performance graphs.
Another option would be to set up separate checks as you demonstrated, and then use the Metrics component (Home >Metrics > Grapsh) to view the performance graphs for those services on a single page.
Let me know if that would work for you.
Regards,
Benjamin
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Be sure to check out our Knowledgebase for helpful articles and solutions!