bpi and memcached
bpi and memcached
hi ,
when I enable memcached in nagiosxi (config.inc.php) :
$cfg['memcached_enable'] = true; // should we use memcached or not?
but bpi (Business Process Intelligence) don't work !
why ?
because BPI XML Cache?
how to fix ?
when I enable memcached in nagiosxi (config.inc.php) :
$cfg['memcached_enable'] = true; // should we use memcached or not?
but bpi (Business Process Intelligence) don't work !
why ?
because BPI XML Cache?
how to fix ?
Re: bpi and memcached
Enabling mamcached in Nagios XI may have nothing to do with your BPI issues...
How did you enable memcached in XI? Setting the "$cfg['memcached_enable'] = true;" in the config.inc.php is not enough. Did you follow all of the steps, outlined in our official document on enabling memcached support?
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Can you describe in details, when is the issue that you are having with BPI? Do you see any errors in the web UI or in the bpi.log? Show us a screenshot of the error that you are getting. Also, run the following command and show the output:
How did you enable memcached in XI? Setting the "$cfg['memcached_enable'] = true;" in the config.inc.php is not enough. Did you follow all of the steps, outlined in our official document on enabling memcached support?
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Can you describe in details, when is the issue that you are having with BPI? Do you see any errors in the web UI or in the bpi.log? Show us a screenshot of the error that you are getting. Also, run the following command and show the output:
Code: Select all
tail -100 /usr/local/nagiosxi/var/components/bpi.logBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: bpi and memcached
tail -100 /usr/local/nagiosxi/var/components/bpi.loglmiltchev wrote:Enabling mamcached in Nagios XI may have nothing to do with your BPI issues...
How did you enable memcached in XI? Setting the "$cfg['memcached_enable'] = true;" in the config.inc.php is not enough. Did you follow all of the steps, outlined in our official document on enabling memcached support?
https://assets.nagios.com/downloads/nag ... ios_XI.pdf
Can you describe in details, when is the issue that you are having with BPI? Do you see any errors in the web UI or in the bpi.log? Show us a screenshot of the error that you are getting. Also, run the following command and show the output:
Code: Select all
tail -100 /usr/local/nagiosxi/var/components/bpi.log
only show
BEGIN BPI LOG 1525423572
and I follow all of the steps.
I guess maybe because we have 3W monitor Entity .
Re: bpi and memcached
Can you describe in details, when is the issue that you are having with BPI? Do you see any errors in the web UI? Show us a screenshot of the error that you are getting.
Also, can you elaborate on the statement below?
Also, can you elaborate on the statement below?
What does it mean?I guess maybe because we have 3W monitor Entity .
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: bpi and memcached
lmiltchev wrote:Can you describe in details, when is the issue that you are having with BPI? Do you see any errors in the web UI? Show us a screenshot of the error that you are getting.
Also, can you elaborate on the statement below?What does it mean?I guess maybe because we have 3W monitor Entity .
You do not have the required permissions to view the files attached to this post.
Re: bpi and memcached
hi @lmiltchev,
we have two server install nagiosxi , one monitor a little servers and services . and it enable memcached support , and bpi function work fine .
the other monitor monitor a lot of servers and services ( please look at attachment ), and when it enable memcache support, and bpi function do not work fine :
I visit https://nagiosxihost/nagiosxi/includes/ ... /index.php , but it don't show the bpi group status .
and use check_bpi.php check . it will type : (Return code of 255 is out of bounds : (No output on stdout) stderr: No entry for terminal type "unknown":))
and use memcache-tool check the memcached is ok !
[root@sj libexec]# memcached-tool 127.0.0.1 display
# Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM
14 1.8K 82817s 1 14 no 0 0 0
15 2.3K 82823s 1 17 no 0 0 0
16 2.8K 82822s 1 52 no 0 0 0
17 3.5K 82822s 1 33 no 0 0 0
18 4.4K 82816s 1 4 no 0 0 0
19 5.5K 82817s 1 1 no 0 0 0
20 6.9K 82817s 1 2 no 0 0 0
21 8.7K 82823s 1 3 no 0 0 0
22 10.8K 82822s 1 9 no 0 0 0
23 13.6K 82815s 1 3 no 0 0 0
24 16.9K 82831s 1 2 no 0 0 0
27 33.1K 82816s 1 2 no 0 0 0
28 41.4K 82824s 1 2 no 0 0 0
30 64.7K 82808s 1 1 no 0 0 0
34 157.9K 82747s 1 1 no 0 0 0
[root@sj libexec]# memcached-tool 127.0.0.1 stats
#127.0.0.1:11211 Field Value
accepting_conns 1
auth_cmds 0
auth_errors 0
bytes 837761
bytes_read 47598736
bytes_written 13526558
cas_badval 0
cas_hits 0
cas_misses 0
cmd_flush 0
cmd_get 4007
cmd_set 908
conn_yields 0
connection_structures 27
curr_connections 26
curr_items 143
decr_hits 0
decr_misses 0
delete_hits 0
delete_misses 0
evictions 0
get_hits 3136
get_misses 871
incr_hits 0
incr_misses 0
limit_maxbytes 67108864
listen_disabled_num 0
pid 24793
pointer_size 64
rusage_system 1.019844
rusage_user 1.690742
threads 4
time 1525939060
total_connections 55
total_items 908
uptime 82836
version 1.4.4
we have two server install nagiosxi , one monitor a little servers and services . and it enable memcached support , and bpi function work fine .
the other monitor monitor a lot of servers and services ( please look at attachment ), and when it enable memcache support, and bpi function do not work fine :
I visit https://nagiosxihost/nagiosxi/includes/ ... /index.php , but it don't show the bpi group status .
and use check_bpi.php check . it will type : (Return code of 255 is out of bounds : (No output on stdout) stderr: No entry for terminal type "unknown":))
and use memcache-tool check the memcached is ok !
[root@sj libexec]# memcached-tool 127.0.0.1 display
# Item_Size Max_age Pages Count Full? Evicted Evict_Time OOM
14 1.8K 82817s 1 14 no 0 0 0
15 2.3K 82823s 1 17 no 0 0 0
16 2.8K 82822s 1 52 no 0 0 0
17 3.5K 82822s 1 33 no 0 0 0
18 4.4K 82816s 1 4 no 0 0 0
19 5.5K 82817s 1 1 no 0 0 0
20 6.9K 82817s 1 2 no 0 0 0
21 8.7K 82823s 1 3 no 0 0 0
22 10.8K 82822s 1 9 no 0 0 0
23 13.6K 82815s 1 3 no 0 0 0
24 16.9K 82831s 1 2 no 0 0 0
27 33.1K 82816s 1 2 no 0 0 0
28 41.4K 82824s 1 2 no 0 0 0
30 64.7K 82808s 1 1 no 0 0 0
34 157.9K 82747s 1 1 no 0 0 0
[root@sj libexec]# memcached-tool 127.0.0.1 stats
#127.0.0.1:11211 Field Value
accepting_conns 1
auth_cmds 0
auth_errors 0
bytes 837761
bytes_read 47598736
bytes_written 13526558
cas_badval 0
cas_hits 0
cas_misses 0
cmd_flush 0
cmd_get 4007
cmd_set 908
conn_yields 0
connection_structures 27
curr_connections 26
curr_items 143
decr_hits 0
decr_misses 0
delete_hits 0
delete_misses 0
evictions 0
get_hits 3136
get_misses 871
incr_hits 0
incr_misses 0
limit_maxbytes 67108864
listen_disabled_num 0
pid 24793
pointer_size 64
rusage_system 1.019844
rusage_user 1.690742
threads 4
time 1525939060
total_connections 55
total_items 908
uptime 82836
version 1.4.4
Re: bpi and memcached
We tested BPI and memcached on a large install with a similar number of host/service checks, but we were not able to recreate the issue. We can see the BPI groups in the web UI just fine.
Can you sync the hostgroups and servicegroups from the command line to see if this is going to fix your issue?
Run the following commands and show the output:
What do you see in the web UI - blank page, an error, etc.? Can you show us a screenshot of the "Business Process Intelligence" page?I visit https://nagiosxihost/nagiosxi/includes/ ... /index.php , but it don't show the bpi group status .
Can you sync the hostgroups and servicegroups from the command line to see if this is going to fix your issue?
Run the following commands and show the output:
Code: Select all
php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=synchostgroups
php /usr/local/nagiosxi/html/includes/components/nagiosbpi/api_tool.php --cmd=syncservicegroupsBe sure to check out our Knowledgebase for helpful articles and solutions!
Re: bpi and memcached
hi @lmiltchev,
please look at the picture , thanks .
please look at the picture , thanks .
You do not have the required permissions to view the files attached to this post.
Re: bpi and memcached
During our tests we found out that it takes a very long time for the BPI page to load in a large environment. Looking at your second screenshot, it's seems that the BPI page may be timing out for you.
If you haven't increased resource limits in the /etc/php.ini file, I would recommend doing so. Open the file in a text editor, and set:
Also, add the following line to the bottom of the /etc/httpd/conf/httpd.conf file:
Restart apache:
Check to see if the page would load now.
If this is not helping, I would recommend opening a support ticket via our support center here:
https://support.nagios.com/tickets/
We may need to schedule a remote session to further troubleshoot the issue. Thank you!
If you haven't increased resource limits in the /etc/php.ini file, I would recommend doing so. Open the file in a text editor, and set:
Code: Select all
max_execution_time = 120
max_input_time = 240
memory_limit = 1024M
max_input_vars=100000Code: Select all
LimitRequestLine 100000Code: Select all
service httpd restartIf this is not helping, I would recommend opening a support ticket via our support center here:
https://support.nagios.com/tickets/
We may need to schedule a remote session to further troubleshoot the issue. Thank you!
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: bpi and memcached
it was fixed !!
thank you !
thank you !