Hello, as follow:

master ip: 172.18.30.31
slave ip: 172.18.30.32
server are in test on a single vmware esxi server

[r...@opsview-slave ~]# cat /usr/local/nagios/etc/opsview-slave.conf
MASTER="172.18.18.31"
SLAVE_PORT=25801


[r...@opsview-master etc]# cat /usr/local/nagios/etc/opsview.conf
# This file holds local changes to Opsview parameters. This file will not be
# overwritten on an upgrade. If there are any parameters from opsview.defaults
# that want to be overwritten, copy here and change

# DB for Opsview
$dbuser = "root";
$dbpasswd = "<snip>";
$db = "opsview";
$dbhost = "localhost";
$dbi = "dbi:mysql";

# DB information for Runtime
$runtime_dbuser = "root";
$runtime_dbpasswd = "<snip>";
$runtime_db = "runtime";
$runtime_dbhost = "localhost";
$runtime_dbi = "dbi:mysql";

# ODW db information for datawarehousing
$odw_dbuser = "root";
$odw_dbpasswd = "<snip>";
$odw_db = "odw";
$odw_dbhost = "localhost";
$odw_dbi = "dbi:mysql";

# Reports database
$reports_dbuser = "root";
$reports_dbpasswd = "<snip>";
$reports_db = "reports";
$reports_dbhost = "localhost";
$reports_dbi = "dbi:mysql";

# Reverse SSH tunnel - Simone
$slave_initiated = 1;
$slave_base_port = 25800;

# This is the shared secret that the auth ticket system will use for 
authentication
$authtkt_shared_secret = "A9<snip>81";

1;
[r...@opsview-master etc]#

on slave, as nagios user, still in execution:

[nag...@opsview-slave ~]$ ssh -N -R 25801:127.0.0.1:22 172.18.30.31


one note: trying as root opsview-slave test:

[r...@opsview-slave ~]# /etc/init.d/opsview-slave test
ssh: connect to host 172.18.18.31 port 22: Connection timed out
-this after a while waiting.

Thanks for help!

Simon

Mark Maas ha scritto in data 09/03/2010 13.30:
Can we see the content of opsview.conf on the master and the
opsview-slave.conf of the slave?

Think it's in /usr/local/nagios/etc/ somewhere.

Thanks,
----- Original Message -----
From: "Simone Felici" <[email protected]>
To: "Opsview Users" <[email protected]>
Sent: Tuesday, March 9, 2010 8:51:37 AM
Subject: [opsview-users] Problems after setting up reverse tunnel

Hello,

I've followed the instructions on setting up reverse tunnel between
slave and master OPSView servers, but now the server
is isolated and there is still the following problem:

SLAVE CRITICAL - NSCA problem - status code: 2 - restarting tunnel

Between slave<->master, if I'm logged in as "nagios" I can connect in
SSH from server to server without password and in
slave the command still hangs, as it should.

[nag...@opsview-slave ~]$ ssh -N -R 25801:127.0.0.1:22 172.18.30.31

ssh sessions between master/slave are set-up correctly:

tcp 0 1 172.18.30.32:43144 172.18.18.31:22 SYN_SENT 16266/ssh on (14.64/3/0)
tcp 0 0 172.18.30.32:50710 172.18.30.31:22 ESTABLISHED 26965/ssh keepalive
(4179.39/0/0)

Master .31, slave .32.

All hosts monitored by the slave are in stale. Befor setting up reverse
tunnel all was ok.
What could I check?

Thank's

Simon
_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users



_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

_______________________________________________
Opsview-users mailing list
[email protected]
http://lists.opsview.org/lists/listinfo/opsview-users

Reply via email to