opennms ver 23.0.2
I set up an extend script that does “netstat -tunlp”
When i query it’s extend OID i get this response
.184.108.40.206.4.1.8072.1.3.2.220.127.116.11.18.104.22.168.22.214.171.124.118.101.1 = STRING: 11
What follows is the datacollection file I set up.
The rcvpkts.rrd file appears under the node number correctly but when I do a rrdtool dump I dont see any value other than zero in the array. Since the values are zero the graph also does not appear.
But when I do an NRT graph I can see the value 11 appearing.
To do some troubleshooting - I replaced the extend script with “echo $RANDOM” - With the same oid, the RRD shows non-zero values and I can graph it too. Response I get with the snmp query is
.126.96.36.199.4.1.8072.1.3.2.188.8.131.52.184.108.40.206.220.127.116.11.118.101.1 = STRING: 24508
Does this have something to do with the number being very small? Both come back as string values.
I also compared with another standard object tcpCurrEstab that is in mib2.xml. It generally reponds with a small number such as 1 or 2. This is the snmpwalk response
.18.104.22.168.22.214.171.124.0 = Gauge32: 1
the rrd file is good and so is the graph.
The difference I can see is that my script responds with a STRING value while tcpCurrentEstab comes back with Gauge32: 1.
I am also using type of Gauge32.
How do I fix this? I am fairly new to opennms so any help would be appreciated