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.
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases\'
OK All 1 drive(s) are ok|'E:\SQL\Databases\ used'=74.58831GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
Any suggestions on how to create a command and or service for this; so Nagios can start monitoring this?
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases\'
OK All 1 drive(s) are ok|'E:\SQL\Databases\ used'=74.58831GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
Any suggestions on how to create a command and or service for this; so Nagios can start monitoring this?
Feel free to do these however makes sense to you, here's a quick example I have for you though:
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases\'
OK All 1 drive(s) are ok|'E:\SQL\Databases\ used'=74.58831GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
Any suggestions on how to create a command and or service for this; so Nagios can start monitoring this?
Feel free to do these however makes sense to you, here's a quick example I have for you though:
[root@nagios plugins]# ./check_nrpe -H xxx.xxx.xxx.xxx -c CheckDriveSize -a Drive='E:\SQL\Databases\'
OK All 1 drive(s) are ok|'E:\SQL\Databases\ used'=74.58831GB;239.9976;269.9973;0;299.997 'E:\SQL\Databases\ used %'=24%;79;89;0;100
Any suggestions on how to create a command and or service for this; so Nagios can start monitoring this?
Feel free to do these however makes sense to you, here's a quick example I have for you though:
define service {
host_name hostname
service_description Testing NRPE stuff
use generic-service
check_command check_mp!CheckDriveSize!E:\SQL\Databases!!!!!!
check_period 24x7
register 1
}
Mine might look slightly different because I did it on XI , but the same ideas apply.
I put the command & the service in, but I'm getting a critical status message of...
(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory
Could the location of your plugin & my plugin be different?
I copied the exact command_line in as you posted it.
Also, is there a way to alert a warning size & critical size for this check?
Thanks,
Inside of here $USER1$ is pointing at /usr/local/nagios/libexec since it is defined in resource.cfg as pointing at that.
You need to either move check_nrpe or change the command_line part of the command.
Make sense?
Make's perfect sense. I changed the command_line to point to the correct path; which is for me /usr/lib64/nagios/plugins/
I'm not sure why mine is different.
I now need to understand how to put in the correct path to the mount point in the check_command.
Using what was suggested... check_mp!CheckDriveSize!E:\SQL\Databases!!!!!!
I now get this result from Nagios...
Filter processing failed: Error: Failed to get size for: 3: The system cannot find the path specified.
Do I really need 6 exclamation points after my path? I'm not sure why there are so many.
Thanks