Graphing timetick valus in cacti

Templates, scripts for templates, scripts and requests for templates.

Moderators: Developers, Moderators

Post Reply
virus84
Posts: 20
Joined: Thu Nov 01, 2007 2:23 am
Location: Jönköping

Graphing timetick valus in cacti

Post by virus84 »

Hello

Im trying to graph remaining runtime on a UPS i got the OID and get the following respons from the UPS.

PowerNet-MIB::upsAdvBatteryRunTimeRemaining.0 = Timeticks: (270000) 0:45:00.00

And thats not the normal Gauge value and if i try using it in cacti i only get a value U. Any idés how i can graph this?

Thanks for any help
Regards
Magnus
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

You need a script to convert it from a time to a number which rrdtool can store.
virus84
Posts: 20
Joined: Thu Nov 01, 2007 2:23 am
Location: Jönköping

Post by virus84 »

Ah oki any sugestions on any availible scripts to do that? Im not so good at scripting.

Regards
Magnus
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

Any language you want / comfortable. Looks like the OID already has the raw value you need (270000), and just need to access that instead of the converted timetick value...
Post Reply

Who is online

Users browsing this forum: No registered users and 6 guests