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

Cisco routers have the OID .1.3.6.1.2.1.1.3.0 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_begin
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_snmp
module_oid .1.3.6.1.2.1.1.3.0
module_community vodat-public
module_end

Thanks
Chris
 Reply
#2
Hello

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

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

http://wiki.pandorafms.com/index.php?title=Pandora:Documentation_en:Remote_Monitoring#Monitoring_with_Plug_Ins

[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]
 Reply
#4
Hello

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.

Regards
Ivo
 Reply
#5
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?
 Reply
#6
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,
 Reply
#7
Is the 99.9 uptime guarantee for every month or a year?
 Reply


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. | pandorafms.com | pandorafms.org

Theme © MyBB Themes