Problems with Mac OS X Agent

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems with Mac OS X Agent

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jwestlake
Posts: 21
Joined: Wed Oct 17, 2012 12:44 pm

Re: Problems with Mac OS X Agent

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems with Mac OS X Agent

Post 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...
You do not have the required permissions to view the files attached to this post.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jwestlake
Posts: 21
Joined: Wed Oct 17, 2012 12:44 pm

Re: Problems with Mac OS X Agent

Post 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!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problems with Mac OS X Agent

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jwestlake
Posts: 21
Joined: Wed Oct 17, 2012 12:44 pm

Re: Problems with Mac OS X Agent

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

Re: Problems with Mac OS X Agent

Post by lmiltchev »

I'm glad to hear that! :)
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked