Thanks for reporting what you have found. I am going to dig into some of these to help get the kinks worked out.
I looked at the memory issue and I now know why it does this on some systems and I'll let you know when I have a fixed plugin.
Problems with Mac OS X Agent
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problems with Mac OS X Agent
Excellent! If there's anything I can do to help, let me know. I really want to get this going... my boss is impressed by what I've shown him thusfar. Thanks!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problems with Mac OS X Agent
Ok, I think I have the memory item fixed.
I have attached a new check_osx_mem.sh that can be unzipped and placed in /usr/local/nagios/libexec on the Mac
Let me know how this comes out.
The others are likely going to take a fair bit more time...
I have attached a new check_osx_mem.sh that can be unzipped and placed in /usr/local/nagios/libexec on the Mac
Let me know how this comes out.
The others are likely going to take a fair bit more time...
You do not have the required permissions to view the files attached to this post.
Re: Problems with Mac OS X Agent
Hey there,
Just got a chance to get back in there and look around. I replaced the check_osx_mem file with the new one you provided and now I get "Unable to read output" and it tells me the service is flapping. I killed nrpe and relaunched it just to be safe.
Thanks!
Just got a chance to get back in there and look around. I replaced the check_osx_mem file with the new one you provided and now I get "Unable to read output" and it tells me the service is flapping. I killed nrpe and relaunched it just to be safe.
Thanks!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Problems with Mac OS X Agent
That is strange, can you run it from the command line on the Mac
Code: Select all
/usr/local/nagios/libexec/check_osx_mem.shRe: Problems with Mac OS X Agent
A-ha! Running from the command line gave an error:
Looks like it was saved w/ Windows line breaks. Some de-wonkification (it's a technical term lol) in vi and all seems to be well:/bin/bash^M: bad interpreter: No such file or directory
Looks good now... thanks!OK: Memory Usage - 20.35% RAM, 6.25% Swap | phyUsed=20.35%;;;0;100 swpUsed=6.25%;;;0;100
Re: Problems with Mac OS X Agent
I'm glad to hear that! 
Be sure to check out our Knowledgebase for helpful articles and solutions!