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.
Please help setting up MacOs Monitoring
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Please help setting up MacOs Monitoring
Can you post the command that is set for check_nrpe
Configure -> CCM -> Commands -> check_nrpe -> Modify
Configure -> CCM -> Commands -> check_nrpe -> Modify
Re: Please help setting up MacOs Monitoring
Hi Scott,
the command being used is
Chris.
the command being used is
for the check memory command, the arguments are as follows$USER1$/check_nrpe -H $HOSTADDRESS$ -t 30 -c $ARG1$ $ARG2$
check_mem
Cheers,-a '-w 80 -c 90'
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
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?
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?
Re: Please help setting up MacOs Monitoring
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.
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
In the nrpe.cfg on the other machine you will have a line
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
Again, restarting nrpe after changes
Code: Select all
allowed_hosts=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=1Re: Please help setting up MacOs Monitoring
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.
Cheers,
Chris.
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.
Thanks again for the help and the service.allowed_hosts=127.0.0.1,xx.xx.xx.xx
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
Excellent.
The space is used on linux servers where you are running xinetd and adding the addresses to the only_from field.
The space is used on linux servers where you are running xinetd and adding the addresses to the only_from field.