Hi,
I recently moved over to a different plugin to check available disk space on Linux boxes via check_by_ssh. I have the check.disk.pl plugin installed on Xenserver machines. They would no longer allow me to run the standard Nagios check_disk plugin. I changed to the perl variant, which works fine with one exception. BTW - these are Citrix Xenserver hypervisor hosts, running v. 6.5 of Xenserevr (current version). I have over 200 servers running some version of Xenserver. As I said I just started to have this issue with the canned "check_disk" plugn when moving to Xenserver 6.5.
Regardless - the issue is the check_disk.pl plugin does not seem to discriminate between the local disks on the server and mount points. We use a lot of different mounts, often to filers or NFS ISO shares in the Xenserver network. Unfortunately the plugin is reporting/alerting on the mounts. This cannot be. The perl plugin does allow me to specifically exclude drives by name, but it would mean some significant scripting to grab mounted drives and differentiate.
Anyone either seen this or have an alternative? There is nothing wrong with the plugin - it is operating correctly. I am just fielding a lot of reports of mount points being too full, when they aren't at all.
Really appreciate the help!
JB
Checking Xenserver Disks and Mount Points
- Box293
- Too Basu
- Posts: 5126
- Joined: Sun Feb 07, 2010 10:55 pm
- Location: Deniliquin, Australia
- Contact:
Re: Checking Xenserver Disks and Mount Points
I assume you are referencing this plugin:
https://exchange.nagios.org/directory/P ... sk/details
The plugin notes are in French however from what I can tell, this is the command that determines the disks in your system:
Line 137:
From looking at the help for df:
Let us know if this works for you.
https://exchange.nagios.org/directory/P ... sk/details
The plugin notes are in French however from what I can tell, this is the command that determines the disks in your system:
Line 137:
Code: Select all
my $cmd = "/bin/df -k";
You should be able to add -l to the command to resolve your issue:-l, --local limit listing to local file systems
Code: Select all
my $cmd = "/bin/df -k -l";
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
Re: Checking Xenserver Disks and Mount Points
Hey Box293,
That is an outstanding idea. I will try this today or tomorrow - first opportunity I get. I very much appreciate the help. I would not have been able to parse that out myself. Nice bi-lingual help!
Thanks - I will let you know if successful soon!
Joe
That is an outstanding idea. I will try this today or tomorrow - first opportunity I get. I very much appreciate the help. I would not have been able to parse that out myself. Nice bi-lingual help!
Thanks - I will let you know if successful soon!
Joe
Re: Checking Xenserver Disks and Mount Points
Thank you. Keep us posted.joe1871 wrote:Hey Box293,
That is an outstanding idea. I will try this today or tomorrow - first opportunity I get. I very much appreciate the help. I would not have been able to parse that out myself. Nice bi-lingual help!
Thanks - I will let you know if successful soon!
Joe
Former Nagios Employee.
me.
me.
Re: Checking Xenserver Disks and Mount Points
Box293
This fix worked like a dream - it is obvious that it would. I am embarrassed that I didn't see this myself, it is so obvious. You are sharp!
Thanks again - I very much appreciate this fix - it has calmed down a significant issue for me - I have hundreds of these host servers, and our system is set up so that most have off server mounts that were choking the plugin. This solved the problem.
Very much appreciated.
Joe
This fix worked like a dream - it is obvious that it would. I am embarrassed that I didn't see this myself, it is so obvious. You are sharp!
Thanks again - I very much appreciate this fix - it has calmed down a significant issue for me - I have hundreds of these host servers, and our system is set up so that most have off server mounts that were choking the plugin. This solved the problem.
Very much appreciated.
Joe
Re: Checking Xenserver Disks and Mount Points
I am glad to hear this one is resolved! I am going to go ahead and mark the topic as resolved and close it. Let us know if you need anything else!joe1871 wrote:Box293
This fix worked like a dream - it is obvious that it would. I am embarrassed that I didn't see this myself, it is so obvious. You are sharp!
Thanks again - I very much appreciate this fix - it has calmed down a significant issue for me - I have hundreds of these host servers, and our system is set up so that most have off server mounts that were choking the plugin. This solved the problem.
Very much appreciated.
Joe
Former Nagios Employee.
me.
me.