GFI Software

Welcome to the GFI Software community forum! For support please open a ticket from https://support.gfi.com.

Home » GFI User Forums » Kerio Control » Get UPTIME matching dashboard value (programmatically)
search_button_green_16.png  Get UPTIME matching dashboard value [message #116316] Thu, 25 September 2014 15:38 Go to next message
sorat is currently offline  sorat
Messages: 59
Registered: November 2013
Location: byr
I need to programmatically get the UPTIME value, that displayed in System Status dashboard, for later use in scripts.
I explain.
Obviously, the value itself is time from latest reboot of kerio shell.
This is not the same as system uptime.

For example, server itself can have 1 year of uptime, but kerio control have 20 minutes, because of restart of service (update, rare crash, etc.)

I tried SNMP, but the uptime value gives time count from snmp service startup moment.
And snmp walk shows no other useful values there .

Any tip from Kerio folks here, maybe?
Re: Get UPTIME matching dashboard value [message #116425 is a reply to message #116316] Tue, 30 September 2014 08:39 Go to previous messageGo to next message
mlee (Kerio)
Messages: 211
Registered: October 2012
Location: Sydney
A grep and top of the winroute process will give you a time:

~ # top | grep winroute
1364 root 20 0 121m 44m 17m S 0.3 4.4 32:11.12 winroute

32:11.12 = minutes:seconds.hundredths (TIME+)

Alternatively, ps aux | grep winroute gives you similar value with no live update.

M.


PTSD. BP. OCD. ASPD. BPD. Certified.
Re: Get UPTIME matching dashboard value [message #116430 is a reply to message #116425] Tue, 30 September 2014 09:57 Go to previous message
sorat is currently offline  sorat
Messages: 59
Registered: November 2013
Location: byr
Hey, mlee.
I forgot to mention, I thought of that too, and already cheched.
The result is oddly different than one would expect tho.
I attached a pic.
The 23k minutes is around 16 days. And uptime in dashboard is 20.
Hmmm.
Previous Topic: Captive Portal not so captive
Next Topic: Kerio Control sometimes crash
Goto Forum:
  


Current Time: Mon Oct 02 10:41:26 CEST 2023

Total time taken to generate the page: 0.05982 seconds