Hi,
I configured my noc with 1 master and 2 slave. I have an error in my master
server. When I start the "service icinga2 start" I have this error in TPC
Socket.
 critical/TcpSocket: Invalid socket: Connection refused
[2014-07-10 15:25:49 +0000] critical/ApiListener: Cannot connect to host
'10.26.10.14' on port '5665'
[2014-07-10 15:25:49 +0000] debug/ApiListener: Cannot connect to host
'10.26.10.14' on port '5665'
/root/rpmbuild/BUILD/icinga2-master/lib/base/tcpsocket.cpp(213): Throw in
function void icinga::TcpSocket::Connect(const icinga::String&, const
icinga::String&)
Dynamic exception type:
N5boost16exception_detail10clone_implIN6icinga12socket_errorEEE
std::exception::what: std::exception
[PN6icinga10StackTraceE] =
        (0) libbase.so: void
boost::throw_exception<icinga::socket_error>(icinga::socket_error const&)
(+0x1a4) [0x7fe0c6756704]
        (1) libbase.so: icinga::TcpSocket::Connect(icinga::String const&,
icinga::String const&) (+0x902) [0x7fe0c6763562]
        (2) libremote.so:
icinga::ApiListener::AddConnection(boost::shared_ptr<icinga::Endpoint>
const&) (+0x108) [0x7fe0c4193818]
        (3) libbase.so:
icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&)
(+0x34f) [0x7fe0c676485f]
        (4) libboost_thread-mt.so.5: thread_proxy (+0x77) [0x3e62e0ad47]
        (5) /lib64/libpthread.so.0() [0x3a368079d1]
        (6) libc.so.6: clone (+0x6d) [0x3a364e8b5d]


[PN6icinga12ContextTraceE] =

[PN5boost14errinfo_errno_E] = 111, "Connection refused"
[PN5boost21errinfo_api_function_E] = connect

[2014-07-10 15:25:49 +0000] critical/TcpSocket: Invalid socket: Connection
refused
[2014-07-10 15:25:49 +0000] critical/ApiListener: Cannot connect to host
'10.26.10.28' on port '5665'
[2014-07-10 15:25:49 +0000] debug/ApiListener: Cannot connect to host
'10.26.10.28' on port '5665'
/root/rpmbuild/BUILD/icinga2-master/lib/base/tcpsocket.cpp(213): Throw in
function void icinga::TcpSocket::Connect(const icinga::String&, const
icinga::String&)
Dynamic exception type:
N5boost16exception_detail10clone_implIN6icinga12socket_errorEEE
std::exception::what: std::exception
[PN6icinga10StackTraceE] =
        (0) libbase.so: void
boost::throw_exception<icinga::socket_error>(icinga::socket_error const&)
(+0x1a4) [0x7fe0c6756704]
        (1) libbase.so: icinga::TcpSocket::Connect(icinga::String const&,
icinga::String const&) (+0x902) [0x7fe0c6763562]
        (2) libremote.so:
icinga::ApiListener::AddConnection(boost::shared_ptr<icinga::Endpoint>
const&) (+0x108) [0x7fe0c4193818]
        (3) libbase.so:
icinga::ThreadPool::WorkerThread::ThreadProc(icinga::ThreadPool::Queue&)
(+0x34f) [0x7fe0c676485f]
        (4) libboost_thread-mt.so.5: thread_proxy (+0x77) [0x3e62e0ad47]
        (5) /lib64/libpthread.so.0() [0x3a368079d1]
        (6) libc.so.6: clone (+0x6d) [0x3a364e8b5d]


[PN6icinga12ContextTraceE] =

[PN5boost14errinfo_errno_E] = 111, "Connection refused"
[PN5boost21errinfo_api_function_E] = connect

I have this 3 machine in my segment network. I don't know why my 2 slave
start normally but the master not start. I haven't firewall.
If in my master machine i disable api (command icinga2-disable-feature) the
service start normally.
Any idea?





2014-07-08 17:09 GMT+02:00 Michael Friedrich <michael.friedr...@netways.de>:

>  On 08.07.2014 17:05, Alfonso Pace wrote:
>
> I haven't any firewall and I don't  know why my icinga master don't start 
> although
> the configuration is ok.
> If I go to start icinga in my master: service icinga2 start I have the
> follow.
>
>
> Since you've started the other box in foreground already, do that here too
> please.
>
> # icinga2 -c icinga2.conf -x debug
>
> and post the output.
>
>   Checking configuration: Done
>  Starting Icinga 2: Error starting Icinga. Check
> '/var/log/icinga2/startup.log' for details.
>  If I go to view startup.log I have:
>  tail /var/log/icinga2/startup.log
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 1
> StatusDataWriter(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 2 HostGroup(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 3
> ServiceGroup(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 1 Host(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 10 Service(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 1 User(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 11
> Notification(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 1 UserGroup(s).
> [2014-07-08 15:01:55 +0000] information/ConfigItem: Checked 1
> IcingaApplication(s).
> [2014-07-08 15:01:55 +0000] critical/icinga-app: The daemon could not be
> started. See logfile for details.
>  And if I go to view error.log i have this one...
>  tail /var/log/icinga2/error.log
> * Local state directory: /var
> * Package data directory: /usr/share/icinga2
> * State path: /var/lib/icinga2/icinga2.state
> * PID path: /var/run/icinga2/icinga2.pid
> * Application type: icinga/IcingaApplication
> ***
> Stacktrace:
>
>          (0) /lib64/libc.so.6() [0x3a364329a0]
> icinga2: /usr/include/boost/smart_ptr/shared_ptr.hpp:418: T*
> boost::shared_ptr< <template-parameter-1-1> >::operator->() const [with T =
> icinga::Zone]: Assertion `px != 0' failed.
>
>  How I can found precious information to know where is the error?
> In var/log/message I don't have any information icinga.
>
>
>
>
>
>
>
> 2014-07-08 16:55 GMT+02:00 Michael Friedrich <michael.friedr...@netways.de
> >:
>
>> On 08.07.2014 16:49, Alfonso Pace wrote:
>>
>>> [2014-07-08 14:13:45 +0000] critical/ApiListener: Cannot connect to
>>> host '10.26.10.14' on port '5665'
>>>
>>
>> What's unclear with that? Is there any (icinga2) service listening on
>> that ip address with that port and aren't there firewall policies
>> preventing stuff?
>>
>> --
>> Michael Friedrich, DI (FH)
>> Application Developer
>>
>> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
>> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
>> GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
>> http://www.netways.de | michael.friedr...@netways.de
>>
>> ** Open Source Backup Conference 2014 - September - osbconf.org **
>> ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
>> ** OSMC 2014 - November - netways.de/osmc **
>> ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
>> _______________________________________________
>> icinga-users mailing list
>> icinga-users@lists.icinga.org
>> https://lists.icinga.org/mailman/listinfo/icinga-users
>>
>
>
>
>  --
> --
> ATTENTION: Privacy Policy – D.L.gs 196/2003
> The information contained in this email message are of a private and
> confidential nature and are exclusively addressed to the person indicated
> above. In case you have received this email in error, we comunicate to you
> that by Law, it is forbidden for another person to use, make known,
> distribute or copy  the contents. You are asked to report it immediately,
> replying to the sender and destroying the contents (including any attached
> files) without making a copy or reading the contents. The message and the
> attachments are protected and scanned with an antivirus protection
>
>
> _______________________________________________
> icinga-users mailing 
> listicinga-users@lists.icinga.orghttps://lists.icinga.org/mailman/listinfo/icinga-users
>
>
>
> --
> Michael Friedrich, DI (FH)
> Application Developer
>
> NETWAYS GmbH | Deutschherrnstr. 15-19 | D-90429 Nuernberg
> Tel: +49 911 92885-0 | Fax: +49 911 92885-77
> GF: Julian Hein, Bernd Erk | AG Nuernberg HRB18461
> http://www.netways.de | michael.friedr...@netways.de
>
> ** Open Source Backup Conference 2014 - September - osbconf.org **
> ** Puppet Camp Duesseldorf 2014 - Oktober - netways.de/puppetcamp **
> ** OSMC 2014 - November - netways.de/osmc **
> ** OpenNebula Conf 2014 - Dezember - opennebulaconf.com **
>
> _______________________________________________
> icinga-users mailing list
> icinga-users@lists.icinga.org
> https://lists.icinga.org/mailman/listinfo/icinga-users
>
>


-- 
--
ATTENTION: Privacy Policy – D.L.gs 196/2003
The information contained in this email message are of a private and
confidential nature and are exclusively addressed to the person indicated
above. In case you have received this email in error, we comunicate to you
that by Law, it is forbidden for another person to use, make known,
distribute or copy  the contents. You are asked to report it immediately,
replying to the sender and destroying the contents (including any attached
files) without making a copy or reading the contents. The message and the
attachments are protected and scanned with an antivirus protection
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to