News:

We really need your input in this questionnaire

Main Menu

DCI based on SNMP trap.

Started by romb, October 26, 2014, 03:00:12 AM

Previous topic - Next topic

romb

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?

Victor Kirhenshtein

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

romb

Thank you. Where I can track this?


Tatjana Dubrovica

Functionality implemented and will be available in next release.
Function looks like this: PushDCIData(node, dciId, value)

romb

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?

Victor Kirhenshtein

Hi,

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

Best regards,
Victor