If there's NetXMS or SNMP agent on the end node, MAC address will be read from it. Otherwise we take it from FDB of the switch to which this node is connected.
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Show posts Menufunction main(oid, name) {
transport = $node->createSNMPTransport();
if (transport == null) return null;
v = transport->getValue(oid);
h = %{};
for (a : v->split(",")) {
b = a->split("=");
if (b->size == 2) h[b[0]] = b[1];
}
return h[name];
}<parser checkInterval="10000" name="">
<macros/>
<file>*Security</file>
<rules>
<rule name="">
<match repeatCount="0" repeatInterval="1">.*</match>
<event>A</event>
<metrics class="java.util.ArrayList"/>
<agentAction action=""></agentAction>
</rule>
</rules>
</parser>SubAgent = logwatchSubAgent = logwatch if (b->size == 2) h[b] = b[1]; println(b);into your script, this way you'll see what exactly is contained in the variables. I'd start with checking of what comes in variable v, it could be that nothing just comes via snmp. Actually, transport->getValue() can return null if there's some problem, so after that line there should be a check for that: if (v == null) return null;
| X | Y | Z | |
| Objects | 20554 | 56040 | 41542 |
| Monitored nodes | 2175 | 2656 | 5376 |
| Collectible DCIs | 34260 | 185742 | 372240 |
| Collected datapoints per second | 372 | 979 | 2290 |
| Stored datapoints, millions | 8995 | 14978 | 44195 |
| RAM, GB | 24 | 74 | 160 |
| CPU cores | 8 | 10 | 20 |
| DB size, GB | 237 | 1500 | 1500 |
| Bytes per datapoint | 53 | 108 | 61 |