NetXMS Support Forum

English Support => General Support => Topic started by: romb on October 26, 2014, 03:00:12 AM

Title: DCI based on SNMP trap.
Post by: romb on October 26, 2014, 03:00:12 AM
Basically I want to have chart for status received by SNMP trap.
It looks like I should use DCI for this. How I can configure DCI to use SNMP trap results for value?
Title: Re: DCI based on SNMP trap.
Post by: Victor Kirhenshtein on November 04, 2014, 06:57:20 PM
Hi,

currently it's not possible. I'll add a feature request for NXSL data push function - then you'll be able to use action script for pushing DCI data.

Best regards,
Victor
Title: Re: DCI based on SNMP trap.
Post by: romb on November 16, 2014, 10:30:26 AM
Thank you. Where I can track this?
Title: Re: DCI based on SNMP trap.
Post by: Tatjana Dubrovica on November 18, 2014, 11:40:34 AM
https://www.radensolutions.com/chiliproject/issues/677
Title: Re: DCI based on SNMP trap.
Post by: Tatjana Dubrovica on November 25, 2014, 04:54:09 AM
Functionality implemented and will be available in next release.
Function looks like this: PushDCIData(node, dciId, value)
Title: Re: DCI based on SNMP trap.
Post by: romb on May 26, 2015, 01:37:50 PM
Thank you for this great feature.
Looks like there is little problem somewhere.
I have 2 scripts.
First runs on problem snmp trap:

PushDCIData($node,444,1);
PushDCIData($node,444,0);
return true;

Second runs on restore snmp trap:

PushDCIData($node,444,0);
PushDCIData($node,444,1);
return true;


So I should get beautiful graph with status from 0 to 1.
But sometimes line goes aslant from one event to another instead of forming rectangular shape. Looks like sometimes PushDCIData($node,444,0) in second script does nothing. How this can be fixed?
Title: Re: DCI based on SNMP trap.
Post by: Victor Kirhenshtein on May 26, 2015, 05:18:09 PM
Hi,

server do not expect two values within one second. You can try to put sleep call (https://wiki.netxms.org/wiki/NXSL:sleep (https://wiki.netxms.org/wiki/NXSL:sleep)) between two push calls to guarantee at least second interval between values.

Best regards,
Victor