Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • Data Collection From a Database

    Locked
    14
    0 Votes
    14 Posts
    72k Views
    G
    More good news. The 64bit version appears to work. I tested using configurations Query = SQL.RDD1:MYDSN:SELECT Count(*) FROM MyTable:60 Query = SQL.RDD2:DRIVER={SQL Server};SERVER=.\MYINSTANCE;UID=sa;PWD=MyPassword;DATABASE=MyDB:SELECT Count(*) FROM MyTable:60 Both work! This means no more setting up of DSNs on each target machine!  
  • typo in nxhttpd startup script on ubuntu

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    A
    Thank you for report.
  • How many agents can a server handle?

    Locked
    3
    0 Votes
    3 Posts
    9k Views
    M
    Hi Alex, Thank you so much for your information. It's very helpful for me. mulder
  • Running as a windows service on 2003

    Locked
    3
    0 Votes
    3 Posts
    8k Views
    S
    Thanks for your quick response, please find attached. logfile.txt
  • Auto bind and auto apply script

    Locked
    6
    0 Votes
    6 Posts
    16k Views
    V
    Hi! There are documentation chapter about scripting language itself, and reference for all functions. However, writing transformation and filtering script are not covered. I'll try to add additional information on this topic to documentation. Best regards, Victor
  • Windows x64 Agent FreePerc

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    V
    Hi! It's because all Disk.* parameters was renamed to FileSystem.* (but all agents still understand Disk.* form, although does not report it in a list of available parameters). However, I forget to rebuild x64 agent from new source - this is why it does not understand FileSystem.* parameters. Now Windows x64 agent version 1.1.0 is available for download, which provides same functionality as x86 version 1.0.6. Best regards, Victor
  • Server Generating Execution Error

    Locked
    3
    0 Votes
    3 Posts
    14k Views
    N
    Thanks, I just removed the filtering script since I think I wasn't using it for the purpose intended anyhow.
  • conncetion with sql server

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    V
    Are you using a SQL Server account to create the database or using NT Authentication? The way I did it was to have a blank database created, add the user to the new database, then assign db_datawriter, db_datareader and db_ddladmin roles to the user.
  • NetXMS server not talking to other Netxms server...

    Locked
    4
    0 Votes
    4 Posts
    11k Views
    V
    You can create either unmanaged node or disable all polling protocols - it depends on how you wish to see node's status. For unmanaged node, it always be "unmanaged", regardless of active alarms. If you disable polling, node's status will be "unknown" unless there will be active alarms for that node - in that case node's status will change to severity of most critical alarm. Best regards, Victor
  • NXAGENTD 100% Processor

    Locked
    3
    0 Votes
    3 Posts
    13k Views
    N
    Victor, Yes, thank you that seemed to correct the processor pegging issue. Regards, Clark
  • Server may crush when working with strings

    Locked
    7
    0 Votes
    7 Posts
    15k Views
    V
    It's because server not working with UNICODE texts. All texts coming from client (in UNICODE) converted to server's code page, which is set by CodePage parameter in netxmsd.conf. You can try to set codepage to UTF-8, but it may or may not work. Best regards, Victor
  • server crashes when creating graph

    Locked
    4
    0 Votes
    4 Posts
    13k Views
    V
    Yes, core service have to be restarted. Best regards, Victor
  • Console stops responding

    Locked
    1
    0 Votes
    1 Posts
    12k Views
    D
    Hi,  Host OS: Microsoft Windows 7 Pro  NetXMS Console: Version 1.0.5  I've had this on the previous versions, the NetXMS Console frequently stops responding when acknowledging or teminating alarms in the object browse. Regards, David
  • Move node to cluster?

    Locked
    2
    0 Votes
    2 Posts
    12k Views
    V
    Currently the only option is to recreate nodes. I'll try to add possibility to move node into cluster in 1.0.6 release. Best regards, Victor
  • DCI modification using protocol

    Locked
    4
    0 Votes
    4 Posts
    13k Views
    V
    Currently it's a mix. End of sequence flag was introduced later during protocol development, so some lists uses special message, and some uses this flag. Best regards, Victor
  • [SOLVED] Unable to use macro %5 as key in event processing policy

    Locked
    5
    0 Votes
    5 Posts
    18k Views
    D
    Seems like that was the problem, the difference between %5 when using it in a threshold and a rearm event. Thank you very much for your help! Best regards, Dan
  • Linux compile error

    Locked
    4
    0 Votes
    4 Posts
    21k Views
    E
    I solved it. Thank u victor! 
  • Parser Support Variable Filename

    Locked
    3
    0 Votes
    3 Posts
    15k Views
    N
    Thanks, In the meantime here is the solution I implemented based on your suggestion. I just call this from a batch file and run it on reboot and on a daily schedule then restart the service. If you redefine the filter and/or the path it should work for most people who would need it (on windows systems). Also the log parser def in this sample was used to parse errors from a JBOSS-TOMCAT 4.2 bundle stdout log. This code should generate this sort of output, <parser processAll="1"> <file>C:\Program Files\ApplicationName\logs\stdout_20091207.log</file> <macros> <macro name="timestamp">[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}</macro> </macros> <rules> <rule break="1"> <match>@{timestamp}.ERROR (.*)</match> <event params="1">100002</event> </rule> </rules> </parser> LogConfig.vbs Dim defaultLogFileName Dim netXMSAgentCFGFileName Dim quoteChar Dim Filter Dim dynamicLogLocation dynamicLogLocation = "C:\Program Files\ApplicationName\logs\" ' Define the filter used (if desired) to find a specific log file in a folder Filter = "out*.log" ' Used if unable to find a log file in the folder defaultLogFileName = "out.log" ' Location and name of log file definition netXMSAgentCFGFileName = "C:\NetXMS\var\dynamic_log.xml" quoteChar = CHR(34) Const OverwriteFile = 2 Set objFSO = CreateObject("Scripting.FileSystemObject") logFileName = GetNewestFile(dynamicLogLocation) If logFileName = "" Then logFileName = defaultLogFileName End If Set objTextFile = objFSO.OpenTextFile(netXMSAgentCFGFileName, OverwriteFile, True) objTextFile.WriteLine("<parser processAll=" + quoteChar + "1" + quoteChar + ">") objTextFile.WriteLine(vbTab + "<file>" + logFileName + "</file>") objTextFile.WriteLine(vbTab + "<macros>") objTextFile.WriteLine(vbTab + vbTab + "<macro name=" + quoteChar + "timestamp" + quoteChar + ">[0-9]{4}-[0-9]{2}-[0-9]{2} [0-9]{2}:[0-9]{2}:[0-9]{2},[0-9]{3}</macro>") objTextFile.WriteLine(vbTab + "</macros>") objTextFile.WriteLine(vbTab + "<rules>") objTextFile.WriteLine(vbTab + vbTab + "<rule break=" + quoteChar + "1" + quoteChar + ">") objTextFile.WriteLine(vbTab + vbTab + vbTab + "<match>@{timestamp}.ERROR (.*)</match>") objTextFile.WriteLine(vbTab + vbTab + vbTab + "<event params=" + quoteChar + "1" + quoteChar + ">100002</event>") objTextFile.WriteLine(vbTab + vbTab + "</rule>") objTextFile.WriteLine(vbTab + "</rules>") objTextFile.WriteLine("</parser>") objTextFile.Close 'Then ... net stop NetXMSAgentdW32 and net start NetXMSAgentdW32 Function GetNewestFile(ByVal sPath) sNewestFile = Null ' init value Set oFSO = CreateObject("Scripting.FileSystemObject") Set oFolder = oFSO.GetFolder(sPath) Set oFiles = oFolder.Files ' enumerate the files in the folder, finding the newest file For Each oFile In oFiles On Error Resume Next If CompareFileName(oFile.Name,Filter) Then If IsNull(sNewestFile) Then sNewestFile = oFile.Path dPrevDate = oFile.DateLastModified Elseif dPrevDate < oFile.DateLastModified Then sNewestFile = oFile.Path End If End If On Error Goto 0 Next If IsNull(sNewestFile) Then sNewestFile = "" GetNewestFile = sNewestFile End Function Private Function CompareFileName (ByVal Name, ByVal Filter) ' (recursive) CompareFileName = False Dim np, fp: np = 1: fp = 1 Do If fp > Len(Filter) Then CompareFileName = np > len(name): Exit Function If Mid(Filter,fp) = ".*" Then ' special case: ".*" at end of filter If np > Len(Name) Then CompareFileName = True: Exit Function End If If Mid(Filter,fp) = "." Then ' special case: "." at end of filter CompareFileName = np > Len(Name): Exit Function End If Dim fc: fc = Mid(Filter,fp,1): fp = fp + 1 Select Case fc Case "*" CompareFileName = CompareFileName2(name,np,filter,fp) Exit Function Case "?" If np <= Len(Name) And Mid(Name,np,1) <> "." Then np = np + 1 Case Else If np > Len(Name) Then Exit Function Dim nc: nc = Mid(Name,np,1): np = np + 1 If Strcomp(fc,nc,vbTextCompare)<>0 Then Exit Function End Select Loop End Function Private Function CompareFileName2 (ByVal Name, ByVal np0, ByVal Filter, ByVal fp0) Dim fp: fp = fp0 Dim fc2 Do ' skip over "*" and "?" characters in filter If fp > Len(Filter) Then CompareFileName2 = True: Exit Function fc2 = Mid(Filter,fp,1): fp = fp + 1 If fc2 <> "*" And fc2 <> "?" Then Exit Do Loop If fc2 = "." Then If Mid(Filter,fp) = "*" Then ' special case: ".*" at end of filter CompareFileName2 = True: Exit Function End If If fp > Len(Filter) Then ' special case: "." at end of filter CompareFileName2 = InStr(np0,Name,".") = 0: Exit Function End If End If Dim np For np = np0 To Len(Name) Dim nc: nc = Mid(Name,np,1) If StrComp(fc2,nc,vbTextCompare)=0 Then If CompareFileName(Mid(Name,np+1),Mid(Filter,fp)) Then CompareFileName2 = True: Exit Function End If End If Next CompareFileName2 = False End Function
  • ICMP/Polling problems

    Locked
    3
    0 Votes
    3 Posts
    16k Views
    W
    thanks for responding, There were no alarms prior to moving the workstation.  I tried to poll the down device (even though the device was up) but the poll still came back unreachable.  Very weird.   *** i see a new version is out!...will update and see if i still see the same issue
  • Licensing

    Locked
    9
    0 Votes
    9 Posts
    23k Views
    T
    OK,that definitely helps.  Thanks again. Tony