Page 1 of 1

Services Search ignores Description case sensitive in 5.8.7

Posted: Mon Feb 07, 2022 11:29 am
by mlabbepg
Since upgrade to 5.8.7, in CCM/Services the Search function only seem to check against Config Names (ignores Service Description), which makes searches alot less effectives.

Search function does work properly in CCM/Hosts, Host Groups, Service Groups, etc.

Can anyone confirm this?


5.8.7 has been out for a couple months already so I'm surprised it doesn't seem to have been reported yet.

Re: Services Search ignores Description in 5.8.7

Posted: Tue Feb 08, 2022 11:11 am
by pbroste
Hello @mlabbepg

Thanks for reaching out, jumped on over to my test VM updated the name on a service description so that it is unique (to search), and did get the correct search result. We have not heard any other experiencing issues, but if there is please pipe in here and let us know.
  • cpustuff.png
Let's take a look at and provide additional info for the time being:
  • Code: Select all

    cat /usr/local/nagiosxi/var/xiversion | grep full
    sudo cat /etc/os-release
     sudo uname -a
    sudo hostnamectl
     sudo lsb_release -a
    php -v
And take a look at the logging results and let us know how that looks:
  • Code: Select all

    find /var/log/httpd/ -type f -exec grep -Eri "youruniqueservicediscriptionhere" -A 2 -B 2 {} \;
  • [code]find /usr/local/nagiosxi/var/ -type f -exec grep -Eri "youruniqueservicediscriptionhere" -A 2 -B 2 {} \;[/code][/*]
Check on your character sets in php config, please verify the following:
  • Code: Select all

    /usr/local/nagiosxi/html/config.inc.php
  • Under each of these lines that define the db connections:

    "db" => 'nagiosxi',
    ...
    "db" => 'nagios',
    ...
    "db" => 'nagiosql',

    Add this:

    "charset" => 'utf8',

    So they look like this:

    "db" => 'nagiosxi',
    "charset" => 'utf8',
    ...
    "db" => 'nagios',
    "charset" => 'utf8',
    ...
    "db" => 'nagiosql',
    "charset" => 'utf8',
Let us know how things look,
Perry

Re: Services Search ignores Description in 5.8.7

Posted: Tue Feb 08, 2022 4:29 pm
by mlabbepg
Hi,

Thanks for your reply.

I just realized the search bar does work, but it is now case sensitive in 5.8.7 (feel free to edit thread name to reflect the actual issue).
I didn't notice in Hosts screen because our hostnames are all lower caps.

I just retested: it's definitely case-insensitive in 5.8.6, and case-sensitive after upgrading to 5.8.7.

The case-sensitive search issue had been reported here for 5.7.2 and had been fixed since so it's pretty odd to see it coming back.

Before the thread gets flooded with diagnostic infos, can you confirm if you reproduce the case-sensitive part in 5.8.7 (note: we're running on Ubuntu 20.04.3 LTS)?

Re: Services Search ignores Description in 5.8.7

Posted: Wed Feb 09, 2022 1:43 pm
by pbroste
Hello @mlabbepg

Thanks for following up with the details, I see that you are correct that the search function is case sensitive in the CCM > Services but works in the other sections. I will ping this issue over and file an issue.

The following are examples filed:
notfound.png
found.png
Thanks,
Perry

Re: Services Search ignores Description in 5.8.7

Posted: Wed Feb 09, 2022 3:30 pm
by mlabbepg
Thanks for the confirmation.

Please note it is case-sensitive in both CCM > Hosts and CCM > Services sections.

It seems to be working fine in other sections.

I suggest you rename this thread to match the actual issue for future references.

Re: Services Search ignores Description case sensitive in 5.

Posted: Thu Feb 10, 2022 2:53 pm
by pbroste
Hello @mlabbepg

Done deal, I am not able to duplicate the issue on the CCM -> Hosts.

We will leave the report as is and wait for an update on the change log.

Thanks,
Perry