Run Check Command fails on Services after upgrade to 2026R1

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
scookpfs
Posts: 14
Joined: Mon Oct 11, 2021 5:06 pm

Run Check Command fails on Services after upgrade to 2026R1

Post 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.
You do not have the required permissions to view the files attached to this post.
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

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

Post 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?
Cheers,
- Cole
scookpfs
Posts: 14
Joined: Mon Oct 11, 2021 5:06 pm

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

Post 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.
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

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

Post 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.
You do not have the required permissions to view the files attached to this post.
Cheers,
- Cole
cdietsch
Posts: 55
Joined: Wed Aug 06, 2025 9:12 am

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

Post 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.
Cheers,
- Cole
scookpfs
Posts: 14
Joined: Mon Oct 11, 2021 5:06 pm

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

Post by scookpfs »

Thanks, that works
Post Reply