New Question
 
 
PRTG Network Monitor

Intuitive to Use.
Easy to manage.

300.000 administrators have chosen PRTG to monitor their network. Find out how you can reduce cost, increase QoS and ease planning, as well.

Free PRTG
Download >>

 

What is this?

This knowledgebase contains questions and answers about PRTG Network Monitor and network monitoring in general. You are invited to get involved by asking and answering questions!

Learn more

 

Top Tags


View all Tags


Is it possible to round the value of a Gauge float?

Votes:

0

Your Vote:

Up

Down

Hi, everyone. I created a SNMPCustomSensor. The value I get back is the Total Ramsize of a Sophos UTM9 Firewall in KByte (8101408). But I want it in GB so I divided it with 1048576. It is a realy long value behind the comma. Is there a chance to round the result to 2 numbers behind the comma?

best regards

customsensor float gauge prtg rounding snmp

Created on Jun 25, 2015 9:15:18 AM by  edvniemet (130) 1 2



Best Answer

Accepted Answer

Votes:

8

Your Vote:

Up

Down

Hi I'm using the following OID's. I've not tested every one.

Useful SNMP Query OIDs

The following list contains some commonly used OID values for SNMP queries. This is not an exhaustive list, and more information may be found by using an application capable of walking the SNMP tree, and returning all available values.

UTM Name: 1.3.6.1.2.1.1.5.0
UTM Location: 1.3.6.1.2.1.1.6.0
Total Physical RAM: .1.3.6.1.4.1.2021.4.5.0
System Uptime: .1.3.6.1.2.1.25.1.1.0
System Time: .1.3.6.1.4.1.2021.100.4.0

Network Interface Details

Each interface may be referenced directly, by replacing the # with its corresponding number

Number of network interfaces: .1.3.6.1.2.1.2.1.0
Interface Name: .1.3.6.1.2.1.2.2.1.2.#
MTU: .1.3.6.1.2.1.2.2.1.4.#
Link Speed: .1.3.6.1.2.1.2.2.1.5.#
MAC Address: .1.3.6.1.2.1.2.2.1.6.#
Bytes Received: .1.3.6.1.2.1.2.2.1.10.#
Unicast Packets Received: .1.3.6.1.2.1.2.2.1.11.#
Discarded Incoming Packets: .1.3.6.1.2.1.2.2.1.13.#
Receive Errors: .1.3.6.1.2.1.2.2.1.14.#
Bytes Sent: .1.3.6.1.2.1.2.2.1.16.#
Unicast Packets Sent: .1.3.6.1.2.1.2.2.1.17.#
Discarded Outgoing Packets: .1.3.6.1.2.1.2.2.1.19.#
Send Errors: .1.3.6.1.2.1.2.2.1.20.#

Memory Usage

Total Physical RAM: .1.3.6.1.4.1.2021.4.5.0
Total Physical RAM used: .1.3.6.1.4.1.2021.4.6.0
Total Physical RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total Swap: .1.3.6.1.4.1.2021.4.3.0
Total Swap Free: .1.3.6.1.4.1.2021.4.4.0

System/CPU Load

Load Average over previous 1 minute: 1.3.6.1.4.1.2021.10.1.3.1
Load Average over previous 5 minutes: 1.3.6.1.4.1.2021.10.1.3.2
Load Average over previous 15 minutes: 1.3.6.1.4.1.2021.10.1.3.3

CPU IDLE Time

Percent of time CPU is idle: 1.3.6.1.4.1.2021.11.11.0

Source

Sophos Article 119371 Appendix for RMM

Best regards

Alexander Berkahn

Created on Jun 30, 2015 9:13:18 AM by  edvniemet (130) 1 2

Last change on Jun 30, 2015 11:50:29 AM by  Luciano Lingnau [Paessler Support]



3 Replies

Votes:

0

Your Vote:

Up

Down

If you go into the channel settings on the Sensor Overview page, there should a place to change how many decimals are shown in the result. Would it be possible to share here what OIDs you are using for the sensor in case someone else is looking to monitor that device?

Created on Jun 26, 2015 1:58:52 PM by  Greg Campion [Paessler Support]



Accepted Answer

Votes:

8

Your Vote:

Up

Down

Hi I'm using the following OID's. I've not tested every one.

Useful SNMP Query OIDs

The following list contains some commonly used OID values for SNMP queries. This is not an exhaustive list, and more information may be found by using an application capable of walking the SNMP tree, and returning all available values.

UTM Name: 1.3.6.1.2.1.1.5.0
UTM Location: 1.3.6.1.2.1.1.6.0
Total Physical RAM: .1.3.6.1.4.1.2021.4.5.0
System Uptime: .1.3.6.1.2.1.25.1.1.0
System Time: .1.3.6.1.4.1.2021.100.4.0

Network Interface Details

Each interface may be referenced directly, by replacing the # with its corresponding number

Number of network interfaces: .1.3.6.1.2.1.2.1.0
Interface Name: .1.3.6.1.2.1.2.2.1.2.#
MTU: .1.3.6.1.2.1.2.2.1.4.#
Link Speed: .1.3.6.1.2.1.2.2.1.5.#
MAC Address: .1.3.6.1.2.1.2.2.1.6.#
Bytes Received: .1.3.6.1.2.1.2.2.1.10.#
Unicast Packets Received: .1.3.6.1.2.1.2.2.1.11.#
Discarded Incoming Packets: .1.3.6.1.2.1.2.2.1.13.#
Receive Errors: .1.3.6.1.2.1.2.2.1.14.#
Bytes Sent: .1.3.6.1.2.1.2.2.1.16.#
Unicast Packets Sent: .1.3.6.1.2.1.2.2.1.17.#
Discarded Outgoing Packets: .1.3.6.1.2.1.2.2.1.19.#
Send Errors: .1.3.6.1.2.1.2.2.1.20.#

Memory Usage

Total Physical RAM: .1.3.6.1.4.1.2021.4.5.0
Total Physical RAM used: .1.3.6.1.4.1.2021.4.6.0
Total Physical RAM Free: .1.3.6.1.4.1.2021.4.11.0
Total Swap: .1.3.6.1.4.1.2021.4.3.0
Total Swap Free: .1.3.6.1.4.1.2021.4.4.0

System/CPU Load

Load Average over previous 1 minute: 1.3.6.1.4.1.2021.10.1.3.1
Load Average over previous 5 minutes: 1.3.6.1.4.1.2021.10.1.3.2
Load Average over previous 15 minutes: 1.3.6.1.4.1.2021.10.1.3.3

CPU IDLE Time

Percent of time CPU is idle: 1.3.6.1.4.1.2021.11.11.0

Source

Sophos Article 119371 Appendix for RMM

Best regards

Alexander Berkahn

Created on Jun 30, 2015 9:13:18 AM by  edvniemet (130) 1 2

Last change on Jun 30, 2015 11:50:29 AM by  Luciano Lingnau [Paessler Support]



Votes:

0

Your Vote:

Up

Down

Thanks for the info and the post!

Created on Jun 30, 2015 11:42:50 AM by  Greg Campion [Paessler Support]



Please log in or register to enter your reply.


Disclaimer: The information in the Paessler Knowledge Base comes without warranty of any kind. Use at your own risk. Before applying any instructions please exercise proper system administrator housekeeping. You must make sure that a proper backup of all your data is available.