Line chart changes while node down

Started by dmayan, April 07, 2016, 01:58:36 AM

Previous topic - Next topic

dmayan

Hi,

Is there a way to make the line charts show when the node is down and no data is being collected? My issue look as following:



I'm monitoring a lot of unstable wireless SM, and sometimes is difficult to quickly see if there are problems in the link. I tried with a transformation that brings the value to negative when node status goes to down, but since NetXMS stops collecting DCIs other than Status when the node goes down, it doesn't do anything.

I hope you understand me, and sorry for my bad english,

Greetings and keep up the amazing work,

Diego

Victor Kirhenshtein

Hi,

it can be done with scripting DCI. Create script in the library which will do actual SNMP request using SNMPGetValue function, and return either obtained value, or -1 if null was returned (which indicates an error). Script example:


value = SNMPGetValue($node, ".1.3.6.1.2.1.1.1.0"); // put actual OID here
return (value != null) ? value : -1;


or you can make a universal script and pass OID as parameter:


value = SNMPGetValue($node, $1);
return (value != null) ? value : -1;


and use it like this:

MyScriptName(.1.3.6.1.2.1.1.1.0)

Best regards,
Victor

dmayan

Thank you for answering Victor!!

Can I do the same with internal Ping parameter? I was searching in the NXSL guide but I can't find it.

Greetings,
Diego

Victor Kirhenshtein

No, currently you cannot read internal parameter from NXSL.

Best regards,
Victor

dmayan

#4
Victor,

I'm trying the script, but it returns a string, wich I cannot graph


Edit: It is graphing in the line chart, but on the performance tab I'm getting an invalid operation error

Greetings, Diego

dmayan

Unchecking "Logarithmic scale" got it working.

Maybe a bug?

Many thanks,

Diego

Victor Kirhenshtein

Logaritmic scale is not working if series contains negative values (because you cannot get logarithm of negative value).

Best regards,
Victor