Skip to content

Development

177 Topics 594 Posts

NetXMS development discussion.

  • Maybe it's a bug

    Locked
    2
    0 Votes
    2 Posts
    16k Views
    V
    If I understand the question correctly, sometimes you are not seeing parameters after pressing "select" button in DCI properties, right? It could happen, because client get this list from server's cache, which is updated during configuration polls. Next time when this happens, try to do configuration poll on a node, and see if it helps. Best regards, Victor
  • How to get the "object tree" and

    Locked
    3
    0 Votes
    3 Posts
    19k Views
    1
    Thank you very much
  • Develop the agent in windows

    Locked windows
    1
    0 Votes
    1 Posts
    25k Views
    X
    I want to do something to support the hard disk monistor in the agent(both in windows and linux). but when I build the agent in win 7 with VC 2005. It put lots of errors.(such as lake of openss library file) my question is: how I can build the agent source code in Windows? Is it something I should make attention? or some software that agent dependent on  I did not install?
  • 0 Votes
    3 Posts
    22k Views
    M
    Thank you! tested many times and work it out finally....
  • 0 Votes
    3 Posts
    28k Views
    X
    Thanks a lot
  • How I can find the NetXMS Client Library Programmer's Manual

    Locked
    3
    0 Votes
    3 Posts
    36k Views
    1
    @victor said in How I can find the NetXMS Client Library Programmer's Manual: Hi! Unfortunately it does not exist. I start creating one long time ago, but it is in initial state. Demand is very low, and there are always tasks with higher priority. Existing document attached - but it covers very small part of the API. But feel free to ask me any questions - I'll do my best to answer them fast and accurate. Also, for new development and integration I would suggest using Java API when possible - it is simplier and has JavaDoc for most classes and methods. Best regards, Victor Thank you~
  • compiling problem(missing jar)

    Locked
    5
    0 Votes
    5 Posts
    43k Views
    B
    Thank you for you kindness, Victor.
  • SetPassword in Trunk Code

    Locked
    2
    0 Votes
    2 Posts
    24k Views
    V
    Hi! I changed both setPassword and validatePassword to use UTF-8 instead of current server's page to calculate hash: bool User::validatePassword(const TCHAR *password) {   BYTE hash[SHA1_DIGEST_SIZE]; #ifdef UNICODE     char mbPassword[1024];     WideCharToMultiByte(CP_UTF8, 0, password, -1, mbPassword, 1024, NULL, NULL);     mbPassword[1023] = 0;     CalculateSHA1Hash((BYTE *)mbPassword, strlen(mbPassword), hash); #else     CalculateSHA1Hash((BYTE *)password, strlen(password), hash); #endif     return !memcmp(hash, m_passwordHash, SHA1_DIGEST_SIZE); } void User::setPassword(const TCHAR *password, bool clearChangePasswdFlag) { #ifdef UNICODE     char mbPassword[1024];     WideCharToMultiByte(CP_UTF8, 0, password, -1, mbPassword, 1024, NULL, NULL);     mbPassword[1023] = 0;     CalculateSHA1Hash((BYTE *)mbPassword, strlen(mbPassword), m_passwordHash); #else     CalculateSHA1Hash((BYTE *)password, strlen(password), m_passwordHash); #endif     m_graceLogins = MAX_GRACE_LOGINS;     m_flags |= UF_MODIFIED;     if (clearChangePasswdFlag)         m_flags &= ~UF_CHANGE_PASSWORD; } tested it on Russian, Chinese, and Japanese characters - works fine. This solution, however, will cause problem for already set non-latin1 passwords - they will need to be reset. Changed code already commited to svn. Best regards, Victor
  • Handy reporting functions (sqlserver)

    Locked windows
    1
    0 Votes
    1 Posts
    25k Views
    C
    I made some web based drillable jasperReports against the event_log tables and found these functions to be handy for date logic. I didn't write them (found them) but since they are useful for netxms table reporting thought I'd share. CREATE function [dbo].[ufn_DATETIME_TO_UNIX_TIME]     ( @DAY datetime ) returns  int as /* Function: ufn_DATETIME_TO_UNIX_TIME     Finds UNIX time as the difference in seconds between     1970-01-01 00:00:00 and input parameter @DAY after     rounding @DAY to the neareast whoie second.     Valid datetime range is 1901-12-13 20:45:51.500 through     2038-01-19 03:14:07.497.  This range is limited to the smallest     through the largest possible integer.     Datetimes outside this range will return null. */ begin declare @wkdt datetime -- Return null if outside of valid UNIX Time range if @DAY < '1901-12-13 20:45:51.500' or  @DAY > '2038-01-19 03:14:07.497'     return null -- Round off datetime to nearest whole second select @wkdt = dateadd(ms,round(datepart(ms,@DAY),-3)-datepart(ms,@DAY),@DAY) -- If date GE 1901-12-14 if @wkdt >= 712 return datediff(ss,25567,@wkdt) -- Handles time GE '1901-12-13 20:45:52.000 and LT 1901-12-14 return -2147472000-datediff(ss,@wkdt,712) end CREATE function [dbo].[ufn_UNIX_TIME_TO_DATETIME]     ( @UNIX_TIME int ) returns  datetime as /* Function: ufn_UNIX_TIME_TO_DATETIME     Converts UNIX time represented as the difference     in seconds between 1970-01-01 00:00:00 to a datetime.     Any valid integer -2,147,483,648 through 2,147,483,647     can be converted to datetime. */ begin return  dateadd(ss,@UNIX_TIME,'1969-12-31 16:00:00') end
  • Server Module development

    Locked
    11
    0 Votes
    11 Posts
    70k Views
    S
    I've got it. Thanks very much. Best regards, Szll2010
  • message.c in libnetxms is right for east asian characters

    Locked
    19
    0 Votes
    19 Posts
    110k Views
    V
    Hi! Send them to dump-at-netxms.org Best regards, Victor
  • NetXMS 1.0.3 - missing dsp project

    Locked windows
    3
    0 Votes
    3 Posts
    35k Views
    V
    I have added missing files to dist in 1.0.5. Also, resources for most of the projects may not load until message files compiled to binary form - try to compile messages.mc first. Best regards, Victor
  • Port Monitoring

    Locked windows
    1
    0 Votes
    1 Posts
    28k Views
    R
    Hi All, I am using NetXMS 1.0.1. While creating data collection for monitoring Apache Tomcat by using port number (8080), i did not get any supported agent parameters. Please suggest me on this and let me know your thoughts. Thanks, JP
  • How to create action for tomcat log monitoring for Error

    Locked windows
    2
    0 Votes
    2 Posts
    31k Views
    V
    Hi! You should use portcheck subagent. See this thread for examples: https://www.netxms.org/forum/index.php/topic,28.0.html Best regards, Victor
  • how to pass arguments in Data collection item

    Locked windows
    2
    0 Votes
    2 Posts
    34k Views
    V
    Hi! Could you please post screenshot with your DCI configuration? Best regards, Victor
  • Error:Cannot get parameter:Communication failure

    Locked windows
    1
    0 Votes
    1 Posts
    32k Views
    V
    Hi, I am new to NetXms. I have installed the netxms server and created agents successfully. While passing agent arguments i was facing the error like Cannot get parameter:Communication failure. Actually we want to shoot a mail when the text files with specific names existed in the folder, if the creation time of those files are 15 minutes older than current system time. Can any one help on this
  • compile nxlexer files

    Locked windows
    10
    0 Votes
    10 Posts
    67k Views
    W
    Hi Victor, Thank you. I compiled and linked it successfully with your lib. Best Regards, Joseph
  • compile libnxsl files

    Locked windows
    5
    0 Votes
    5 Posts
    52k Views
    W
    Hi Victor, I installed msys again and tried it. It was successful. Thank you. Regards, Joseph
  • problem with development

    Locked
    20
    0 Votes
    20 Posts
    56k Views
    V
    Hello! Did you set VID_PARAMETER variable before sending CMD_GET_PARAMETER request? You should have something like msg.SetVariable(VID_PARAMETER, "Agent.Version"); before converting message into binary format and sending. Also, check VID_RCC variable in response message - may be it contains error. Best regards, Victor
  • error C2065: 'SOCKET' : undeclared identifier

    Locked windows
    5
    0 Votes
    5 Posts
    59k Views
    W
    Hi Victor, Great hear from you again. Thank you very much. Best Regards, Joseph Hahn