Hello!
I have problem showing last value of item collected from external script in Map.
Usually, when i call for example {HOST.HOST:sysName.last()} everything works fine, but my external script includes certain input parameters, and item's key basically looks like:
cdp_discovery.py["-h", "192.168.249.11" , "-c", public, "-i", "1.3.6.1.4.1.9.9.23.1.1.1.1.6.2"]
This item actually gets value of local cdp interface over SNMP from external script. Its output is just string like "GigabitEthernet 0/0"
I tried to show this on map, so I put exactly the same syntax:
{HOST.HOST:cdp_discovery.py["-h", "192.168.249.11" , "-c", public, "-i", "1.3.6.1.4.1.9.9.23.1.1.1.1.6.2"].last()}
But it doesn't work, I get UNKNOWN value in label.
Do you guys have any idea how to make this work?
Thanks,
Marko
I have problem showing last value of item collected from external script in Map.
Usually, when i call for example {HOST.HOST:sysName.last()} everything works fine, but my external script includes certain input parameters, and item's key basically looks like:
cdp_discovery.py["-h", "192.168.249.11" , "-c", public, "-i", "1.3.6.1.4.1.9.9.23.1.1.1.1.6.2"]
This item actually gets value of local cdp interface over SNMP from external script. Its output is just string like "GigabitEthernet 0/0"
I tried to show this on map, so I put exactly the same syntax:
{HOST.HOST:cdp_discovery.py["-h", "192.168.249.11" , "-c", public, "-i", "1.3.6.1.4.1.9.9.23.1.1.1.1.6.2"].last()}
But it doesn't work, I get UNKNOWN value in label.
Do you guys have any idea how to make this work?
Thanks,
Marko