Disk Check reports

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Disk Check reports

Post by jkinning »

Previously when we were using Nagios Core we were monitoring individual drives via WMI which our environment we used a proxy to get the WMI information. This was helpful for our Storage guys because they could click on a hosts and then the service check for a particular drive, D, E, F, etc and then they would click on the View Availability Report For This Service. The Service Log Entries would show them the Event/State Information so they could see the daily usage which would help them determine if the drive is slowly filling up or if someone or something dropped several hundred GBs of data in one day. Moving forward to today we are using Nagios Xi and leveraging the NSClient++ eliminating the WMI calls we were using. We are using this service check for the drives because it will check all the drives at one time and doesn't require us to know drive letters or how many drives, etc. For us Administrators it makes like easier.

Code: Select all

./check_nrpe -H <host> -c check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<10%" "crit=free<5%" 
So if I have them use the same method, select the Drive service and then under Advance View in Nagios Core and View Availability Report For This Service the information just shows OK All #(number) drive(s) are ok but doesn't actually show the space. When I run that command from the command line I get the raw data:

Code: Select all

./check_nrpe -H <host> -c check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<10%" "crit=free<5%"
OK All 3 drive(s) are ok|'C:\ free'=10.13283GB;3.98994;1.99497;0;39.89941 'C:\ free %'=25%;9;4;0;100 'D:\ free'=640.96744GB;204.7872;102.3936;0;2047.87206 'D:\ free %'=31%;10;5;0;100 'E:\ free'=99.99091GB;39.9872;19.9936;0;399.87206 'E:\ free %'=25%;9;4;0;100 
So with Nagios XI having greater reporting capabilities is there a report or something I could have emailed on a daily, weekly, monthly basis showing drive usage for specific hosts? I am hoping I won't need to create separate drive checks for these hosts to provide our Storage Admins with the information they are looking for. I had them take a look at the Capacity Planning tab but that just confused them and some drives had the message "No data to display: 'NoneType' object has no attribute 'unit'. I've attached the screenshot.

Just trying to figure out the best method or a way so they can see the data they want that will help them at the same time not making my life as the Admin any more difficult. Again, just need to track daily, or weekly, or monthly stats of drive usage to help them determine if the storage is growing normally or if someone/something is dumping GB or large amounts of data on specific disks.
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk Check reports

Post by jdalrymple »

jkinning wrote:When I run that command from the command line I get the raw data
That's actually perfdata - not raw data. That should be very visible under the advanced tab. Moreover if you're getting valid perfdata (I'm not 100% sure that's parsing properly) you should also get performance graphs that you can look at.

As for the capacity planning graphs that are coming out weird - what is the common thread between those? As I mentioned, the perfdata output does look a bit improperly quoted to me. If that's the case though, it will have to go back to the nscp dev, we can't fix it.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Disk Check reports

Post by jkinning »

You are correct. It is still strange that under the Performance Data I see the drives and % but for the Capacity Planning and Performance Graphs I don't see the F: drive at all.

Code: Select all

Performance Data:	'C:\ free'=8.27246GB;5.98491;1.99497;0;39.89941 'C:\ free %'=20%;14;4;0;100 'D:\ free'=647.72229GB;230.38081;76.7936;0;1535.87206 'D:\ free %'=42%;14;4;0;100 'F:\ free'=219.05276GB;184.30107;61.43369;0;1228.67382 'F:\ free %'=17%;14;4;0;100
You do not have the required permissions to view the files attached to this post.
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk Check reports

Post by jdalrymple »

This machine doesn't appear to have an F drive... what is the F drive?

I wonder if someone slid a USB stick in at one point and that wonked up the performance graphs.
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Disk Check reports

Post by tgriep »

If the F Drive was added at a later time than the other drives, it will not show up on the graphs automatically. You will have to add the new data source to the graphs manually.
Here is a link the describes how to do that for the ICMP check but it works with all of the graphs.
https://support.nagios.com/wiki/index.p ... 14_Upgrade
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Disk Check reports

Post by jkinning »

jdalrymple wrote:This machine doesn't appear to have an F drive... what is the F drive?

I wonder if someone slid a USB stick in at one point and that wonked up the performance graphs.
There is an F drive which is a valid drive on the server which is SAN attached. Just like D.

Code: Select all

Performance Data:   'C:\ free'=8.27246GB;5.98491;1.99497;0;39.89941 'C:\ free %'=20%;14;4;0;100 'D:\ free'=647.72229GB;230.38081;76.7936;0;1535.87206 'D:\ free %'=42%;14;4;0;100[b] 'F:\ free'=219.05276GB;184.30107;61.43369;0;1228.67382 'F:\ free %'=17%;14;4;0;100[/b]
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Disk Check reports

Post by jdalrymple »

Sorry I overlooked that output.

Is it possible that the disk was added after the service was created as tgriep suggested?
Locked