Page 1 of 1
check_open_files.pl
Posted: Sun Aug 02, 2020 12:42 pm
by fsodah
How can i use check_open_files.pl on the client since both running nrpe? what should be written the in nrpe config file?
on the client always it gave OK
Code: Select all
root@db2:~# /usr/local/nagios/libexec/check_open_files.pl -w 10 -c 20
OK: 1600 open files (0% of max 1632202)|opened_files=1600;163220;326440
Re: check_open_files.pl
Posted: Mon Aug 03, 2020 10:00 am
by lmiltchev
You could add the following directive in the nrpe.cfg file on the client:
Code: Select all
command[check_open_files]=/usr/local/nagios/libexec/check_open_files.pl $ARG1$
then run check_nrpe on the Nagios XI server as such:
Code: Select all
/usr/local/nagios/libexec/check_nrpe -H <client ip address> -c check_open_files -a '-w 10 -c 20'
Re: check_open_files.pl
Posted: Mon Aug 03, 2020 2:41 pm
by fsodah
Let me try it tomorrow and i ll get back to you asap.
Re: check_open_files.pl
Posted: Mon Aug 03, 2020 4:26 pm
by lmiltchev
Sure, let us know if you have any further questions.
Re: check_open_files.pl
Posted: Tue Aug 04, 2020 9:14 am
by fsodah
it works ... please close the ticket
Re: check_open_files.pl
Posted: Tue Aug 04, 2020 9:21 am
by lmiltchev
I am glad I was able to help!
