View Source

h4. SSH-based monitoring plugins

You may use these packages of compiled plugins for SSH-based monitoring on hosts that you want to monitor with GroundWork. These packages are for generic Linux hosts. Most Linux variants will work. All the required libraries and Perl modules are included.

To set up:
# Download the tar.gz package and the install script for your architecture (choose 32 or 64 bit).
# Copy the package and the script to the / directory on the host you wish to monitor (not the GroundWork server\!)
# As user root (or equivalent) type: {code} chmod +x installplugs32.sh{code} or {code} chmod +x installplugs64.sh{code}
# As user root (or equivalent) type: {code} ./installplugs32.sh nagios {code} or {code} ./installplugs64.sh nagios {code}

Assumptions:
# You may have the user nagios or other created. Script accommodates. Assumes /home is the location.
# You have enough disk space to store the plugins and libraries (about 80 MB)
# Your installed Linux uses bash, and has paths that are compatible with GroundWork.

Considerations:

This package installs all the libraries needed to run the plugins, as well as the plugins themselves. It also installs it's own copy of Perl, so if you add or modify these plugins, keep this in mind. Adding a Perl module to the system Perl, for example, will have no effect on plugins that reference the installation in /usr/local/groundwork.

The installer scripts have been updated to
# test that you supplied a username
# not add the user if it exists
# unpack the tar into the /usr/local/groundwork location
# make a link in the user home directory to the plugins location

The plugins are not current. A future update will include the latest and the version of perl that supports them.

{note:title:Note:}
You can choose a different user name than "nagios" if you set up the GroundWork services to use a different name. The profiles included with GroundWork monitor all use "nagios" by default.
{note}
This is the install script (64-bit version):
{code}
#!/bin/bash
if [ ! $1 ] ; then
echo need username as an argument "./installplugs64.sh nagios" for example
exit
fi
tar zxvf lin64plugs_2.1.tar.gz -C /
if ! id $1 ; then
useradd $1
fi
chown -R $1.$1 /usr/local/groundwork
mv /usr/local/groundwork/nagios.bashrc /home/$1/.bashrc
ln -s /usr/local/groundwork/nagios/libexec /home/$1/libexec{code}

{attachments}