Page 1 of 1

Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 12:40 pm
by raamardhani7
Hi Team,

Could you please help me with the plugin that scans the server and reports all the filesystems?

We wanted to setup monitoring for a server by just configuring this plugin, so that it reverts the output of all the filesystems. If there is any issue with any of the Filesystem, it should report an alert to the specified contact group. Please help us on this. thanks.

Re: Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 1:15 pm
by jkinning
On our Windows servers we have the NSClient++ installed and have our check setup like this:

Code: Select all

check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<15%" "crit=free<5%"
This checks any drive letter C-Z and warns us when there is less than 15% free and critical when it is less than 5% free.

Re: Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 1:31 pm
by raamardhani7
jkinning wrote:On our Windows servers we have the NSClient++ installed and have our check setup like this:

Code: Select all

check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<15%" "crit=free<5%"
This checks any drive letter C-Z and warns us when there is less than 15% free and critical when it is less than 5% free.
Hi Team & jkinning,

Thanks for the update on windows systems.

Is there any plugin for UNIX system?

Re: Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 1:53 pm
by jkinning
Here is what we are using for most of our Linux servers. The -x is excluding those mount points

Code: Select all

check_disk -a '-w 10% -c 5% -x /dev -x /dev/shm -x /sys/kernel/debug/tracing'
I would also say bookmark this site as it has been very beneficial to us.

Code: Select all

http://sites.box293.com/nagios/guides/common-checks/disk-usage

Re: Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 1:57 pm
by rkennedy
check_disk by default should be able to do this for you. You'd just need to use it in conjunction with NRPE or check_by_ssh -

Code: Select all

[root@localhost libexec]# ./check_disk -w 95% -c 96%
DISK CRITICAL - free space: / 3920 MB (55% inode=82%); /dev/shm 497 MB (100% inode=99%); /boot 383 MB (84% inode=99%);| /=3164MB;373;298;0;7470 /dev/shm=0MB;24;19;0;497 /boot=68MB;23;19;0;476

Re: Plugin to get all Filesystems

Posted: Mon Jan 30, 2017 7:25 pm
by raamardhani7
rkennedy wrote:check_disk by default should be able to do this for you. You'd just need to use it in conjunction with NRPE or check_by_ssh -

Code: Select all

[root@localhost libexec]# ./check_disk -w 95% -c 96%
DISK CRITICAL - free space: / 3920 MB (55% inode=82%); /dev/shm 497 MB (100% inode=99%); /boot 383 MB (84% inode=99%);| /=3164MB;373;298;0;7470 /dev/shm=0MB;24;19;0;497 /boot=68MB;23;19;0;476
I am sorry, It was for AIX servers not for Linux. Could you please advise. and also if this can be done by check_disk. Please help me with the plugin or its path. thanks.

Re: Plugin to get all Filesystems

Posted: Tue Jan 31, 2017 10:28 am
by rkennedy
I do not have an AIX system here to test with - but, as long as you compile the plugin it should work with the same command I mentioned.

You'll need to be in the /usr/local/nagios/libexec/ (or, whichever directory you compile the plugins in).

Re: Plugin to get all Filesystems

Posted: Wed Mar 01, 2017 1:55 pm
by tmcdonald
Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?

Re: Plugin to get all Filesystems

Posted: Wed Mar 01, 2017 3:22 pm
by raamardhani7
tmcdonald wrote:Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Hi Team,

thanks a lot for your help.. responses really helped me. you can close this thread.