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
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
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
No, currently you cannot read internal parameter from NXSL.
Best regards,
Victor
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
Unchecking "Logarithmic scale" got it working.
Maybe a bug?
Many thanks,
Diego
Logaritmic scale is not working if series contains negative values (because you cannot get logarithm of negative value).
Best regards,
Victor