Page 1 of 2
Mount Point Monitoring on the Linux Servers
Posted: Thu Jan 30, 2020 8:29 am
by amitgupta19
I am planning to monitor the Mount Points on the Linux Servers.
I tried to download the following Plugin:
https://exchange.nagios.org/directory/P ... is/details
But it is not allowing to download the file. It is opening the Script in a new window.
I copy and pasted the Script in a notepad and saved it as .sh file. When i try to test the script it is giving the following error:
sudo: unable to execute ./check_mount.sh: No such file or directory
Any Ideas??
Re: Mount Point Monitoring on the Linux Servers
Posted: Thu Jan 30, 2020 5:30 pm
by Box293
Did you give the script execute permissions?
This KB article might help:
https://support.nagios.com/kb/article/h ... t-531.html
Re: Mount Point Monitoring on the Linux Servers
Posted: Fri Jan 31, 2020 5:10 am
by amitgupta19
Hi Box,
Thanks for the reply.
I am able to download the script now.
As per the script we need to define the separate command for each and every mount point.
Is there a way to monitor all the mountpoints by defining one command. We have some servers which have large number of mountpoints.
Reagrds
Amit
Re: Mount Point Monitoring on the Linux Servers
Posted: Fri Jan 31, 2020 3:21 pm
by benjaminsmith
Hi Amit,
One option is a plugin on the Nagios Exchange that will allow you to combine multiple checks into one plugin.
https://exchange.nagios.org/directory/P ... ti/details
https://github.com/flackem/check_multi
Alternatively, you could create separate checks and then use the Business Process Integilence component to pool everything together and set health criteria.
Using BPI in Nagios XI
Re: Mount Point Monitoring on the Linux Servers
Posted: Mon Feb 03, 2020 5:04 am
by amitgupta19
I am using the Nagios Core 4.3
I don't think so that Nagios BPI will serve my purpose here.
My challenge is writing the x number of commands/definition for x number of mount points in the nrpe.cfg file.
I was looking for a single command/definition in the nrpe.cfg file for all the mount points on a server.
Regards
Amit
Re: Mount Point Monitoring on the Linux Servers
Posted: Mon Feb 03, 2020 5:13 pm
by benjaminsmith
Hi Amit,
Did you have a chance to take a look at the check_multi plugin?
Re: Mount Point Monitoring on the Linux Servers
Posted: Tue Feb 04, 2020 6:51 am
by amitgupta19
check_multi does not support the Nagios 4.x
Re: Mount Point Monitoring on the Linux Servers
Posted: Tue Feb 04, 2020 6:45 pm
by Box293
Is that just because it says it is a 3.x plugin ? Normally plugins created in older versions will work in the newer versions but I'm sure there are situations when this is not the case.
Re: Mount Point Monitoring on the Linux Servers
Posted: Wed Feb 05, 2020 9:58 am
by amitgupta19
Download URL is not working. Can you check if it is working for you.
www.my-plugin.de/wiki/projects/check_multi/download
Re: Mount Point Monitoring on the Linux Servers
Posted: Wed Feb 05, 2020 5:34 pm
by Box293
Website seems to white for me.
Perhaps you can download the github repo and compile the plugin yourself:
https://github.com/flackem/check_multi