In 2026R1 when trying to run the "Run Check Command" for in the config for Services, we get:-
ERROR: Invalid host address
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.
Run Check Command fails on Services after upgrade to 2026R1
Run Check Command fails on Services after upgrade to 2026R1
You do not have the required permissions to view the files attached to this post.
Re: Run Check Command fails on Services after upgrade to 2026R1
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?
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
- Cole
Re: Run Check Command fails on Services after upgrade to 2026R1
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
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.
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>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
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.
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.
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.
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
- Cole
Re: Run Check Command fails on Services after upgrade to 2026R1
Hello again @scookpfs,
The following information has been relayed to me by our extremely knowledgeable support department. Hopefully this clears up your issue!
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
- Cole
Re: Run Check Command fails on Services after upgrade to 2026R1
Thanks, that works