Page 2 of 2
Re: Problems with Mac OS X Agent
Posted: Mon Dec 10, 2012 3:55 pm
by scottwilkerson
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.
Re: Problems with Mac OS X Agent
Posted: Mon Dec 10, 2012 4:02 pm
by jwestlake
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!
Re: Problems with Mac OS X Agent
Posted: Mon Dec 10, 2012 4:09 pm
by scottwilkerson
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...
Re: Problems with Mac OS X Agent
Posted: Wed Dec 12, 2012 11:01 am
by jwestlake
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!
Re: Problems with Mac OS X Agent
Posted: Wed Dec 12, 2012 11:46 am
by scottwilkerson
That is strange, can you run it from the command line on the Mac
Code: Select all
/usr/local/nagios/libexec/check_osx_mem.sh
Re: Problems with Mac OS X Agent
Posted: Wed Dec 12, 2012 12:10 pm
by jwestlake
A-ha! Running from the command line gave an error:
/bin/bash^M: bad interpreter: No such file or directory
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:
OK: Memory Usage - 20.35% RAM, 6.25% Swap | phyUsed=20.35%;;;0;100 swpUsed=6.25%;;;0;100
Looks good now... thanks!
Re: Problems with Mac OS X Agent
Posted: Wed Dec 12, 2012 12:20 pm
by lmiltchev
I'm glad to hear that!
