NetXMS Support Forum

English Support => Feature Requests => Topic started by: rz on May 30, 2014, 07:01:21 PM

Title: nxevent
Post by: rz on May 30, 2014, 07:01:21 PM
Hello,

I'd be very usefull to enhance nxevent utility for ability to send event by using event's name (instead of event_id code).

Another not so important notes:

- nxevent command should exit with non zero return code if sending of event was not successfull.

- implementation of any kind of persistence (e.g. buffering of events at the sender's side) is welcomed for event sending utility to overcome situations like: short lasting server unavailability or broken network communication
  note: nxevent -w parameter seems it is not applied for this use case


And thanks for nice software.

Kind Regards,
Roman
Title: Re: nxevent
Post by: Victor Kirhenshtein on June 03, 2014, 12:53:54 AM
Hi!

I've implemented #1 and #2 (event identification by name and correct return codes). #3 is a bit more complicated so I'll do it later :)

Best regards,
Victor
Title: Re: nxevent
Post by: rz on June 03, 2014, 04:08:29 PM
Hi,

Thank you for quick reply :) 

During testing I've found following behaviour which I suppose is not correct:

During import of configuration (e.g. events), user events (id > 100000) are not correctly replaced in the case event name and/or event id already exist. Events are always appended as new ones (with new id) regardless any checkbox is selected. Also more events can have the same name as uniqueness of name is not checked (there is no constrain).

tested on 1.2.14, windows version

Kind Regards,
Roman