Page 1 of 1

Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 1:05 pm
by luczynj
Hello all,

I had built a bunch of services on a Nagios XI server A (hostname: nagios-b), and was too lazy to build them again on our second server B (hostname: nagios-p). I copied the service .cfg file from A to B, and imported it using the import config file option and ticking the "overwrite database" box.

The hostname/service .cfg is GMV-OSS-RC-17B-TPOSSADM01.

The services were added, but when I search for the hostname on server B, it won't show up unless I do it in ALL CAPS.

I know the search box isn't case-sensitive, but I suspect I've corrupted something perhaps in the database?

This is how the search *should* work, and does work on server A. You start typing a search string, then the results appear in a dropdown list.
lower-case on nagiosb.PNG
When I search for the same string on server B, it looks like this:
lower-case on nagiosp.PNG
Now, when I search for the same string on server B in upper-case, it works.
UPPER-CASE on nagiosb.PNG
Any ideas? I've repaired the databases, changed something then clicked on Apply Config.

Regards,
JL

Nagios XI version 5.7.2 on both servers

Re: Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 1:11 pm
by scottwilkerson
This was resolved in 5.7.3

Code: Select all

Fixed search on services page to properly search in a case insensitive way [TPS#15241] -JO
https://www.nagios.com/downloads/nagios-xi/change-log/

Re: Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 1:15 pm
by luczynj
Thanks Scott! I appreciate the quick response.

Do you know when this was introduces?

And regarding the way I copied the service .cfg file over and did an import. Is that a bad practice?

Regards,
JL

Re: Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 1:17 pm
by scottwilkerson
[email protected] wrote:Thanks Scott! I appreciate the quick response.

Do you know when this was introduces?

And regarding the way I copied the service .cfg file over and did an import. Is that a bad practice?

Regards,
JL
I believe it was introduced in 5.7.0

I don't see anything wrong with how you imported them

Re: Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 1:53 pm
by luczynj
Thanks again. You can close this post. I appreciate your help.

Re: Searching with ALL CAPS or lower case

Posted: Fri Sep 04, 2020 2:06 pm
by scottwilkerson
[email protected] wrote:Thanks again. You can close this post. I appreciate your help.
Great!

Locking thread