Hello,

I want to monitor a 8 channel camera recording system. When one camera input has no video i get a number via snmp. When another i get a different number. when 2 or 3 or 4 different camera's don't work i get all different numbers.

I can get it to work with a snmpcustomsensor and alarm based on value lookup. i can enter all the different numbers but i will have to write 256 lines of code or something like that.

The supplier of the recorder told me: "For an 8 channel recorder, the OID value is range from 0 to 255. Any of the value is possible. And if you check the OID value and use the list to find the alarm channel, you need 256 commands.

A better way is to use the getbit ,and check if the alarm has been triggered and by channels. Then you just need check 8 times for an 8 channel recorder and 4 times for a 4 channel recorder.

For example, if you get a OID value 5, you can check as follow:

getbit(5,1) ? -1 (true)
getbit(5,2) ? 0 (false)
getbit(5,3) ? -1 (true)
getbit(5,4) ? 0 (false)

Then you know, channel 1 and channel 3 has alarm. "

So here is my question:

Can i use this Getbit in prtg or is there some other way to get the data without having to write a lot of codes in a lookup?


Article Comments

Hi ernst,

To get a better picture of your situation. Which certain (raw) values do you expect and what status is possible?

Thank you!

Best Regards,
Moritz Heller
Paessler Tech Support


Aug, 2019 - Permalink

Hello,

This is what i got from my supplier: https://www.dropbox.com/s/te5cskfo6h3xqrk/oid%20example.JPG?dl=0

The output is binaire so all the outputs are: https://www.dropbox.com/s/f6i3ift8qbg5yl2/Camera%20videoloss%20Error%20outputs.xlsx?dl=0


Aug, 2019 - Permalink

Hi Ernst,

Thank you for the information.

Have you take a look at the "BitField" option in the SNMP Lookup feature? With this function you can directly address bits and trigger status, depending on which bit is activated and which is not.
Alternatively, you can use a script that generates all lookup entries.

Best Regards,
Moritz Heller
Paessler Support


Aug, 2019 - Permalink