2026R1 ERROR: Invalid host address

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Post Reply
CBoekhuis
Posts: 233
Joined: Tue Aug 16, 2011 4:55 am

2026R1 ERROR: Invalid host address

Post by CBoekhuis »

After the upgrade to 2026R1 we encounter the above ERROR: Invalid host address message when running a service check command on the localhost.
The localhost host definition is set to 127.0.0.1

"127.0.0.1 localhost localhost.localdomain localhost4 localhost4.localdomain4"

It looks like the service is nog resolving correctly the "managed host". This works fine with other hosts not beeing localhost.

Image
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: 2026R1 ERROR: Invalid host address

Post by kg2857 »

Set the check to use the address rather than localhost.
I'd also use the hostname rather than localhost.
CBoekhuis
Posts: 233
Joined: Tue Aug 16, 2011 4:55 am

Re: 2026R1 ERROR: Invalid host address

Post by CBoekhuis »

I have also found other service checks that run into the ERROR other then localhost. So it looks like a parsing issue in the GUI part. The checks seem to run ok from CLI.
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: 2026R1 ERROR: Invalid host address

Post by kg2857 »

Set the other checks to use the address rather than the hostname.
CBoekhuis
Posts: 233
Joined: Tue Aug 16, 2011 4:55 am

Re: 2026R1 ERROR: Invalid host address

Post by CBoekhuis »

The localhost definition is set to IP address, In a service definition you have to point to a "nagios" host.
Running the "run check command" from the CCM works fine for the HTTP and PING service. When ran they come up with the 127.0.0.1 field, other checks like the load are running into the ERROR.
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: 2026R1 ERROR: Invalid host address

Post by lgute »

Hi @CBoekhuis,

Thanks for reaching out.

Sounds like the CCM is giving you the correct results, for the service checks using localhost, but that is not what you are seeing on other pages. The image in your first post is not displaying for me, so I can't tell what plugin(s) are erroring or where in the GUI. Are you seeing this on any particular page or dashboard? If you could provide a list of some of the plugins that are erroring, that would be helpful.
Please let us know if you have any other questions or concerns.

-Laura
kg2857
Posts: 490
Joined: Wed Apr 12, 2023 5:48 pm

Re: 2026R1 ERROR: Invalid host address

Post by kg2857 »

You may want to post the text of a failing service and the associated command.
User avatar
lgute
Posts: 411
Joined: Mon Apr 06, 2020 2:49 pm

Re: 2026R1 ERROR: Invalid host address

Post by lgute »

Hi @CBoekhuis,

Our support team tells me this is a known bug. When it is fixed, it will show up in our CHANGELOG as [GL:XI#2160].
Please let us know if you have any other questions or concerns.

-Laura
Post Reply