Zabbix : Item already exists, inherited from another template - zabbix

We apply zabbix template to the server using the "Import" option available in UI. Say, template A is linked with another template B (A -> B) and the templates are applied to the zabbix server.
In the next version/release :
Template A is no longer associated with B
Template A is linked with a new template C (A -> C)
Items from B has been moved to C (C is a superset of B).
Now, if I try to import the latest version of the template (A -> C) on top of older version (A -> B) from the "import" option in UI, I get the following error :
Item "<Item_Key>" already exists on "<Template_Name>", inherited from another template.
But, as you can understand, in the latest version of the template (A -> C), template B is no longer there and hence there is no question of conflict between items in B and C.
Zabbix Version : 2.4.7
Update : Detailed steps to reproduce along with the sample templates are available here.

This looks like a bug in Zabbix and we thank you for reporting it at ZBX-10254.

Related

IcCube - How to add Help on Custom widgets / Custom cell renderers?

I created some Custom widget types and cell renderers using IcCube reporting V8 (ic3-reporting-api).
Is there a way to link some help to these as it exists for original components ?
Custom widget :
Custom cell renderer :
Widgets
You can add some documentation/help that will be available in the editor via the (?) icon. The framework is searching in the server Docs for an MD file located either in the ic3-reporting/app-local folder or in the official documentation folder (i.e., ic3-reporting/doc).
The name of the file is built from the widget template as following:
"widgets." + pluginId + "." + templateType + "." + templateId
So, let's say you've created a custom table widget named SimpleTable in your plugin named MyPluginJS and register this widget into the chart section, then the MD filename would be:
widgets.MyPluginJS.chart.SimpleTable.md
This name is then translated into a path:
widgets/MyPluginJS/chart/SimpleTable.md
And it is searched first in ic3-reporting/app-local using first the user's locale and then English:
/icCube/report/ic3-reporting/app-local/doc/
fr/widgets/MyPluginJS/chart/SimpleTable.md
en/widgets/MyPluginJS/chart/SimpleTable.md
Eventually, it is searched in the ic3-reporting/doc folder for the English locale only:
/icCube/report/ic3-reporting/doc/
en/widgets/MyPluginJS/chart/SimpleTable.md
But, adding your documentation to the ic3-reporting/doc folder is not recommended as this directory will be overwritten on each installation of a new version of the reporting application.
Transformations
The same mechanism is used for the transformations. The path would be as following:
tidyTable/transformations/MyPluginJS/SimpleRenderer.md
Note that the pluginId is not used for the transformations path in v8.2.2 (this will be fixed in v8.3).
Edit: Forgot to mention the app-local/ic3report-config.js must be updated as folllowing:
// extra. doc. localization folder
options.appDocUrlEx = "doc";

Associated dimension of a detail disappears after reload / save

In BusinessObjects webi, I want to merge two variables, one from the universe, one from an excel file.
Query CC data (universe): Site
Query Site mapping table (excel file): Phenix Mapping Key (Entity Name)
If I merge the two dimensions in the report, it works.
However, if I merge the two dimensions using intermediate variables, the "associated dimension" of the detail got lost when saving, closing and reopening the document (or when refreshing it).
When creating the variable, it works, the values in the table appears:
However, after saving, closing and reopening, the "associated dimension" disappears and there is a #datasync error in the table (which is normal with no associated dimension):
Is it a problem in my code? SAP bug?
Version of SAP: SAP BusinessObjects BI Platform 4.2 Support Pack 3 Patch 2
Version of webi: 14.2.3.2220

How to update Joomla custom component?

I'm trying update my custom component which I had created.
The version number when I installed was 0.0.1. Later on I had to do some changes in the table (had to add a column). So I changed the version number to 0.0.2 and I created a sql file with name 0.0.2.sql.
But when I try to update in extension manager. ie, extension -> manage -> discover -> clicked on discover button. it didn't show my component.
How do I update the component?
When the component is already installed then whatever changes you make to files wont display under discover, unless you are changing the folder names. Better to change the version in xml and add the sql file, zip your component and reinstall it. Remember to have method="upgrade" in your xml file.

Drupal 7 - Adding Nodes Through phpmyadmin is not Working Correctly

I have received a Microsoft Access database file and was tasked to convert the contents into something readable by mySQL standards for a Drupal 7 website database. I managed to upload them into the "node" table successfully, with the correct content type classification, unique primary keys and node IDs, etc. Or so I thought.
When I checked the Drupal site, I checked the list of content type X, and all of the new stuff was there. However, when I tried to click them, instead of opening the new page like I expected it to, I received a "page not found" message, instead. I tried looking for the new content manually via "Find Content", but none of it was showing up. I checked entity reference lists that referenced content type X, but they were not showing up on those lists, either.
I checked which fields were required for content type X, and I found that "location category" and "address" were required fields. So to test, I only added 1 entry to each of those tables (both field_data and field_revision versions of the required field), representing the 1st of the many I tried to transfer over. Still nothing. I have no idea what I could be doing wrong. Can anyone offer some insight?
Adding content to Drupal through the database is absolutely the wrong way to go about creating content. I suggest you try any of the following methods:
Create the nodes programmatically using Drupal's API functions:
http://fooninja.net/2011/04/13/guide-to-programmatic-node-creation-in-drupal-7/
Upload data through a CSV file using the Feeds module:
http://drupal.org/project/feeds/

Make PhpStorm show changed/modified files in project view

After moving from Zend Studio (ZS) to PhpStorm, I am starting to miss the way that ZS used to show changed files and display more than one project at once.
For example, notice how it shows that IndexController.php has been modified.
Is there any way to do this with PhpStorm?
Starting from PhpStorm 2022.1:
To highlight folders containing vcs changed files enable:
File | Settings | Version Control | Confirmation | Highlight directories that contain modified files in the Project tree
Older versions:
As mentioned in comment by LazyOne;
The Project panel does highlight any VCS changes,
but to also highlight all parent-folders of changed-files, enable:
File | Settings | Version Control | Show directories with changed descendants
All kudos to LazyOne!
Pressing Alt + 9 (not from numpad) you can get a panel with the changed files.
Go to file >> settings >> Editor >> General >> Editor Tabs.
Check Mark modified tabs with asterisk
Click ok
For PhpStorm version 2022.1.2, on MacOS Big Sur, you will need to go to:
Preferences -> Version Control -> Confirmation, then under Changes you will need to check the "Highlight directories that contain modified files in the Project tree" box.
Another alternative: ctrl + shift + e
To be more specifically. Under File Status (settings)
[option] Have changed descendants
[option] Have immediate changed children
[option] Modified
Change this three color
Another alternative : ctrl + e
PhpStorm store all the changes on your file. If you use Git or VCS it is easy to see what changes you have, but this is also availabe for normal local projects.
Open:
VCS -> Local History -> Show History
You will see the big windows divided on 2. Left showing all the versions, right all the modified files. Double click also gives you a diff windows, showing diference between both files.
All The modificationas are shown as a scalar one, means that selecting left the top one will show just last modification. Selecting in left the scond will show agregated modification since this time.
Let me know if you need more explanation.
As in PhpStorm 2021 you can achieve it by going to Settings > Version Control > Git and check Enable Staging Area
In a Git toolbar (ctrl+9) tab named Local changes
If someone is still looking for solution:
Go to View & look for Changes option, it should bring up the tree view of changes for current project.
You can also do show diff with current working tree in VSC pane.