Page 2 of 2

Re: NRPE

Posted: Thu May 16, 2013 11:18 am
by abrist
Lets check the permissions:

Code: Select all

ls -la  /usr/local/nagios/libexec/

Re: NRPE

Posted: Thu May 16, 2013 11:30 am
by digitalbennu
ok....So I fixed the permissions on that directory to 755 that seems to have fixed part of the problem with permissions....CPU stats now responds. However Memory usage is still messed up....
Here is what I am getting back:
secure1:libexec admin$ ./check_osx_mem.sh -w 85 -c 95
-bash: ./check_osx_mem.sh: /bin/bash^M: bad interpreter: No such file or directory

Any ideas what might be missing?

Re: NRPE

Posted: Thu May 16, 2013 11:59 am
by lmiltchev
Open the plugin in vi:

Code: Select all

vi vi check_osx_mem.sh
type:

Code: Select all

:set ff=unix
save and exit:

Code: Select all

:wq
Try running your check again.

Re: NRPE

Posted: Thu May 16, 2013 1:38 pm
by digitalbennu
Bingo!!! That got it....

Thanks!!
Dave

Re: NRPE

Posted: Thu May 16, 2013 2:04 pm
by lmiltchev
I'm glad I could help! :) Can we mark this issue as "resolved" or you are still having questions?