List Node IP in Summary Table
-
I am looking for a way to have the IP address for a node listed in its summary table. Alex K. suggested that I use an snmp oid for this, however for the devices that I need this for (Mikrotik RouterOS) this is not supported. So, based on an older thread for a similar topic (https://www.netxms.org/forum/general-support/summarize-other-node-properties-in-addition-to-dcis/), I had the idea of using an unused snmp oid and using a transform script to just have it return the IP address instead. This is what I am looking for assistance with.
I have already shown that I can get the IP and have it show up in a node's data collection config, but still not in the summary table. I did this by creating a dummy oid with the below parameters:
source=internal
name=Dummy(ip)
retention=do not save to the database
transformation script: $node->ipAddrI would like to be able to apply a similar transform script in a way where the ipAddr will show up in a summary table. So I found an oid that we don't care about with an snmp walk and found .1.3.6.1.2.1.2.2.1.6.2, which returns a mac address. I tried applying the below transform script, however this still just returns the mac address and not the IP. This mac address is also not showing up in the summary table for the relevant template. So how can I get it to show up and replace the mac address with the ipAddr of the node?
-
Just tried this
- created a DCI, type: Internal, parameter: Dummy(ip), data type: string, transformation script: return $node->ipAddr;
- checked in last values that this DCI actually collects the IP address
- created summary table, added column named IP addr, DCI name: Dummy(ip)
so there's no need for an OID - DCIs are identified by parameter and parameter in this case is "Dummy(ip)"
-
How do I go about adding a column to a summary table? When I generate the table by right clicking infrastructure services, selecting summary tables, and then choosing the correct platform (in this case Mikrotik), it just generates the table with seemingly no way to add columns.
-
Hello! It looks like you're interested in this conversation, but you don't have an account yet.
Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.
With your input, this post could be even better 💗
Register Login