NetXMS Support Forum

English Support => General Support => Topic started by: dmayan on April 07, 2016, 01:58:36 AM

Title: Line chart changes while node down
Post by: dmayan on April 07, 2016, 01:58:36 AM
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:

(http://i.imgur.com/32t0p2c.png)

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
Title: Re: Line chart changes while node down
Post by: Victor Kirhenshtein on April 07, 2016, 10:19:46 PM
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
Title: Re: Line chart changes while node down
Post by: dmayan on April 07, 2016, 10:47:31 PM
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
Title: Re: Line chart changes while node down
Post by: Victor Kirhenshtein on April 07, 2016, 10:55:34 PM
No, currently you cannot read internal parameter from NXSL.

Best regards,
Victor
Title: Re: Line chart changes while node down
Post by: dmayan on April 07, 2016, 11:30:15 PM
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
Title: Re: Line chart changes while node down
Post by: dmayan on April 07, 2016, 11:48:00 PM
Unchecking "Logarithmic scale" got it working.

Maybe a bug?

Many thanks,

Diego
Title: Re: Line chart changes while node down
Post by: Victor Kirhenshtein on April 08, 2016, 08:57:50 AM
Logaritmic scale is not working if series contains negative values (because you cannot get logarithm of negative value).

Best regards,
Victor