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

Topics - bquiggle

#1
I have NetXMS setup to alert me if a particular program stops running but I'd also like it to restart the program automatically when it detects that it is not. I was able to configure this action successfully but NetXMS is running as a service so it restarts the program as a background process. I need the program's GUI to be presented to the logged in user. I understand this is possible by setting up a subagent running it as the logged in user and connecting it to the main agent running as a service but it isn't clear to me how to do this exactly. The documentation only mentions it briefly. Can anyone offer clarification on creating a subagent running as a different user? Is there a better way to restart a program with a GUI than this method?
#2
General Support / Using Macros in a Log Parser
December 28, 2020, 10:27:21 PM
I am trying to create a log parser that will alert me when it detects the string "***" in any of a series of log files. I have managed to get it working if I point it specifically at a single log file, but when I try to use a macro to have it parse all of the files in a folder, I am running into trouble. My parser code is as follows:


<parser trace="0" name="*** Monitor">
   <file>D:\program\log\@{log}</file>
   <rules>
      <rule name="Log Monitor">
         <match repeatCount="0" repeatInterval="1">\*\*\*</match>
         <event>LOGWATCH_TEST</event>
         <logName></logName>
      </rule>
   </rules>
   <macros>
      <macro name="log">.*\.log</macro>
   </macros>
</parser>


Can anyone help me understand what I'm doing wrong here? Part of the trouble I'm running into is when I make XML edits, the system seems to automatically revert and change some of them even when I save changes. For instance, it keeps automatically moving the "macros" section below the rules section but the documentation for NetXMS specifies the macros section should come first. It also keeps on adding in the "logName" tag below the event tag? I don't know what this tag is but even when I remove it, it comes back. Is this intended behavior?