Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - gkaudewitz

#1
General Support / Accessrights for Maintenance Journal
February 16, 2024, 05:42:51 PM
It is possible configuring rights for editing Maintenancejournal from within objectproperties of "Infrastructure Services".
Is there a possibility editing these rights from within user and group definitions at "User and groups"?
#2
Hello together,

configuring different community-strings for read and write access is a common solution on SNMP-servers.
What is the way to implement the usage of a seperate community-string for SNMP-set-access to networkcomponents from within NetXMS.

Best regards

Georg
#3
Passiv PDUs that are mounted at front or back of the rack can be documented within "Passive Elements". PDUs that are 19"-mountable and active managed can be placed at the HE as mounted.

Many larger PDUs are mounted vertically within rack (managed or unmanaged). Would it be possible to expand the logic for rack-definitions the way that these PDUs are documentable for a rack?
#4
General Support / Re: Using Scripts in Action Messagetext
November 09, 2023, 04:29:50 PM
Thanks for the info. That helps me very much, concerning data I want to access within action message text!

But I got an other problem that I don't what goes wrong.

In message text I am calling a function this way %[NMSRV::test/testfkt1("p1","p2","p3","p4")] for test this is a very simple function with this definition in NMSRV::test :

function testfkt1(pm1,pm2,pm3,pm4)
 { retval = "Param1: "..pm1.." Param2:"..pm2.." Param3:"..pm3.." Param4:"..pm4;
  return (retval);
 }


The resulting message differs from expected result. Generated value from this function is:

Param1:  Param2:p1 Param3:p2 Param4:p3

It seems, that there is a shift of parameters when script is called from message text. I tested it with two different installations of NetXMS Version 4.4.3.

Best regards

Georg
#5
General Support / Using Scripts in Action Messagetext
November 08, 2023, 04:18:11 PM
Within action messsage text it is possible to use the %[name] macro for generating output to message-text. The called funktion can have parameters. That works fine.

The problem I want to solve is:
Who to use the values of other macros as parameter for the function. E.g. %[script/myfunct(%z,%a,%c)] with the values of %z, %a and %c. The first tests I did are resulting in the strings "%z", %a" and "%c" that are passed to called function.

Who can I achieve that values of macros are passed to the function?

Best regards

Goerg

#6
Having an environmental Control unit where it is not possible to change sensornames via webgui I want to create a form from within netxms-gui where all connected sensors are listed with theire type (temperature, humidity, leakage). Within this form user should have the possibility to name the sensors and the data should be written via SNMP-set to the unit.
For user-convinience this should be done to for all used controller-units, even if there is possibility to change these data via web.
It would bee interesting applying some other data to the sensors like warning temperatur-settings individually per sensor with the same procedure.
Best regards
Georg
#7
With NXSL it is possible to generate an output with "println" to the client.
Is there a possibility to create an input-window from an nxsl-script where an input can be requested with an individual description (value=readln("Please insert a value:")). Something like You have implemented with objecttools "InputFileds" but even generated as a result of some script-calculation.
Best regards
Georg
#8
General Support / Re: NXMC database best practices
December 15, 2022, 02:35:35 PM
There is a perl script called mysqltuner that helps very much identifying unused space within the tables that will lead to large files in the database.
Especially after changing some RetentionTimers and deleting some records via housekeeper you will see spaces there where you can shrink databasesize.
Sometimes it is good identifying unused tabels via nxdbmgr.
#9
General Support / Re: Array returnd from Function
April 21, 2022, 04:51:36 PM
Hello Filipp,
I followed Your advice and looked at the length of the array in called function and in calling function. Value was the same both times e.g. 4.
Reducing and testing code via calling the script as serverscript from a device. This scriptlib has the subs and a "main"-function that calls the subs. With reduced code resulting string appears in the calling-function. After introducing some more calculation in called function the problem appears once more with the following results:
NT_lib_InstDisc::int_InstDisc_01 called with: ##---#nsnsnsn bhohofewho
NT_lib_Parsers::Parse_Interface_Alias_Prefix called with: ##---#nsnsnsn
Parse_Interface_Alias_Prefix IN default:13 ##---#nsnsnsn
NT_lib_Parsers::Parse_Interface_Alias_Prefix returns Values (hashash;has2hash;hasparams;param;;arraylength):1;1;1;---;;4;
Error 15 in line 37: Unknown object's attribute

Some times automatic server-restart followed.

Putting a trace command directly in front of building  retval changed situation and function worked as expected.

WITH LINE 135 NOT COMMENTED OUT:
NT_lib_InstDisc::int_InstDisc_01 called with: ##---#nsnsnsn bhohofewho
NT_lib_Parsers::Parse_Interface_Alias_Prefix called with: ##---#nsnsnsn
Parse_Interface_Alias_Prefix IN default:13 ##---#nsnsnsn
NT_lib_Parsers::Parse_Interface_Alias_Prefix param:---
NT_lib_Parsers::Parse_Interface_Alias_Prefix returns Values (hashash;has2hash;hasparams;param;;arraylength):1;1;1;---;;4;
In int_InstDisc_01 Return Values from Parse_Interface_Alias_Prefix: 1;1;1;---;;4;

As of this You will find complete code I wrote as attachment, because I don't know where my error is.

Best regards

Georg
#10
General Support / Array returnd from Function
April 17, 2022, 12:03:49 PM
I'm not genius in script writing. As of this I do not know what I'm doing wrong.
Using Netxms 4.0-2227 calling a script from scriptlibrary out of Instance discovery filter I'm doing some analyzing of alias-string.
>>> 2022.04.15 22:38:50.538 *I* [nxsl.trace         ] NT_lib_InstDisc::int_InstDisc_01 called with: ##---#hjipeffebguo Fa0/4 (##---#hjipeffebguo)
Within the sub int_InstDisc_01 an other sub is called that should return an array consisting of three values and a string with three characters.
>>> 2022.04.15 22:38:50.538 *I* [nxsl.trace         ] NT_lib_Parsers::Parse_Interface_Alias_Prefix called with: ##---#hjipeffebguo
Using trace function I can figure out that the array will be constructed the right way within called sub Parse_Interface_Alias_Prefix.
>>> 2022.04.15 22:38:50.538 *I* [nxsl.trace         ] NT_lib_Parsers::Parse_Interface_Alias_Prefix returns Values (hashash has2hash hasparams param ):1;1;1;---;
But printing the resulting array within int_InstDisc_01 I only can identify the three values but there is no string to find
>>> 2022.04.15 22:38:50.538 *I* [nxsl.trace         ] In int_InstDisc_01 Return Values from Parse_Interface_Alias_Prefix: 1;1;1;;
Moving the three character-string from the last place in the array a little bit forward within sub Parse_Interface_Alias_Prefix just gave me analogous result without the string in returned array.

Is there a restriction concerning mixing of different types for the return array of a sub?

For production environment I have the two scripts in different libs. But I build up a test system where I put them in one library to reduce complexity.


Script snipplets:
sub int_InstDisc_01(ifalias,ifname)
{ trace(0,"NT_lib_InstDisc::int_InstDisc_01 called with: ".ifalias." ".ifname);
   
  inst_disc = false;
  array res1;

  res1 = Parse_Interface_Alias_Prefix(ifalias);
  trace(0,"In int_InstDisc_01 Return Values from Parse_Interface_Alias_Prefix: ".ArrayToString(res1,";").";");
.....
}

sub Parse_Interface_Alias_Prefix(ialias)
{ trace(0,"NT_lib_Parsers::Parse_Interface_Alias_Prefix called with: ".ialias);
 
  array retval;
....
  retval = %(hashash,has2hash,hasparams,param);
  trace(0,"NT_lib_Parsers::Parse_Interface_Alias_Prefix returns Values (hashash has2hash hasparams param ):".ArrayToString(retval,";").";");
  return(retval);



#11
Announcements / Re: NetXMS 4.0 released
February 10, 2022, 02:35:50 PM
Since update to version 4.0 (include nxdbmgr upgrade) there will be the messages shown in the attachment within consolewindow.
My environment is debian with mariadb installed.
Currently netxms is compiled from source with --with-mariadb --with-mariadb-compat-headers.
Best regards and thanks for Your software
Georg
#12
Hello together,
I compiled netxms-server on debian from source.
When starting netxmsd I got the following problem:
1.) Starting with parameter -c /etc/netxmsd.conf I'm always gettng an error "Error loading config file"
2.) Starting without this parameter worked.
Configfile is a link within /etc-directory. Thus same file is used when calling with or without -c option.
Other parameters like -d or -D are working.
Best regards
Georg
#13
General Support / Values for Zonecolors for Gauge-Objects
February 07, 2021, 10:29:40 PM
Hello together,

defining a gauge for a dashboard it is possible to set values for different colorzones. Within properties form they will be defined by hand.
Is there a possibility to configure a calculation of these values from the values of an other DCI?
At our environmental monitoring we have defined individual warninglimits for some sensors. These limits are read out with a DCI and it would be great coloring the actual values regarding the individual warninglimits.

Best regards

Georg
#14
I did it within a Hook-script while configuration poll based on a prefix in the interface interface alias e.g. description.
For example ## at the beginning of the interfacedescription tells me to set expected state to "UP".
Second using this prefix within instance dicovery (instance discovery filter script) You can automatically generate DCIs for these interfaces.
#15
Solution with editing the dci does not work for templates! After "save and apply" the dci within the template does not has the advice "This DCI was added by instance ...." but within the component the template dci is associated the advice appears. Editing this dci within the component will lead to the advice within the template once more.