Changing Counter lenght in CMDB

Moderator: crythias

Locked
cr0ss
Znuny newbie
Posts: 1
Joined: 15 Apr 2015, 07:49
Znuny Version: 4.0.3
Real Name: Konrad
Company: Vox Industrie

Changing Counter lenght in CMDB

Post by cr0ss »

Hey,

I read about the NumberGenerator in Tickets. I realize that the long number in default state is the combination of Date.SystemID.Counter.Checksum . I Manage to change that in easy way of course from Sysconfig and set the NumberGenerator to Date, MinCounter to 3 and Disable DateFormat. I also set SystemID from two digit to one digit and set it to 0. I read that SystemID should be on, no matter in what form but it should be in OTRS. So I decided to change it to the shortes and easy form like "zero" ;)

But I was doing that because of the NumberGenerator in CMDB which gave us very long number. I discover that the NumberGenerator is the same system which generates the Numbers in Tickets.. but it uses some of variables: SystemID.ClassID.Counter I Thought when I change the MinCounter from 5 to 3 set the SystemID to 0 I will have number in CMDB of new Item, for example for Computer like this: 022001 / SystemID.ClassID.Counter - like this but instead of that I still have the old one: 022000005 . I don't know why is it so long when I change the MinCounter in CORE::TICKET what E'm I missing?

Ok I fugure it out that it wasn't the same Counter as it is in Sysconfig in Ticket. Why should it be if ITSM is additional package for otrs. It has own Counter definition. So I look and found that in the File AutoIncremental.pm there is a variable which explains how log should the ConfigItem be. And I change it and delete SystemID with ClassID.

I Testet and everything gone well. But last time I wanted make some changes in DeploymentState and IncidentState , I changed the names to my language in those fields. I don't know if it's the reason because I undo those changes but before and after that when I add Computer, Hardware, Location it doesn't matter what I always had in my Browser Internal Error 500

In logs I can see something like that:

Code: Select all

[Sun Apr 19 03:26:01.786016 2015] [cgi:error] [pid 19249] [client 10.16.1.6:58397] AH01215: Can't use an undefined value as a HASH reference at /opt/otrs/bin/cgi-bin/../../Kernel/System/ITSMConfigItem.pm line 1611., referer: https://.............../otrs/index.pl?Action=AgentITSMConfigItemEdit;ClassID=22
[Sun Apr 19 03:26:01.787418 2015] [cgi:error] [pid 19249] [client 10.16.1.6:58397] AH01215: [Sun Apr 19 03:26:01 2015] ITSMConfigItem.pm: \t(in cleanup) Can't call method "Get" on an undefined value at /opt/otrs/bin/cgi-bin/../../Kernel/System/AuthSession/DB.pm line 583., referer: https://........../otrs/index.pl?Action=AgentITSMConfigItemEdit;ClassID=22
[Sun Apr 19 03:26:01.807004 2015] [cgi:error] [pid 19249] [client 10.16.1.6:58397] End of script output before headers: index.pl, referer: https://................../otrs/index.pl?Action=AgentITSMConfigItemEdit;ClassID=22
I Thought this because of those DeploymentState and IncidentState manual translation I made but after changing it back the issue still appears. So I guess it wasn't the reason maybe.

The strange thing is that after I refresh page I see what I added. So everytime when I try to add something I get this Error. Does someone know why?
Locked