Issues configuring thruk
Posted: Wed May 17, 2017 2:36 am
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
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