Plugin to get all Filesystems
-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Plugin to get all Filesystems
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.
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
On our Windows servers we have the NSClient++ installed and have our check setup like this:
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.
Code: Select all
check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<15%" "crit=free<5%"-
raamardhani7
- Posts: 459
- Joined: Tue Jun 02, 2015 12:36 am
Re: Plugin to get all Filesystems
Hi Team & jkinning,jkinning wrote:On our Windows servers we have the NSClient++ installed and have our check setup like this: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.Code: Select all
check_drivesize -a "filter=type = 'fixed' and drive regexp '.*[C-Z].*'" "warn=free<15%" "crit=free<5%"
Thanks for the update on windows systems.
Is there any plugin for UNIX system?
Re: Plugin to get all Filesystems
Here is what we are using for most of our Linux servers. The -x is excluding those mount points
I would also say bookmark this site as it has been very beneficial to us.
Code: Select all
check_disk -a '-w 10% -c 5% -x /dev -x /dev/shm -x /sys/kernel/debug/tracing'Code: Select all
http://sites.box293.com/nagios/guides/common-checks/disk-usageRe: Plugin to get all Filesystems
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
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 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
Re: Plugin to get all Filesystems
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).
You'll need to be in the /usr/local/nagios/libexec/ (or, whichever directory you compile the plugins in).
Former Nagios Employee
Re: Plugin to get all Filesystems
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
Hi Team,tmcdonald wrote:Just checking in since we have not heard from you in a while. Did @rkennedy's post clear things up?
thanks a lot for your help.. responses really helped me. you can close this thread.