Skip to content

Development

177 Topics 594 Posts

NetXMS development discussion.

  • Admins Group membership

    6
    0 Votes
    6 Posts
    55k Views
    D
    I have version 3.4..178 installed.  We created an rpm after installing manually
  • Terminate a NODE_UP after 60 seconds

    1
    0 Votes
    1 Posts
    27k Views
    D
    When a NODE_UP us received after a previous NODE_DOWN, I would like to terminate the NODE_UP after 60 seconds.  Can anyone tell me how to do this?
  • Automated alarm termination

    2
    0 Votes
    2 Posts
    34k Views
    G
    Very Limited Knowledge here - but I was doing Similar adjustments Yesterday (although not time) Configuarion - Event Processing Policy (in the Desktop Client) - Appears there is an Alarm timeout option under "Action - Alarm" - so if you find the right event being triggered, you should be able to set.  You may need to run these changes as system also - i really don't know yet (also, don't forget to save after the change) Again, very fresh here - so backup and note changes - so you can revert if required... Good Luck
  • Alarms disabled and still some show up

    1
    0 Votes
    1 Posts
    25k Views
    D
    While implementing NetXMS, I have disabled all Event Processing Policies except node down/up and Interface down/up.  I received a "Native agent is not responding" and "Package hpeuefi-mod updated" alarms.  Are some alarms not controlled so they can't be disabled?
  • Setting alarm severity based on a container value

    3
    0 Votes
    3 Posts
    43k Views
    D
    Thank you Victor, that worked perfectly.
  • SSH.Command with different port

    5
    0 Votes
    5 Posts
    45k Views
    P
    Thank you. I know this workaround.
  • Can't make AppAgent work

    2
    0 Votes
    2 Posts
    30k Views
    V
    Hi! Most likely problem is with UNICODE. By default NetXMS is build in UNICODE mode, so it uses wchar_t for all characters. I suppose that your program built as non-UNICODE, so it actually passes char to functions from libappagent that actually expects wchar_t. I'd recommend to build app agent separately with UNICODE disabled and link that version with your application. For example, you can configure NetXMS sources like this: ./configure --with-sdk --disable-unicode --prefix=/opt/nxsdk and then build you application adding -I /opt/nxsdk/include -L /opt/nxsdk/lib -lappagent -lnetxms You can get slightly more diagnostic from app agent by setting nxlolg debug callback: nxlog_set_debug_writer(DebugWriter); nxlog_set_debug_level(9); With debug writer similar to this: static void DebugWriter(const TCHAR *tag, const TCHAR *format, va_list args) { if (tag != nullptr) printf("[%s] ",tag); vprintf(format, args); printf("\n"); } Attached is functional example for reference. I've compiled it as following: g++ -o demoapp demoapp.cpp -I /opt/nxsdk/include -L /opt/nxsdk/lib -lappagent -lnetxms Sample app output: victor@xps13:~/Source/appagentdemo$ LD_LIBRARY_PATH=/opt/nxsdk/lib ./demoapp Initializing AppAgent... Starting AppAgent... Application agent startedApp started NamedPipeListener(appagent.DEMOAPP): waiting for connection NamedPipeListener(appagent.DEMOAPP): accepted connection by user victor nxappget output: victor@xps13:~$ /opt/netxms/bin/nxappget DEMOAPP DemoApp.Metric1 OK victor@xps13:~$ Hope this helps! Best regards, Victor demoapp.cpp
  • netxms-nxmc yaml file failure

    1
    0 Votes
    1 Posts
    18k Views
    A
     Hi I was trying netxms yaml files, other files( web and server )are working fine except netxms-nxmc (console). I have referred the docker-compose file and wrote my own kubernetes yaml file. the file is attached here. The error i got is Crashloopbackoff " Back-off restarting failed container"  Please help me to find the mistake. net-xms-console.yaml
  • PostgreSQL subagent

    14
    0 Votes
    14 Posts
    41k Views
    P
    OK. Technically is it what is monitored. From the human perspective is more logical to know how many Stanby servers are receiving the WALs therefore I've chosen the name PostgreSQL.Replication.Stanby. But it is name only the number is always the same.
  • Sending e-mails from NXSL script

    1
    0 Votes
    1 Posts
    12k Views
    P
    I need more complex condition for e-mail notification than simple send same email to the same recipients when the same alarm is generated. The easiest way to achieve this is to use a NXSL script as the Event Processing Policy action. The only problem is that there is no possibility to send an e-mail from a NSXL script therefore I've added the NSXL function SendMail which allows this. Please add the changes to the original repositories. Code: https://github.com/netxms/netxms/pull/39 Documentation: https://github.com/netxms/nxsl-doc/pull/5
  • Auto discovery of node in NAT network

    2
    0 Votes
    2 Posts
    14k Views
    T
    This is really more a general support than a development question. Your laptop cannot auto-discover devices behind a NAT. If it could, anyone on the internet could get into your network, too. If you are using port forwards, I'd suggest locking them down to only your NetXMS server. Alternatively you can look at Agent Tunnels. In those setups, the Agent will establish a connection to the server as opposed to the server connecting to the client. The server obviously must be reachable from the client. If both are behind a NAT you'll need to open a port somewhere. Opening the server side up means you only have to do it once to the server, not for every single agent behind a NAT. If you can lock that down for some additional security depends on your setup. There have been a lot of posts regarding Agent Tunnel setups over time, I recommend searching the forum (and for additional questions to create a post in the support, as opposed to the development one).
  • install NetXMS server in Raspberry Pi 3 B+

    5
    0 Votes
    5 Posts
    17k Views
    M
    Hello! #3 Yes, I have renamed the file nxmc-3.2.478 to nxmc.war so in the first moment in the folder /var/lib/tomcat8/webapps only I have nxmc.war file and when I try to access web interface http://SERVER_IP:8080/nxmc, it create a new folder with name nxmc but it is empty. Thanks!!
  • re - compile src from github

    5
    0 Votes
    5 Posts
    17k Views
    S
    Thanks for the clarification! Best regards, Sch.Donat
  • DCI poll time out, record a value

    3
    0 Votes
    3 Posts
    13k Views
    M
    Thank you!
  • 0 Votes
    1 Posts
    12k Views
    H
    I use the latest windows X64 version of netxms 2.2.17 with the Microsoft sql server database. I found that when using a string mixed with one-byte word and two-byte word to store the database, the calculation length error will occur, causing the string to be Truncated. I suspect that it may be that ms sql calculates the character length for varchar in a different way than other databases. Nvarchar will treat both one-byte word and the two-byte word as one character, but the varchar data type will treat the ASCII word of one-byte  as a character, but the two-character word will be treated as two characters. Is there any possibility to solve this problem? Attached below is the SQL query I fetched using SQL PROFILER, select @p1 actully is stored = 'Sw-209-dlink總務' not 'Sw-209-dlink總務處',because the p1 is varchar(16) declare @p1 int set @p1=6981 exec sp_prepexec @p1 output,N'@P1 varchar(16),@P2 int,@P3 int,@P4 int,@P5 int,@P6 int,@P7 int,@P8 int,@P9 int,@P10 varchar(9),@P11 int,@P12 varchar(9),@P13 varchar(1),@P14 int,@P15 int,@P16 varchar(9),@P17 varchar(9),@P18 int,@P19 int,@P20 varchar(37),@P21 varchar(37),@P22 int,@P23 varchar(1),@P24 varchar(1),@P25 varchar(1),@P26 varchar(1),@P27 bigint,@P28 int,@P29 int',N'UPDATE object_properties SET name=@P1,status=@P2,is_deleted=@P3,inherit_access_rights=@P4,last_modified=@P5,status_calc_alg=@P6,status_prop_alg=@P7,status_fixed_val=@P8,status_shift=@P9,status_translation=@P10,status_single_threshold=@P11,status_thresholds=@P12,comments=@P13,is_system=@P14,location_type=@P15,latitude=@P16,longitude=@P17,location_accuracy=@P18,location_timestamp=@P19,guid=@P20,image=@P21,submap_id=@P22,country=@P23,city=@P24,street_address=@P25,postcode=@P26,maint_event_id=@P27,state_before_maint=@P28 WHERE object_id=@P29','Sw-209-dlink總務處',2,0,1,1566991628,0,0,1,0,'01020304',75,'503C2814','',0,0,'0.000000','0.000000',0,0,'d025b358-fd3d-1d4d-9b5e-6337e2fd9fc1','00000000-0000-0000-0000-000000000000',0,'','','','',0,0,713 select @p1
  • i need help SQL Query samples

    1
    0 Votes
    1 Posts
    11k Views
    T
    hi all, I would like to get some useful reports from NetXMS DB by using SQL based report generator. is there such built-in SQL queries that I can use? thanks
  • Reporting Server

    5
    0 Votes
    5 Posts
    27k Views
    T
    I've been labouring under the misapprehension that the jar files are just some files I need to get from somewhere in order to get the report server running, but no. The jar files represent reports I have to build specific to my environment, so that's why they don't just exist ready for installation.
  • Query taking too much resourses on the database

    2
    0 Votes
    2 Posts
    13k Views
    V
    HI, we need much more detailed problem description to attempt to fix that. This query is one of the most common (save collected DCI data). What database you are using? How big is your database and this table? Could you provide execution plan for it? Is problem only with idata_122 table or with other idata_ tables as well? Do you have active reads from that table (it could be charts refreshed very often or some scripts reading collected data)? Best regards, Victor
  • Missing simpleframework library in nxshell 2.2.1

    4
    0 Votes
    4 Posts
    17k Views
    V
    Hi, I suggest to check 2.2.5 - most likely it will work without issues. Best regards, Victor
  • [Feature request] Combined output of object tools executed on many nodes

    1
    0 Votes
    1 Posts
    11k Views
    I
    Hello Sir, Current: If I execute tool with output on 3 nodes it will open 3 windows with tool output. Concept: Execution of tool on 3 nodes and live output in one window, and some ability to control that behavior with one click just before choosing tool. Is there any chance to implement that in future releases? Best regards.