NRPE

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: NRPE

Post by abrist »

Lets check the permissions:

Code: Select all

ls -la  /usr/local/nagios/libexec/
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
digitalbennu
Posts: 20
Joined: Fri Apr 19, 2013 10:46 am

Re: NRPE

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
digitalbennu
Posts: 20
Joined: Fri Apr 19, 2013 10:46 am

Re: NRPE

Post by digitalbennu »

Bingo!!! That got it....

Thanks!!
Dave
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: NRPE

Post by lmiltchev »

I'm glad I could help! :) Can we mark this issue as "resolved" or you are still having questions?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked