Check number of files on a directory

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.
cocoyanouck
Posts: 96
Joined: Fri Apr 08, 2016 3:17 am

Re: Check number of files on a directory

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Check number of files on a directory

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
cocoyanouck
Posts: 96
Joined: Fri Apr 08, 2016 3:17 am

Re: Check number of files on a directory

Post by cocoyanouck »

Ok thank you, I'll try this.
Last edited by cocoyanouck on Tue Jun 06, 2017 1:48 pm, edited 1 time in total.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Check number of files on a directory

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
cocoyanouck
Posts: 96
Joined: Fri Apr 08, 2016 3:17 am

Re: Check number of files on a directory

Post by cocoyanouck »

Yes sorry for the last capture => I wanted to speak about another issue but It was resolved in the meantime.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: Check number of files on a directory

Post by tgriep »

If everything is OK, shall I close and lock the post for you?
Be sure to check out our Knowledgebase for helpful articles and solutions!
cocoyanouck
Posts: 96
Joined: Fri Apr 08, 2016 3:17 am

Re: Check number of files on a directory

Post by cocoyanouck »

Yes you can, thanks a lot for your time and your kindness.
Locked