You are here

Integrations

Unix Agentless

Download version    6.0    5.x

Included in Opsview Monitor 5.x
Included in Opsview Monitor 6.0
check_circle
Opsview Supported

Unix Agentless Opspack

Unix (trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix.

Service Checks

Service Check Description
Load Average Check system load average via SSH
Storage Utilization Check root partition utilization via SSH
System Memory Check system memory utilization via SSH

Unix Agentless Opspack

Unix (trademarked as UNIX) is a family of multitasking, multiuser computer operating systems that derive from the original AT&T Unix.

Service Checks

Service Check Description
Load Average Check system load average via SSH
Storage Utilization Check root partition utilization via SSH
System Memory Check system memory utilization via SSH

Setup and Configuration

To configure and utilize this Opspack, you need to add the 'OS - Unix Agentless' Opspack to the host. The Agentless monitor works by running the plugins on the target machine over SSH. These plugins must first be stored on the target machine.

Step 1: Set up SSH using keyed encryption rather than passwords between the host and target, for the "Nagios" user on the host. (Permissions 700 for "~/.ssh" folder)

Step 2: Copy the plugins check_disk, check_load and check_memory from /usr/local/nagios/libexec on the host machine, to /usr/local/nagios/libexec on the destination machine.

Note - Currently the host template is coded to run these plugins from /usr/local/nagios/libexec on the destination machine. This could be made more flexible by storing the directory in a variable in Opsview Monitor and making all the service checks use this variable.

For a full guide, please read our blog on Using Check_By_SSH Monitoring and feel free to learn more by checking out this relevant article from Tech Republic.

Prerequisities

The following setup steps are to be run on your Opsview Monitor server

Login to your Opsview server as the Opsview user

sudo -iu opsview

Generate the SSH key

ssh-keygen

Note: These install steps assume you are using the default location (/opt/opsview/.ssh/id_dsa). You can enter a passphrase if you want to.

View and copy the contents of this key file:

cat ~/.ssh/id_rsa.pub

Setup Unix Server for Monitoring

The following setup steps are to be run on the Unix server you wish to monitor

Create the Opsview user on your Unix server:

sudo useradd opsview -m -d /opt/opsview

Set the password for the Opsview user:

sudo passwd opsview

Login as the new user:

su - opsview

Navigate to your home directory:

cd ~

Create an SSH directory:

mkdir .ssh

Assign permissions to this directory:

chmod 0700 .ssh

Move to the new directory:

cd .ssh

Create an authorised_keys file:

vi authorized_keys

Paste the contents of the key you generated on your Opsview system into this new file

Assign permissions to this file:

chmod 0644 authorized_keys

Create the plugins directory:

mkdir -p /opt/opsview/monitoringscripts/plugins

Install Perl:

apt-get install perl -y or yum install perl -y

Setup and Configuration

To configure and utilize this Opspack, you need to add the 'OS - Unix Agentless' Opspack to the host

Note: The Agentless Opspack works by running the plugins on the target machine over SSH. The plugins must first be stored on the target machine.

Step 1: On you Opsview Monitor server, copy the plugins to the server you want to monitor

scp /opt/opsview/monitoringscripts/plugins/check_disk opsview@IPADDRESS:/opt/opsview/monitoringscripts/plugins
scp /opt/opsview/monitoringscripts/plugins/check_load opsview@IPADDRESS:/opt/opsview/monitoringscripts/plugins
scp /opt/opsview/monitoringscripts/plugins/check_memory opsview@IPADDRESS:/opt/opsview/monitoringscripts/plugins

Step 2: Add the host template

Add Unix Agentless Host

Step 3: Reload and view the service checks

View Unix Agentless Service Checks

v1.0-opsview-5

ODI-604 Release Opspacks to GitHub

Initial upload of existing Opspacks to GitHub

v2.0-opsview-6

ODI-1154 Release Opspacks for Opsview Monitor 6.0

Initial release of Opspack to work with Opsview Monitor 6.0