Hi all,

I have some printers where I use SNMP to get data for the toner levels. Now I have some problem with a few Xerox printers. You have to calculate between 2 different values to get the percentage of the toner levels.

Is there some way to calculate "snmp object value""snmp object value 2" * 100

I tried by an execute script but I do not get the3 values how I want it.

Hope someone can help me :)

Renzo

asked 24 Jul '19, 09:25

renzo_massi's gravatar image

renzo_massi
1114
accept rate: 0%


Hi Renzo,

You can use the SNMP monitor to get the calculated value you need from the two objects. First you will need to add an new monitored object, I'd suggest using the "snmp object value" form you example. Then edit that monitored object and add a variable ($Var1$) to be used in your calculation, this would be your "snmp object value 2". This gets you all of the data needed to calculate the actual number that you need.

Next, in the Scale Value box you could enter something like this...

(value \ $Var1$) * 100

You may also want to add an Alias to this Monitored Object because you are calculating something different from the original object.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 24 Jul '19, 10:37

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Hi Quinn,

I understand your explanation only I can not figure out how to add a variable to a monitored snmp object. I thought it was at the custom properties part but that is not working. Also I dont see something under the edit options of the monitored snmp object.

Am I missing something maybe?

link

answered 25 Jul '19, 02:50

renzo_massi's gravatar image

renzo_massi
1114
accept rate: 0%

Renzo,

When you have the menu opened to edit the monitored SNMP object there is an Advanced Options button, select that. That will expand the menu to give you more options. There will be 4 variables that you can enter OIDs for under the Object OID. For example $Var1$ and $Var2$...

Once you have OIDs in the variables you can use them in the Scale Value option.

Thanks
Quinn

Please make sure to mark your questions accepted when you have your answer by clicking the gray check mark to the left of the answer.

link

answered 25 Jul '19, 09:11

Quinn's gravatar image

Quinn ♦♦
14.5k3925
accept rate: 35%

Ah, that option is missing. I think the version is to old here. Version 6(year 2015). I go upgrade first then, now understand why I can not see this :)

link

answered 25 Jul '19, 09:19

renzo_massi's gravatar image

renzo_massi
1114
accept rate: 0%

The cheapest way to make sure that the Yearly Support is current on your licenses. Then you can download and upgrade for Free. I can check your support status if you would like. I'll need to know the license number. If you want to send this in an email please send it to support@poweradmin.com

(25 Jul '19, 09:45) Quinn ♦♦
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×26
×1

Asked: 24 Jul '19, 09:25

Seen: 2,707 times

Last updated: 25 Jul '19, 09:45