Hi
I try to create my own template for the device.
Something is going well and something is not.
I have successfully imported mibs
I created discovery first, I added items there.
That works for me.
Now I have a few problems that I can't move.
1. how to make a condition that if the given card with the SNMP does not exist to give me an error ??
2. I have the problem as follows. SNMP OID is 1.3.6.1.4.1.44217.1.3.1.10.10.1.2. {# SNMPINDEX}, snmp walk sends value 1.3.6.1.4.1.44217.1.3.1.10.10.1.27.1040200
But I would need to adjust this value some 1040200 and then the first three throw away and the last 2 also throw away. So I would have left 02 and it indicates the position of the card in the chasis.
Can you advise me how to define variables correctly?
3. the problem is as follows, the value is number as follows
1 - preAmplifier
2 - booster
3 - lineAmplifier
How would I be able to name these names? Now I only get the numeric value there
my entry is now Card {#EDFATYPE} slot {#SNMPINDEX}
But the result is "Card 2 slot 1040200", and correctly should be "Card booster slot 02"
I tried it through value mappings. But it didn't help me, can you give me some type of way to deal with it?
4. my problem with which I can't move how to convert text to numbers
snmp value is 268 dBm as text, but somehow I can't switch it to just 268
I found something https://catonrug.blogspot.com/2019/0...rocessing.html but it doesn't work for me
I also looked at the wiki as a regular. I can't turn it into a number.
Could you advise me where I make mistakes? Thank you in advance for any advice
Michal
I try to create my own template for the device.
Something is going well and something is not.
I have successfully imported mibs
I created discovery first, I added items there.
That works for me.
Now I have a few problems that I can't move.
1. how to make a condition that if the given card with the SNMP does not exist to give me an error ??
2. I have the problem as follows. SNMP OID is 1.3.6.1.4.1.44217.1.3.1.10.10.1.2. {# SNMPINDEX}, snmp walk sends value 1.3.6.1.4.1.44217.1.3.1.10.10.1.27.1040200
But I would need to adjust this value some 1040200 and then the first three throw away and the last 2 also throw away. So I would have left 02 and it indicates the position of the card in the chasis.
Can you advise me how to define variables correctly?
3. the problem is as follows, the value is number as follows
1 - preAmplifier
2 - booster
3 - lineAmplifier
How would I be able to name these names? Now I only get the numeric value there
my entry is now Card {#EDFATYPE} slot {#SNMPINDEX}
But the result is "Card 2 slot 1040200", and correctly should be "Card booster slot 02"
I tried it through value mappings. But it didn't help me, can you give me some type of way to deal with it?
4. my problem with which I can't move how to convert text to numbers
snmp value is 268 dBm as text, but somehow I can't switch it to just 268
I found something https://catonrug.blogspot.com/2019/0...rocessing.html but it doesn't work for me
I also looked at the wiki as a regular. I can't turn it into a number.
Could you advise me where I make mistakes? Thank you in advance for any advice
Michal
Comment