Please help setting up MacOs Monitoring

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Please help setting up MacOs Monitoring

Post by stebbo »

Hi All,

I'm gradually setting up the monitoring on my network. I'm trying to add some MacOS 10.7 hosts to my monitoring. I've managed to download and compile the monitoring agent, but can't connect.

When I try check_nrpe -H xx.xx.xx.xx from my nagios installation machine, i get the error message "Could not complete SSL handshake". I've checked that nrpe is running on the Mac server, and when I run that same command with -H localhost on the Mac Server it replies with a version number.

What should I test next? This is running internally on my network so there's no firewalls or routers in the way, and as near as I can tell there's no firewall running on the Mac Server.

Many thanks,
Chris.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Please help setting up MacOs Monitoring

Post by scottwilkerson »

Can you post the command that is set for check_nrpe

Configure -> CCM -> Commands -> check_nrpe -> Modify
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Please help setting up MacOs Monitoring

Post by stebbo »

Hi Scott,

the command being used is
$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
for the check memory command, the arguments are as follows
check_mem
-a '-w 80 -c 90'
Cheers,
Chris.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Please help setting up MacOs Monitoring

Post by slansing »

Hello,

Okay so, when you run ./check_nrpe -H <Mac.IP.Address.Here> it returns the NRPE agent version, and you have completely configured the nrpe.cfg "If using xinetd.d, edit /etc/xinetd.d/nrpe." Have you attempted any other checks against the Mac system? What OS is the Mac running?
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Please help setting up MacOs Monitoring

Post by stebbo »

Hi Slansing,

if I use the check_nrpe command on the actual Mac that I'm trying to monitor, I get the version number returned.

However, if I use the check_nrpe on another host in the network (on the nagios machine) I get the error "Could not complete SSL handshake".

I'm not using xinetd.d so can't modify that file.

I am running MacOS 10.7.4 on the mac server.

Cheers,
Chris.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Please help setting up MacOs Monitoring

Post by scottwilkerson »

In the nrpe.cfg on the other machine you will have a line

Code: Select all

allowed_hosts=
Add the IP of your Nagios XI server in there and restart NRPE.

Also, if you are passing arguments and you did compile it with you need to change nrpe.cfg dont_blame_nrpe to

Code: Select all

dont_blame_nrpe=1
Again, restarting nrpe after changes
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: Please help setting up MacOs Monitoring

Post by stebbo »

Hi Scott,

thanks for the info. The key was the allowed_hosts setting. I had added the nagios server to this line, but had followed instructions I'd read and used a space rather than a comma. I now have the following and it's working fine.
allowed_hosts=127.0.0.1,xx.xx.xx.xx
Thanks again for the help and the service.

Cheers,
Chris.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Please help setting up MacOs Monitoring

Post by scottwilkerson »

Excellent.

The space is used on linux servers where you are running xinetd and adding the addresses to the only_from field.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked