Need to Monitor Other Volumes or Partition Of Linux

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Need to Monitor Other Volumes or Partition Of Linux

Post by sh.shekhar89 »

Hi All,

I need to monitor other Volume or Partition of Linux host, By default for Linux host it will only show root partition. I need to monitor other partition too.

Can someone guide me how to do it?
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Need to Monitor Other Volumes or Partition Of Linux

Post by tmcdonald »

Which method are you using currently to monitor the volumes?
Former Nagios employee
sh.shekhar89
Posts: 52
Joined: Fri Oct 10, 2014 3:17 pm

Re: Need to Monitor Other Volumes or Partition Of Linux

Post by sh.shekhar89 »

tmcdonald wrote:Which method are you using currently to monitor the volumes?
Hi Tmcdonald,

I am not using any method to monitor the volumes. By default when i have installed nagios, its only showing root partition details. but requirement is to monitor all the partitions.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Need to Monitor Other Volumes or Partition Of Linux

Post by slansing »

Can you share the current root partition's service configuration with us? It should be located in:

Code: Select all

/usr/local/nagios/etc/services/localhost.cfg
We can then help you construct an additional command, or modify the current one, to hopefully get the information you need. It is likely using check_disk, and an example of running one service check agains multiple partitions is below:

Code: Select all

check_disk -w 10% -c 5% -p /tmp -p /var -C -w 100000 -c 50000 -p /
Which checks /tmp and /var at 10% and 5%, and / at 100MB and 50MB.
Locked