Skip to content

Support

5.1k Topics 22.0k Posts

Questions about installing, configuring and using NetXMS.

  • 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
  • Desktop management and Object Browser

    Locked
    2
    0 Votes
    2 Posts
    10k Views
    V
    Fixed in 1.0.5. Thanks for reporting! Best regards, Victor
  • problems creating database

    Locked
    4
    0 Votes
    4 Posts
    18k Views
    V
    Hi! You are using installation wizard, right? What user you are using as DBA account? Does it have rights to create new database? If you not using Windows authentication, do you enable SQL Server authentication? Best regards, Victor
  • Unable to connect to NetXMS Console

    Locked
    4
    0 Votes
    4 Posts
    21k Views
    E
    The problem is the database import. Sorry. Thanks
  • SNMP Traps and data

    Locked
    3
    0 Votes
    3 Posts
    10k Views
    J
    Hi, Thanks for your reply The only thing that i can see in my trap-log is the following when a BGP session goes down and none of the vars have data in the that looks like and IP address. .1.3.6.1.2.1.15.7.2 var: .1.3.6.1.1.3.0 .1.3.6.1.6.3.1.14.1.0 1.3.6.1.2.1.15.7.2 1.3.6.1.2.1.15.3.1.14.A.B.C.D 1.3.6.1.2.1.15.3.1.2.10.10.4.201 1.3.6.1.6.3.1.1.4.3.0 Regards Johan
  • SNMP Traps

    Locked
    6
    0 Votes
    6 Posts
    14k Views
    V
    Yes, you have to configure traps to events matching manually for each trap. Also, if you will go that way and create trap configuration for Juniper traps, it will be nice if you can export trap configuration and publish it here. Best regards, Victor
  • Endit a .bat file so XMS can alert

    Locked
    2
    0 Votes
    2 Posts
    8k Views
    V
    Hi! You have two options: Create an action of type "execute command on management server", entering your command in "command" field like following: c:\\Rcmd \\\\exchange1 osql -S exchange1 -U sa -P ourpassword -Q "insert into VGSMDB..loglog (destination, content) values ('Majors','Server %n is down')" Note that all backslashes are doubled, because backslash is an escape character in action command definition, and you have to use \\ to get single backslash in command. Modify you .bat file to accept server name as argument: @echo off c:\Rcmd \\exchange1 osql -S exchange1 -U sa -P ourpassword -Q "insert into VGSMDB..loglog (destination, content) values ('Majors','Server %1 is down')" pause and define action to call it, with "command" field set to my_script.bat %n In both cases, just add this new action to appropriate rule in event processing policy. Hope this helps! Best regards, Victor
  • unable to connect to mysql database

    Locked
    3
    0 Votes
    3 Posts
    13k Views
    R
    I cannot access the database (i am running sqlexpress)
  • Interface detected multiple times

    Locked
    4
    0 Votes
    4 Posts
    16k Views
    V
    The current scheme is "for historical reasons". Now I have much better understanding of how it should work, but it's a major change in server's architecture. I completely agree that physical interfaces and IP addresses must be separate entities. I plan to make this change in 1.1.x branch (along with many other required changes). Best regards, Victor
  • Invalid network mask

    Locked
    5
    0 Votes
    5 Posts
    25k Views
    V
    You can disable appropriate rule in event processing policy (the one processing SYS_INCORRECT_NETMASK event), or make an exclusion in source field of this rule for problematic nodes. Best regards, Victor
  • Interface status

    Locked
    5
    0 Votes
    5 Posts
    17k Views
    P
    Cool, thanks!
  • CentOS default install fails mysql and postgres

    Locked
    5
    0 Votes
    5 Posts
    13k Views
    V
    Could you please post config.log here? Best regards, Victor
  • Display all nodes in one graphic map

    Locked
    3
    0 Votes
    3 Posts
    11k Views
    W
    perfect...that is all i needed...thanks again!!!!!!!!!!
  • Cannot duplicate NAT's IP addresses

    Locked
    3
    0 Votes
    3 Posts
    15k Views
    D
    Hi,  Any news on 'zone' functionality, allowing replicated private addresses accessible via proxies ? Regards, David
  • Transformation Script works not properly ??

    Locked
    3
    0 Votes
    3 Posts
    19k Views
    L
    not better yet  ???