Page 1 of 1

Run Check Command fails on Services after upgrade to 2026R1

Posted: Wed Nov 12, 2025 7:08 am
by scookpfs
In 2026R1 when trying to run the "Run Check Command" for in the config for Services, we get:-

ERROR: Invalid host address
nagiosxi_error.png
I've been through and checked the Host config, and it's the same thats worked for the last few years, without issue. Host Address is a valid and working IP address

If we do a Host "Run Check Command" it works without issue.

Re: Run Check Command fails on Services after upgrade to 2026R1

Posted: Wed Nov 12, 2025 11:57 am
by cdietsch
Hi @scookpfs,

Are you seeing this error when you are adding a new service check or does this affect existing service checks? Are you seeing this issue for all service checks or just one in particular?

What version of XI did you upgrade from? What is your base OS and version?

Re: Run Check Command fails on Services after upgrade to 2026R1

Posted: Wed Nov 12, 2025 12:43 pm
by scookpfs
It's happening for pre-existing Services which have been happily been running for years, and all of the ones I've checked so far.

I've seen that when pressing the "Run Check Command" button it makes a request along the lines of

Code: Select all

https://<servername>/nagiosxi/includes/components/ccm/command_test.php?cmd=test&token=e3070381614c7340f972afa9f15918ab&mode=test&address=&cid=186&arg1=...<removed>
With the address field empty, but putting 127.0.0.1 in the address field makes it the request complete without error.

Nagios XI 2026R1 (upgraded from 2024r2.2)
RedHat 8.10
PHP 8.4.14
Tried upgrading to Nagios XI 2026R1.0.1, but issue persists.

Re: Run Check Command fails on Services after upgrade to 2026R1

Posted: Thu Nov 13, 2025 12:58 pm
by cdietsch
Hi @scookpfs,

Thanks for the additional information. In the screenshot you included, it looks like the Host Address input is missing from the Run Check Command dialog, which is odd.

run check command.png

I wonder if it's possible that this is a browser or extension causing this behavior? Can you try clearing your browser cache or using a different browser to help rule this out? I tried to recreate your issue with a test RHEL8.10 and XI 2026R1 vm, and I have not been able to replicate this issue yet.

Re: Run Check Command fails on Services after upgrade to 2026R1

Posted: Thu Nov 13, 2025 1:26 pm
by cdietsch
Hello again @scookpfs,

The following information has been relayed to me by our extremely knowledgeable support department. Hopefully this clears up your issue!
The Invalid Host address is a known issue in XI and it is filed as a Bug and hopefully it will be fixed in an up and coming release of XI.

A quick workaround is to edit this file /usr/local/nagiosxi/html/includes/components/ccm/command_test.php

Delete these lines starting at line 132.
// Validate that address is a valid IP address or hostname
if (!filter_var(address, FILTER_VALIDATE_IP) || !filter_var(address, FILTER_VALIDATE_DOMAIN, FILTER_FLAG_HOSTNAME)) {
print "ERROR: Invalid host address";
exit();
}

That should fix the error.

Re: Run Check Command fails on Services after upgrade to 2026R1

Posted: Fri Nov 14, 2025 4:45 am
by scookpfs
Thanks, that works