Display Uptime As Gprint

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
User avatar
slen6969
Posts: 3
Joined: Wed Apr 11, 2007 2:56 pm

Display Uptime As Gprint

Post by slen6969 »

I am looking for a way to display System Uptime as a Gprint at the bottom of one of my custom graphs.

The snmpget looks as follows.

snmpget -v1 -c public <Host Removed> .1.3.6.1.2.1.1.3.0

Which returns as follows.

DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (1689366) 4:41:33.66

I have added the data template, and it is showing in my graph as a Gprint at the bottom, but it is simply showing the Timeticks: (1689366), like so.

Uptime: 1689366

What I need it to show is either the whole thing or just the calculated days, hours minutes. Something like this...

Uptime: 4:41:33.66

I suspect this may have some to do with the Gprint Preset I am using but I have been unable to find anything on the forums, docs or generally on the Internet.

If anyone can help it would be much appreciated.

Cheers
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Post by gandalf »

Find two ready-to-use templates at http://forums.cacti.net/viewtopic.php?t=5951
Reinhard
User avatar
slen6969
Posts: 3
Joined: Wed Apr 11, 2007 2:56 pm

Post by slen6969 »

Hey Reinhard

Thanks for the quick reply. Figures that is was in the forums the whole time. Sorry for the wasted time.

Cheers
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests