Services Search ignores Description case sensitive in 5.8.7

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Services Search ignores Description case sensitive in 5.8.7

Post 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.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Services Search ignores Description in 5.8.7

Post 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
You do not have the required permissions to view the files attached to this post.
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Re: Services Search ignores Description in 5.8.7

Post 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)?
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Services Search ignores Description in 5.8.7

Post 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
You do not have the required permissions to view the files attached to this post.
mlabbepg
Posts: 30
Joined: Fri Apr 16, 2021 1:10 pm

Re: Services Search ignores Description in 5.8.7

Post 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.
User avatar
pbroste
Posts: 1288
Joined: Tue Jun 01, 2021 1:27 pm

Re: Services Search ignores Description case sensitive in 5.

Post 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
Locked