Setup Remote Access: Difference between revisions

From MyLVS
Jump to navigation Jump to search
Line 31: Line 31:


==Setup the Windows server with the NSClient (the server part)==
==Setup the Windows server with the NSClient (the server part)==
Get the Windows client here: http://www.nsclient.org/downloads<br>
Get the Windows client here: http://www.nsclient.org/download<br>
*Install the client, the settings are not that important, just remove the password.
[[File:myLVS-NRPEWinSetup.png|320px]]<br><br>
[[File:myLVS-NRPEWinSetup.png|320px]]<br><br>
Edit '''C:\Program Files\NSClient++\nsclient++.ini'''
*Add to allowed hosts
allowed hosts = 127.0.0.1,::1,'''192.168.2.100'''
*SSL options needed for the classic npe client
ssl options = sslv2,sslv3

Revision as of 20:55, 4 July 2015

This is the remote access basic. NSCLIENT is used for the myLVS communication
between the myLVS host (client) and the real server which are required to run
the NSCLIENT server part. For more information about NRPE please see http://www.nsclient.org


Setup myLVS with the NSClient (the client part)

  • On Debian8 run the installation command
root@mylvs01:/# apt-get install nagios-nrpe-plugin -s
  • Check to see if the plugin runs without any error, run:
root@mylvs01:/# /usr/lib/nagios/plugins/check_nrpe

Setup the Linux server with the NSClient (the server part)

  • Install NSClient Server part to the myLVS client
root@myLVS-LinuxClient:~# apt-get install nagios-nrpe-server
  • Add to sudo
nagios ALL=NOPASSWD: /sbin/ipvsadm
nagios ALL=NOPASSWD: /sbin/init

Edit /etc/nagios/nrpe.cfg

  • Set Allowed hosts
allowed_hosts=127.0.0.1 192.168.2.100
  • Set dont blame
dont_blame_nrpe=1
  • Set two new commands, restart web and reboot
command[reset_apache]=/etc/init.d/apache2 restart
command[reboot]=init 6
  • Restart nrpe server
root@myLVS-LinuxClient:~# /etc/init.d/nagios-nrpe-server restart



Setup the Windows server with the NSClient (the server part)

Get the Windows client here: http://www.nsclient.org/download

  • Install the client, the settings are not that important, just remove the password.



Edit C:\Program Files\NSClient++\nsclient++.ini

  • Add to allowed hosts
allowed hosts = 127.0.0.1,::1,192.168.2.100
  • SSL options needed for the classic npe client
ssl options = sslv2,sslv3