Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
SNMP uptime formatting
Hi, i'm wondering if its possible to format the value returned by SNMP into a human time?

Cisco routers have the OID . which is found by the recon task, this is the time (in hundredths of seconds) since the router was last reloaded. This displays as a raw number for the module result. Can i format this or get this to display as a dd/mm/yyhhConfuseds format?

module_name sysUpTime
module_description The time (in hundredths of a second) since the network management portion of the system was last re-initialized.
module_type remote_snmp_string
module_oid .
module_community vodat-public


You can use the post process feature in the module's advanced settings to change the time setting.

Thanks for the info, do you have any examples, or documentation on how to do this? the only bit i can find is:

[quote]Post Process

The module's post processing. It's useful to multiply or divide the returned value, e.g. when we obtain bytes and we want to show the value in Megabytes. [/quote]

You can find more information on this on the proper console. There is a question icon next to the parameter click on it and there you can find additional information.

Thanks, i have already checked here, and it does not contain much more information than the documentation i quoted above.

[quote]Post process
Post process is a numeric value used after get data to numerical post process in a multiplier operation. For example a data with a value of 1000 with a Post Process value of 1024 will result in a definitive data of 1024000 value. This is useful to normalize data, convert between units, etc. This also can be used to divide, using a multiplier below 1 value, like, for example, 0.001 that will divide current value by 1000.

An empty value, or 0, will disable the usage of post process (default). [/quote]

is there any more detailed information available on how to perform this processing?
The default SNMP check just returns a number of seconds of uptime. So, you should write a simple plugin to check uptime by snmpget with Cisco MIB. You will get a readable result like: 24 hour 30 minutes 15 second.... in string type (generic string).

Hope this help,
Is the 99.9 uptime guarantee for every month or a year?

Users browsing this thread: 1 Guest(s)

(c) 2006-2018 Artica Soluciones Tecnol├│gicas. Contents of this wiki are under Create Common Attribution v3 licence. | |

Theme © MyBB Themes