Hi Team,
We have two nagios instances running in two different servers one is 3.2.0 and other one is 4.0.2 , so we planning to use thruk to have single dashboard . But facing some challenges to achieve this.
Installed thruk successfully, but the challenges are
Installed mk-livestatus-1.2.6p16 (tried with lower version mk-livestatus-1.2.0p4 for the nagios running with 3.2.0) , and livestatus-master in the both the nagios server , added "broker_module=/usr/local/lib/mk-livestatus/livestatus.o /usr/local/nagios/var/rw/live" and also "enable_environment_macros=0"
1) Nagios running with 3.2.0 : upon after restarting the nagios server r, getting the below error
" Error: Could not load module '/usr/local/lib/mk-livestatus/livestatus.o' -> /usr/local/nagios/var/spool/checkresults/nebmodZP1TQg: undefined symbol: num_objects"
i tried moving the files /usr/local/nagios/var/spool/checkresults/nebmod* , but still those are getting create when the restart happens. and the "/usr/local/nagios/var/rw/live" this file is not getting create. Not sure what to do for get the livestatus UP and running.
2) Nagios running with 4.0.2 : here the livestatus is loaded, so added this server in thruk, but when i am clicking the "Hosts" and "Services" tab in the Current Status in Thruk, i am getting the error like below. But "Host Groups" and "Service Groups" are showing the host details in the thruk UI.
UI : saying "No Backend available" and the Details "name: ERROR: The request contains an invalid header. (nagios server IP:6557)"
thruk.log :
[2017/05/17 00:29:33][hostname][ERROR][Thruk] Error in: /thruk/cgi-bin/status.cgi
[2017/05/17 00:29:33][hostname][ERROR][Thruk] The request contains an invalid header. at /usr/share/thruk/lib/Monitoring/Livestatus/Class/Lite.pm line 378
at /usr/lib64/thruk/perl5/Plack/Util.pm line 142
eval {...} called at /usr/lib64/thruk/perl5/Plack/Util.pm line 142
Plack::Util::run_app('CODE(0x2f7b1b8)', 'HASH(0x4ca6470)') called at /usr/lib64/thruk/perl5/Plack/Handler/FCGI.pm line 143
Plack::Handler::FCGI::run('Plack::Handler::FCGI=HASH(0x255dd48)', 'CODE(0x2f7b1b8)') called at /usr/share/thruk/script/thruk_fastcgi.pl line 24
[2017/05/17 00:29:33][hostname][ERROR][Thruk] No Backend available
[2017/05/17 00:29:33][hostname][ERROR][Thruk] on page: http://hostname/thruk/cgi-bin/status.cg ... hostdetail
[2017/05/17 00:29:33][hostname][ERROR][Thruk] SV2: ERROR: The request contains an invalid header. (nagios server IP:6557)
and in livestatus.log
2017-05-17 00:32:29 error: Table 'hosts' has no column 'obsess_over_host'
2017-05-17 00:32:32 error: Table 'services' has no column 'obsess_over_service'
Can someone please help , what was the issue here and what could be the solutions for this.
Your help is much appreciated
Issues configuring thruk
Issues configuring thruk
Last edited by dwhitfield on Mon Jun 05, 2017 8:53 am, edited 1 time in total.
Reason: marking with green check mark
Reason: marking with green check mark
Re: Issues configuring thruk
You'll need to reach out to the Thruck and/or Livestatus authors as neither of those were written or are maintained/supported by Nagios.
Former Nagios employee
Re: Issues configuring thruk
Hi tmcdonals,
thanks for the reply, yeah thats true, we need to reach Thruk and livestatus for that. But as a hope, if someone had the same issue and rectified since it is something related to Nagios jut posted it.
thanks for the reply, yeah thats true, we need to reach Thruk and livestatus for that. But as a hope, if someone had the same issue and rectified since it is something related to Nagios jut posted it.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Issues configuring thruk
You could just use distributed monitoring instead of thruk: https://assets.nagios.com/downloads/gen ... utions.pdf
There are some references to XI in that document, but you could also do it with a complete Core setup.
There are some references to XI in that document, but you could also do it with a complete Core setup.
Re: Issues configuring thruk
Hi dwhitfield,
Thanks for the suggestion, appreciate it. Will check and revert. Thanks again.
Thanks for the suggestion, appreciate it. Will check and revert. Thanks again.
-
- Former Nagios Staff
- Posts: 4583
- Joined: Wed Sep 21, 2016 10:29 am
- Location: NoLo, Minneapolis, MN
- Contact:
Re: Issues configuring thruk
Let us know if you have any questions!
Re: Issues configuring thruk
Sorry for the late reply.
If someone facing the same error. Fix is here https://github.com/sni/Thruk/issues/671 .
You can close this thread.
Thanks.
If someone facing the same error. Fix is here https://github.com/sni/Thruk/issues/671 .
You can close this thread.
Thanks.