You are here

How do I run service check to monitor an opsview slave server.

2 posts / 0 new
Last post
Neil Gealy
ngealy's picture
How do I run service check to monitor an opsview slave server.

The documentation for installing an opsview slave - https://knowledge.opsview.com/v5.0/docs/installing-opsview-monitor-slaves - says not to install the opsview agent.  However, when I try to monitor the slave server I get errors like this "Dependency failure: Opsview Agent is CRITICAL" because there is no opsview agent running on the slave.

How do I monitor the opsview slave server?

 

Neil Gealy
ngealy's picture
Resolved

I troubleshooted and solved the issue as follows:

The check works from the command line as user nagios on the opsview master ("ci" is my opsview master and "slave" is my opsview slave):

    nagios@ci:/usr/local/nagios/libexec$ ./check_nrpe -H 'slave' -C '' -k '' -r '' -y 'ADH-AES256-SHA:ADH-AES128-SHA'

    NRPE v2.14 (OpsviewAgent 5.4.0.171370838; osname=Linux; osvers=4.4.0-93-generic; desc=Ubuntu 16.04.2 LTS)

 

So the check worked from the master, but it turns out that the "slave" was monitoring itself.  You can see that from the "monitored by" line under the "info" tab under "host configuration".  A vaild test of the check would then be to run it on the slave.  When I ran the above check directly on the slave, I got a timeout.

 

I realized then that the hostname "slave" was not resolving properly on the slave server, so I had to modify /etc/hosts so "slave" resolved to localhost.