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.
To add to what @tgriep has provided, I did some tests and it appears as though you need at least NSClient 0.4.2.x versions onwards to be able to check mount points.
Once you have the updated version it will be checked it by default:
Command:
check_nrpe -H win2008r2-01 -c CheckDriveSize -a Drive='C:\Mounted Disks\A Mounted Disk'
Output:
OK All 1 drive(s) are ok|'C:\Mounted Disks\A Mounted Disk used'=0.08816GB;14.39765;16.19736;0;17.99706 'C:\Mounted Disks\A Mounted Disk used %'=0%;79;89;0;100
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jasonlehman wrote:Sorry for the delay, been putting out fires.
Here is the output to get the version...
I (0,4,1,105 2014-04-28) seem to be doing fine...
Box293 wrote:To add to what @tgriep has provided, I did some tests and it appears as though you need at least NSClient 0.4.2.x versions onwards to be able to check mount points.
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize
OK All 5 drive(s) are ok|'C:\ used'=37.26652GB;43.99843;49.49823;0;54.99804 'C:\ used %'=67%;79;89;0;100 'E:\ used'=25.4375MB;197.54999;222.24375;0;246.9375 'E:\ used %'=10%;79;89;0;100 'E:\SQL\Logs\ used'=5.08654GB;59.9976;67.4973;0;74.997 'E:\SQL\Logs\ used %'=6%;79;89;0;100 'E:\SQL\TempDatabases\ used'=1.98883GB;27.9976;31.4973;0;34.997 'E:\SQL\TempDatabases\ used %'=5%;79;89;0;100 'E:\SQL\Databases\ used'=74.58734GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases'
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).
So now, I need to figure out how to check each mounted volume listed above; is healthy & how much free space is there.
I'm guessing I'll have to add a command in the commands.cfg
and then add a servce definition in my windows.cfg
That's where I'll need some help, please.
Thanks.
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize
OK All 5 drive(s) are ok|'C:\ used'=37.26652GB;43.99843;49.49823;0;54.99804 'C:\ used %'=67%;79;89;0;100 'E:\ used'=25.4375MB;197.54999;222.24375;0;246.9375 'E:\ used %'=10%;79;89;0;100 'E:\SQL\Logs\ used'=5.08654GB;59.9976;67.4973;0;74.997 'E:\SQL\Logs\ used %'=6%;79;89;0;100 'E:\SQL\TempDatabases\ used'=1.98883GB;27.9976;31.4973;0;34.997 'E:\SQL\TempDatabases\ used %'=5%;79;89;0;100 'E:\SQL\Databases\ used'=74.58734GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases'
Exception processing request: Request contained arguments (not currently allowed, check the allow arguments option).
So now, I need to figure out how to check each mounted volume listed above; is healthy & how much free space is there.
I'm guessing I'll have to add a command in the commands.cfg
and then add a servce definition in my windows.cfg
That's where I'll need some help, please.
Thanks.
How about adding the following somewhere in your nsclient.ini: