Hello all,
I've some trouble between Thruk and my remote peer ( Nagios and
Omd ) , when I start thrurk I have this answer "Starting thruk....
(13851) OK" and this in my error.log:
[2012/06/14 18:38:29][srv-thruk][ERROR][Thruk.Action.AddDefaults] data
source error: failed to open socket /var/nagios/rw/live: No such file
or directory at /usr/lib/thruk/perl5/Monitoring/Livestatus/Class/Base/
Table.pm line 189
at /usr/lib/thruk/perl5/Monitoring/Livestatus/Class/Base/Table.pm
line 189
[2012/06/14 18:38:29][srv-thruk][ERROR][Thruk.Controller.error] No
Backend available
[2012/06/14 18:38:29][srv-thruk][ERROR][Thruk.Controller.error] on
page:
http://10.101.0.124/thruk/cgi-bin/status.cgi?hostgroup=all&style=overview&_=1339746868496
I haven't change the thruk.conf, however I have add my remote peer in
thruk_local.conf:
<peer>
name = srv-nagios
type = livestatus
<options>
peer =
10.101.0.27:6557
</options>
</peer>
<peer>
name = srv-nagios-omd
type = livestatus
<options>
peer =
10.101.0.190:6557
</options>
</peer>
My Thruk server is in the same lan than my remote peer.
I will let my livestatus cfg too, if that can help you to find my
mistake.
#srv-
nagios
service livestatus
{
type = UNLISTED
port = 6557
socket_type = stream
protocol = tcp
wait = no
cps = 100 3
instances = 500
per_source = 250
flags = NODELAY
user = nagios
server = /usr/bin/unixcat
server_args = /var/lib/nagios3/rw/live
only_from = 127.0.0.1
disable = no
}
#srv-nagios-
omd
#site.conf
service
livestatus
CONFIG_LIVESTATUS_TCP='on'
CONFIG_LIVESTATUS_TCP_PORT='6557'
{
type = UNLISTED
socket_type = stream
protocol = tcp
wait = no
cps = 100 3
instances = 500
per_source = 250
flags = NODELAY
only_from = 127.0.0.1 10.0.20.1 10.0.20.2
disable = no
port = 6557
user = mysite
server = /omd/sites/mysite/bin/unixcat
server_args = /omd/sites/mysite/tmp/run/live
}
Thank you !