You are here

Unix Agentless Monitoring

Requires Opsview Cloud or Opsview Monitor 6
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

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:

For operating systems that support APT:

apt-get install perl -y

For operating systems that support YUM:

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 the OS - Unix Agentless Host Template to your Opsview Monitor host.

For more information, refer to Opsview Knowledge Center - Adding Host Templates to Hosts.

Step 3: Apply changes and the system will now be monitored

Unix Agentless Service Checks