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!
Error occurred while adding servicegroup on Nagvis
Error occurred while adding servicegroup on Nagvis
You do not have the required permissions to view the files attached to this post.
Re: Error occurred while adding servicegroup on Nagvis
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.
We will try to recreate the issue in-house.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error occurred while adding servicegroup on Nagvis
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!
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
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...
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.
Can you check if you have multiple instances of nagios running:
and if you have any database errors/crashed tables?
or
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.
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?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.
Can you check if you have multiple instances of nagios running:
Code: Select all
ps -ef | grep nagios.cfg | grep -v grepCode: Select all
tail /var/log/mysqld.logCode: Select all
tail /var/log/mariadb/mariadb.logYou 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!
Re: Error occurred while adding servicegroup on Nagvis
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!
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.
Re: Error occurred while adding servicegroup on Nagvis
Run the command below and show the output:
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
Code: Select all
echo "select * from tbl_servicegroup where servicegroup_name like '%connection-jho-tch-asr903-01%';" | mysql -t -uroot -pnagiosxi nagiosqlAdmin > System Config > System Profile > Download Profile
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Error occurred while adding servicegroup on Nagvis
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!!
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
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!