Plugin to get all Filesystems

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Plugin to get all Filesystems

Post 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.
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Plugin to get all Filesystems

Post 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.
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Plugin to get all Filesystems

Post 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?
jkinning
Posts: 747
Joined: Wed Oct 09, 2013 2:54 pm

Re: Plugin to get all Filesystems

Post 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
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Plugin to get all Filesystems

Post 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
Former Nagios Employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Plugin to get all Filesystems

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Plugin to get all Filesystems

Post 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).
Former Nagios Employee
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Plugin to get all Filesystems

Post by tmcdonald »

Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
Former Nagios employee
raamardhani7
Posts: 459
Joined: Tue Jun 02, 2015 12:36 am

Re: Plugin to get all Filesystems

Post 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.
Locked