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?
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
Thank you. Where I can track this?
https://www.radensolutions.com/chiliproject/issues/677
Functionality implemented and will be available in next release.
Function looks like this: PushDCIData(node, dciId, value)
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?
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