Page 3 of 3

Re: Check number of files on a directory

Posted: Wed May 31, 2017 1:53 am
by cocoyanouck
Unfortunately no :

Code: Select all

root@nagios-debian:/home/nagios/nrpe-nrpe-3.1.0# /usr/local/nagios/libexec/check_nrpe -H 10.20.2.12
Erreur de segmentation
root@nagios-debian:/home/nagios/nrpe-nrpe-3.1.0# /usr/local/nagios/libexec/check_nrpe -H 10.20.2.34 -c check_files -a path='D:\\WSUS'
Erreur de segmentation

Re: Check number of files on a directory

Posted: Wed May 31, 2017 9:47 am
by tgriep
There has to be a compatibility issue with one of the libraries or development packages on your system.
One thing you can try is to install the precompiled check_nrpe plugin on your system.
It is called nagios-nrpe-plugin. See if that one works for you.
You also may want to post the issue you are having at the NRPE github site at the link below so the developer can look in to the issue and see if it can be fixed.
https://github.com/NagiosEnterprises/nrpe/issues

Re: Check number of files on a directory

Posted: Tue Jun 06, 2017 2:39 am
by cocoyanouck
Ok thank you, I'll try this.

Re: Check number of files on a directory

Posted: Tue Jun 06, 2017 10:51 am
by tgriep
The last screen capture is from a different server, are the 2 servers in the examples below working?

Code: Select all

/usr/local/nagios/libexec/check_nrpe -H 10.20.2.12
/usr/local/nagios/libexec/check_nrpe -H 10.20.2.34 -c check_files -a path='D:\\WSUS'
Did you install the pre-compiled version of the check_nrpe command?

Re: Check number of files on a directory

Posted: Tue Jun 06, 2017 1:48 pm
by cocoyanouck
Yes sorry for the last capture => I wanted to speak about another issue but It was resolved in the meantime.

Re: Check number of files on a directory

Posted: Tue Jun 06, 2017 1:53 pm
by tgriep
If everything is OK, shall I close and lock the post for you?

Re: Check number of files on a directory

Posted: Tue Jun 06, 2017 4:43 pm
by cocoyanouck
Yes you can, thanks a lot for your time and your kindness.