Linux
Prerequisites
A valid C compiler.
SSH access to the machine.
Nagios-plugin tar (see Nagios Server Installation on where to get the plugin).
Installing the Nagios Plugins (Tarball is on your Nagios Server)
- Untar nagios-plugins.
- Run the configure script "./configure".
- Run "make".
- Run "make install".
Create a nagios user (and give ssh access)
- Type "useradd -m -d /home/nagios -s /bin/bash nagios".
- Type "passwd nagios" and give the nagios user a password
- Create a ".ssh" directory in the nagios user's home directory.
- Copy the public key into the .ssh directory.
- Change the owner of the nagios home directory and all it's subdirectories to nagios "chown -R nagios ~nagios".
- Change the owner of /usr/local/nagios to nagios "chown -R nagios /usr/local/nagios".
- Attempt to connect to the new client using the nagios user on server.
Note: Run "ssh -v" if you cannot seem to connect to see if the issue is key or firewall related.
Configure the host
- See the "Configuring a Remote Host" section in the see Nagios Server Installation document.
Windows
Prerequisites
OpenSSH portable for windows (3.81) openssh.zip
Installing SSH
- Create a nagios user in Windows.
Within the openssh.zip there is a directory called "home" and within it contains nagios' home directory as well as nagios' public key.
- Copy "home" to the <OpenSSH install dir> directory.
- Follow the instructions on how to install OpenSSH for Windows.
- Attempt to connect to the new client using the nagios user on the nagios server.
Note: Run "ssh -v" if you cannot seem to connect to see if the issue is key or firewall related.
Installing Nagios Plugins
Within the openssh.zip there is a check_disk.exe and a few dll's.
- Copy check_disk.exe to the <OpenSSH install dir>/bin directory.
- Copy cygwin1.dll to the <OpenSSH install dir>/bin directory.
Note: Stop OpenSSH if you cannot replace this file.