Error occurred while adding servicegroup on Nagvis

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Error occurred while adding servicegroup on Nagvis

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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!
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
axvers
Posts: 65
Joined: Tue Jan 08, 2019 8:31 pm

Re: Error occurred while adding servicegroup on Nagvis

Post 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!!
User avatar
mbellerue
Posts: 1403
Joined: Fri Jul 12, 2019 11:10 am

Re: Error occurred while adding servicegroup on Nagvis

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