Removing spaces from beginning and end of search strings

Discuss new project and feature ideas here.
See labs.nagios.com for new projects under development.

Removing spaces from beginning and end of search strings

Postby luczynski@mac.com » Wed Sep 12, 2018 3:52 pm

Hello,

Could you trim the spaces off the beginning and end of any search strings, please?

If I do a search for user "user1 ", it won't return an existing user named "user1".

Same with other search areas.

Thanks!

JL
luczynski@mac.com
 
Posts: 13
Joined: Wed Dec 03, 2014 6:47 pm

Re: Removing spaces from beginning and end of search strings

Postby lmiltchev » Wed Sep 12, 2018 4:49 pm

Where are you entering the keyword (user1)? Can you show us a screenshot?
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 11102
Joined: Mon May 23, 2011 12:15 pm

Re: Removing spaces from beginning and end of search strings

Postby luczynski@mac.com » Thu Sep 13, 2018 10:49 am

Here you go.

I'm only reporting this "bug" because I copy and paste from one document/webpage into Nagios XI search boxes to save time. And a lot of times it has a space at the end of the copied text.

See 4 attached photos. 2 from user management and 2 from CCM.

Search in CCM | Services with space at end of "SNMP Traps "
Nagios Copy Paste without Space in CCM.jpg


Search in CCM | Services with no space at end of "SNMP Traps"
Nagios Copy Paste without Space in CCM.jpg


Search in Admin | Manage Users with and without space at end of "luczynj"
Nagios Copy Paste with and without Space.jpg


I am using version 5.4.3 on this example, but have confirmed it happens on 5.5.2 as well.

Thanks in advance!

JL
luczynski@mac.com
 
Posts: 13
Joined: Wed Dec 03, 2014 6:47 pm

Re: Removing spaces from beginning and end of search strings

Postby lmiltchev » Thu Sep 13, 2018 11:06 am

In Nagios XI 5.6.0 we will be trimming the white spaces in searches from the beginning and the end. Having said that, I see a use case, where not trimming the white space could be useful. A very simple example would be having two users - 'test' and 'test test'. When you searched for "test" (no spaces) you would see both users. If you searched for "test " (space at the end), you would see only the 'test test' user. Depending on a use case, this could be helpful.

FYI, in the future, please post such questions on the Nagios XI forum (General or Customer) instead of posting them on the "Nagios Ideas". Thank you!
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
QA Manager
 
Posts: 11102
Joined: Mon May 23, 2011 12:15 pm

Re: Removing spaces from beginning and end of search strings

Postby luczynski@mac.com » Thu Sep 13, 2018 11:48 am

Thanks so much. I appreciate the quick response.

You can close this message.
luczynski@mac.com
 
Posts: 13
Joined: Wed Dec 03, 2014 6:47 pm


Return to Nagios Ideas

Who is online

Users browsing this forum: No registered users and 2 guests