Page 1 of 1

Error occurred while adding servicegroup on Nagvis

Posted: Thu Jul 18, 2019 2:02 am
by axvers
Hi Support,

Want to ask how to add servicegroup icon on Nagvis?

Because it says that the attributes format does not match the REGEX:/^[0-9a-zа-яё\p{L}\s:+[\]()_.,\-?!#@=\/\\]+$/iu

after I select a servicegroup trying to add an icon.

Please refer to the attachment.

Thank you!

Re: Error occurred while adding servicegroup on Nagvis

Posted: Thu Jul 18, 2019 2:12 pm
by lmiltchev
What is the version of Nagios XI and NagVis that you are currently using? Is the whole name of the servicegroup shown in the screenshot or the name is longer? Was this a new install of XI or an upgrade? If it was an upgrade, what version did you upgrade from?

We will try to recreate the issue in-house.

Re: Error occurred while adding servicegroup on Nagvis

Posted: Thu Jul 18, 2019 9:14 pm
by axvers
Yes, sorry for insufficient info.

1. Nagios XI: 5.6.2
2. Nagvis: I am not sure where to check this info, but whole environment is clean, installed from official Nagios XI ova.
So, it is the version bundled with Nagios XI 5.6.2.
3. Yes, a little longer. (connection-jho-tch-asr903-01) It originally had some capital characters in that name, I found the REGEX seems not have [A-Z]+ included, so I changed it to lower. Same hint though.

4. same to #2. No Upgrading done before. It is Nagios XI 5.6.2 installed from official Nagios XI ova.


Thanks!

Re: Error occurred while adding servicegroup on Nagvis

Posted: Fri Jul 19, 2019 10:24 am
by lmiltchev
I was not able to recreate the issue in house. I spun a new Nagios XI instance ver. 5.6.2 from our official OVA, and added a servicegroup, called "connection-jho-tch-asr903-01". I tried using capital letters, then renamed the servicegroup, etc. Adding a servicegroup icon to NagVis worked every time...
example01.PNG
Can you verify the NagVis version by going to Home > NagVis > Need Help? > NagVis Support Information? The version number should be written on the top of the page.
It originally had some capital characters in that name, I found the REGEX seems not have [A-Z]+ included, so I changed it to lower.
Have you made any other changes, e.g. using special characters, non-English local, modifying NagVis configs, etc.? Do you have the same problem with adding icons for other service groups?

Can you check if you have multiple instances of nagios running:

Code: Select all

ps -ef | grep nagios.cfg | grep -v grep
and if you have any database errors/crashed tables?

Code: Select all

tail /var/log/mysqld.log
or

Code: Select all

tail /var/log/mariadb/mariadb.log

Re: Error occurred while adding servicegroup on Nagvis

Posted: Tue Jul 23, 2019 12:52 am
by axvers
Hi support,

here's update:

- Nagvis version: 1.9.8
- 2 nagios instance is running
- no make change on sys-conf ever (except the /etc/php.ini for performance tuning, but this problem occurred before any tuning.)
- adding host icon is always okay from the start.

note:
I am not sure if there is any problem from db log.

please check the attaches, thanks!

Re: Error occurred while adding servicegroup on Nagvis

Posted: Tue Jul 23, 2019 9:32 am
by lmiltchev
Run the command below and show the output:

Code: Select all

echo "select * from tbl_servicegroup where servicegroup_name like '%connection-jho-tch-asr903-01%';" | mysql -t -uroot -pnagiosxi nagiosql
Can you zip up the entire /usr/local/nagvis directory, and PM it to me, along with your latest profile?

Admin > System Config > System Profile > Download Profile

Re: Error occurred while adding servicegroup on Nagvis

Posted: Wed Jul 24, 2019 6:04 am
by axvers
It's weird.

It works now, after I tried some steps:

1.
- add a service group with no service, named "test-1" and description is named "blank".
- add a service group with an only service, which is not included by those broken service group ever; named "test-2", description "new".

2. add these 2 service group icon on Nagvis, it worked normally.

3.
- re-add the broken one. It still said the same error msg.
- replaced all "_" to "-" in broken service groups name, It still said the same error msg

4. rename the broken one's description, to a shorter one ("test-1"). Add the broken one, it worked.

5. And all services group (including those haven't been renamed) are worked now.

6. deleted the "test-1" & "test-2" service group from step1, restored the description changed in step 4.

Still work normally.

And still don't know why.



I will send you a zip tomorrow though, maybe there's a subtle bug.

But can lock this post anyway. Thanks for help!!

Re: Error occurred while adding servicegroup on Nagvis

Posted: Wed Jul 24, 2019 11:13 am
by mbellerue
Well it's good to hear that it's working now. If you can send in that zip file, that would be great.