nt_count_files Plugin not working
Posted: Mon Sep 14, 2015 5:14 am
Hi All,
I have recently started to migrate our Nagios core monitoring system to a new server with the latest version. The previous server was setup by my predecessor so I wanted to start again from scratch.
I have everything working, except one of our servers checks for the number of files in a directory. When I have copied the details over this isn't working - and I found it is using a plugin to check for the number of files.
On the server.cfg file, the command it is using is: nt_count_files!C:/\folder/\folder 5 10
On the host machine, there is a C:\nrpe folder, and I have modified the nrpe.cfg file to include the new host IP. I have copied the commands I have found in the commands.cfg file:
define command{
command_name nt_count_files
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckFile3 -a $ARG1$
}
However I am receiving the error: (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory
I have copied the check_nrpe file from the old server to the new, but I still receive the same error.
Please could someone point me in the right direction as I'm unsure what else to try.
Thanks in advance
I have recently started to migrate our Nagios core monitoring system to a new server with the latest version. The previous server was setup by my predecessor so I wanted to start again from scratch.
I have everything working, except one of our servers checks for the number of files in a directory. When I have copied the details over this isn't working - and I found it is using a plugin to check for the number of files.
On the server.cfg file, the command it is using is: nt_count_files!C:/\folder/\folder 5 10
On the host machine, there is a C:\nrpe folder, and I have modified the nrpe.cfg file to include the new host IP. I have copied the commands I have found in the commands.cfg file:
define command{
command_name nt_count_files
command_line $USER1$/check_nrpe -H $HOSTADDRESS$ -c CheckFile3 -a $ARG1$
}
However I am receiving the error: (No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_nrpe, ...) failed. errno is 2: No such file or directory
I have copied the check_nrpe file from the old server to the new, but I still receive the same error.
Please could someone point me in the right direction as I'm unsure what else to try.
Thanks in advance