Welcome to the Cumulus Support forum.

Latest Cumulus MX V3 release 3.28.6 (build 3283) - 21 March 2024

Cumulus MX V4 beta test release 4.0.0 (build 4017) - 17 March 2024

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 drop-down menus to 2030)

Download the Software (Cumulus MX / Cumulus 1 and other related items) from the Wiki

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

Locked
User avatar
ConligWX
Posts: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 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 • PurpleAir •

Image
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: 93
Joined: Tue 19 Oct 2010 12:20 am
Weather Station: Ambient Weather WS-2080
Operating System: 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: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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: 1570
Joined: Mon 19 May 2014 10:45 pm
Weather Station: Davis vPro2+ w/DFARS + AirLink
Operating System: Ubuntu 22.04 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 • PurpleAir •

Image
User avatar
Werk_AG
Posts: 198
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino 4Pro
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: 12689
Joined: Thu 07 Jan 2010 9:44 pm
Weather Station: Davis VP2/WLL
Operating System: Bullseye 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
User avatar
philpugh
Posts: 381
Joined: Tue 24 May 2011 8:34 am
Weather Station: See Signature
Operating System: Debian 11 (RPi4)
Location: Antrobus, Cheshire, UK
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
GW1000 + WH65/WH57/WH31; HP2551 + WS68/WH40A; GW2001 WittBoy
cumulusutils generating website
http://goosegate.uk/
User avatar
Werk_AG
Posts: 198
Joined: Sun 13 Jan 2013 8:04 pm
Weather Station: WeatherDuino 4Pro
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.
Locked