NetXMS Support Forum

English Support => General Support => Topic started by: WilliCoyote on November 09, 2009, 11:04:19 AM

Title: write Eventlog from own Event
Post by: WilliCoyote on November 09, 2009, 11:04:19 AM
Hallo Victor,

I have created a new event based of the Template SYS_THRESHOLD_REACHED/REARMED (ID 17/18).
The option on this made "write to eventlog" is deactive. The event is nevertheless listed in the Eventlog, however, this extends uselessly the SQL-DB.

What do I make wrong ?

best regards
WilliCoyote
Title: Re: write Eventlog from own Event
Post by: Victor Kirhenshtein on November 09, 2009, 06:21:56 PM
It's a bug (or confusing feature) in event viewer. If event is not marked as "write to event log", then it will not be written to database. However, server notifies all connected clients about all events, and if event viewer is open at this moment, then event is displayed. If you close event viewer and open it again, you'll see that all past events without "write to event log" mark disappeared.
In a new console, event viewer will be separated to two different views - real time event monitor, which will show all events as they coming, and event log viewer, which will show events actually logged in database.

Best regards,
Victor
Title: Re: write Eventlog from own Event
Post by: WilliCoyote on November 10, 2009, 12:37:46 PM

many thanks for the informations

best regards

WilliCoyote