High latency on ajaxhelper.php?cmd=submitcommand after updating to Nagios XI 2024R1.4.1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
igae1
Posts: 55
Joined: Thu May 25, 2017 6:35 am

High latency on ajaxhelper.php?cmd=submitcommand after updating to Nagios XI 2024R1.4.1

Post by igae1 »

Dear Nagios Team,

This week, we upgraded our Nagios XI installation from version 5.8.9 to 2024 R1.4.1.

Since the upgrade, we are experiencing high latency when using the "Force an immediate check" action, as shown in the screenshot below:
submit_command_time.png
If we submit the same command directly through Nagios Core (https://assets.nagios.com/downloads/nag ... and_id=129), it executes instantly. However, when the same command is submitted via the Nagios XI frontend, we have to wait over 30 seconds for it to complete.

Code: Select all

https://my-server/nagiosxi/ajaxhelper.php?cmd=submitcommand&opts=%7B%22cmd%22%3A16%2C%22cmddata%22%3A%7B%22host_name%22%3A%22SRV-TESTLINK%22%2C%22service_name%22%3A%22Disk_C%22%2C%22cmd%22%3A54%2C%22start_time%22%3A1747900310%7D%2C%22cmdtime%22%3A0%2C%22cmdargs%22%3A%22%22%7D&nsp=bb69199cc9048dc0d7503bc04feed14c9fbd999f538683a1f1f883d81f12af37
This delay results in a timeout error in Google Chrome, showing RESULT_CODE_HUNG.

We do not observe any bottlenecks in Apache's server-status. However, we have identified that if we wait more than 30 seconds after loading the service details page, the command is then executed immediately. We have reviewed the browser DevTools but haven't found any obvious reasons for this behavior.

After further investigation, we found that the following iframe included in the service details page is attempting to load external content from https://go.nagios.com/networkanalyzer-component-embed, which is unreachable from our network and times out after ~21 seconds:

Code: Select all

<iframe width="448" height="252" src="https://go.nagios.com/networkanalyzer-component-embed" frameborder="0" allowfullscreen></iframe>
This failed request seems to block the execution of other frontend actions like submitting service checks, until it times out. But after disabling it in Admin / Manage Components (Nagios Network Analyzer Integration / Disable Host/Service Tabs from being shown), nothing got better.

Could you please confirm if this is the intended behavior? And is there a recommended way to disable or defer this iframe so that it does not interfere with command execution?

Looking forward to your help.

Best regards,
You do not have the required permissions to view the files attached to this post.
igae1
Posts: 55
Joined: Thu May 25, 2017 6:35 am

Re: High latency on ajaxhelper.php?cmd=submitcommand after updating to Nagios XI 2024R1.4.1

Post by igae1 »

I have new information.

When I access to a service detail page from Home page of Nagios XI, it begins to load "historytab_content.php" with Initiator "jquery-3.6.0.min.js?1741367335:2
history_tab.png
Onece this "process" is finished, submitcommand can be launch as normally.

Why is this process historytab_content.php is during all this time?

My best regards.
You do not have the required permissions to view the files attached to this post.
Post Reply