Welcome to the Cumulus Support forum.

Latest Cumulus MX release 3.9.0 (build 3095) - 09 October 2020 (please see announcement regarding releases since 3.5.0)
Legacy Cumulus 1 release v1.9.4 (build 1099) - 28 November 2014 (a patch is available for 1.9.4 build 1099 that extends the date range of the NOAA report and Snow Index drop-down menus to 2030)

Use this Wiki link to Download the Software (Cumulus MX / Cumulus 1 and other related items).

Linux Support for Uptime/Memory

Topics about the Beta trials up to Build 3043, the last build by Cumulus's founder Steve Loft. It was by this time way out of Beta but Steve wanted to keep it that way until he made a decision on his and Cumulus's future.

Moderator: mcrossley

Post Reply
User avatar
ConligWX
Posts: 905
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus +DFARS
Operating System: Ubuntu 20.04.01 LTS
Location: Bangor, NI
Contact:

Linux Support for Uptime/Memory

Post by ConligWX »

Hi

I am using Saratoga Templates with CumulusMX and running it on Debian Jessie. I have noticed however the System uptime is not reported from CUtags.php. Ken from Saratoga has said the uptime is reported in Windows 10 with CumulsMX so he cannot confirm if this is a Linux issue or not.

extract from CUtags.txt:
OsVersion|Unix 3.16.0.4:|:
OsLanguage|English (United Kingdom):|:
SystemUpTime|0 days 0 hours:|:
ProgramUpTime|11 days 5 hours:|:
CpuName|n/a:|:
CpuCount|2:|:
MemoryStatus|n/a:|:
DisplayMode|n/a:|:
is this a missing feature of CumulusMX running on Linux?
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • CumulusMX •

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Linux Support for Uptime/Memory

Post by steve »

<#MemoryStatus> isn't implemented in MX, but <#SystemUpTime> is. Perhaps Mono doesn't implement the required PerformanceCounter.
Steve

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Linux Support for Uptime/Memory

Post by steve »

But note that the first call apparently returns zero anyway.
Steve

Hunter362
Posts: 85
Joined: Tue 19 Oct 2010 12:20 am
Weather Station: Ambient Weather WS-2080
Operating System: Windows 7 - Ubuntu 14.4
Location: Fairmount, New York (USA)
Contact:

Re: Linux Support for Uptime/Memory

Post by Hunter362 »

Toxic17 wrote:Hi

I am using Saratoga Templates with CumulusMX and running it on Debian Jessie. I have noticed however the System uptime is not reported from CUtags.php. Ken from Saratoga has said the uptime is reported in Windows 10 with CumulsMX so he cannot confirm if this is a Linux issue or not.

extract from CUtags.txt:
OsVersion|Unix 3.16.0.4:|:
OsLanguage|English (United Kingdom):|:
SystemUpTime|0 days 0 hours:|:
ProgramUpTime|11 days 5 hours:|:
CpuName|n/a:|:
CpuCount|2:|:
MemoryStatus|n/a:|:
DisplayMode|n/a:|:
is this a missing feature of CumulusMX running on Linux?
For your system uptime, try <?php echo exec('uptime -p'); ?>
Use that right in your page, not from your CUtags file.

User avatar
mcrossley
Posts: 6986
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Linux Support for Uptime/Memory

Post by mcrossley »

Hunter362 wrote: For your system uptime, try <?php echo exec('uptime -p'); ?>
Use that right in your page, not from your CUtags file.
Only if your web server is on the same server as your Cumulus, otherwise it gives the web server uptime?

User avatar
ConligWX
Posts: 905
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2 Plus +DFARS
Operating System: Ubuntu 20.04.01 LTS
Location: Bangor, NI
Contact:

Re: Linux Support for Uptime/Memory

Post by ConligWX »

Thank, my Webserver is a QNAP. Cumulus runs on an Intel NUC / Debian jessie. i'll customise the status page to suit.

thanks
Regards Simon

https://www.conligwx.org - @conligwx
Davis Vantage Pro2 Plus with Daytime FARS • WeatherLink Live • Davis AirLink • CumulusMX •

User avatar
Werk_AG
Posts: 182
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino Pro2 PLUS
Operating System: Windows 7
Location: Cercal CDV - Portugal
Contact:

Re: Linux Support for Uptime/Memory

Post by Werk_AG »

steve wrote:<#MemoryStatus> isn't implemented in MX, but <#SystemUpTime> is. Perhaps Mono doesn't implement the required PerformanceCounter.
System uptime is not reported from CUtags.php in my RPi system too:

OsVersion|Unix 4.1.13.0:|:
OsLanguage|Portuguese (Portugal):|:
SystemUpTime|0 days 0 hours:|:
ProgramUpTime|0 days 0 hours:|:
CpuName|n/a:|:
CpuCount|1:|:

As <#SystemUpTime> is implemented in CumulusMX, could this problem be related with Mono or due to I'm using Portuguese language?

Info bellow from the CumulusMX star/stop script with -s option:
System Uptime of RasberryPi(CumulusMX) is: 1 day 22 hours 34 minutes

User avatar
mcrossley
Posts: 6986
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2
Operating System: Buster Lite rPi
Location: Wilmslow, Cheshire, UK
Contact:

Re: Linux Support for Uptime/Memory

Post by mcrossley »

This is a know issue, Steve hasn't found a multi-platform solution to fetching that data yet.

User avatar
steve
Cumulus Author
Posts: 26702
Joined: Mon 02 Jun 2008 6:49 pm
Weather Station: None
Operating System: None
Location: Vienne, France
Contact:

Re: Linux Support for Uptime/Memory

Post by steve »

Yes, see above. In theory system uptime should be fine as it's available via .net and hence should be available on all platforms via mono. Apparently it doesn't work on all platforms and I don't know why. Hopefully everyone understands that investigating this cannot be a high priority for me.
Steve

philpugh
Posts: 135
Joined: Tue 24 May 2011 8:34 am
Weather Station: DAVIS VantageVue
Operating System: Debian 10 (Buster)
Location: Antrobus, Cheshire
Contact:

Re: Linux Support for Uptime/Memory

Post by philpugh »

I use #ProgramUpTime successfully to display how long CumulusMX has been running - not the same as #SystemUpTime I know, but more useful to me as the main system (BananaPi/SSD) stays up as long as there is power as it runs my webserver and mail system.
Phil Pugh
Davis Vantage Vue Raspberry Pi 3B Buster
Using TCP/IP connection to Meteobridge
http://goosegate.uk/

User avatar
Werk_AG
Posts: 182
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino Pro2 PLUS
Operating System: Windows 7
Location: Cercal CDV - Portugal
Contact:

Re: Linux Support for Uptime/Memory

Post by Werk_AG »

mcrossley wrote:This is a know issue, Steve hasn't found a multi-platform solution to fetching that data yet.
Thank mcrossley. I thought that it could be related to the fact that I'm using Portuguese language, and some problem with the date format.

steve wrote:Yes, see above. In theory system uptime should be fine as it's available via .net and hence should be available on all platforms via mono. Apparently it doesn't work on all platforms and I don't know why. Hopefully everyone understands that investigating this cannot be a high priority for me.
Thank you Steve.
Of course I understand. The issue is not very important to me too.
philpugh wrote:I use #ProgramUpTime successfully to display how long CumulusMX has been running - not the same as #SystemUpTime I know, but more useful to me as the main system (BananaPi/SSD) stays up as long as there is power as it runs my webserver and mail system.
Thank you philpugh
I will try it. Having this will be enough for me.

Post Reply