1

Topic: System Status info in Web Interface

It would be great if the CPU load was available without having to poke through the LCD at the rack(s)!
I know that one could send the apprentice out to select the right screen, then look at the image in the Web Interface, but this seems a bit low-tech! big_smile
Or is this already in 1.4.1, and I haven't checked? (I'm at home at present)

"The single biggest problem in communication is the illusion that it has taken place."
                                                                                        - George Bernard Shaw

2

Re: System Status info in Web Interface

No, it is not in 1.4.1, but it is already on the feature request list.

Make it intuitive, never leave them guessing.

3

Re: System Status info in Web Interface

HI,

I also had to monitor those values so I wrote a little script... (code is here below)

The values are displayed in the message display of the control script and are updated every second.
On the first line you read:
The first three fields are load average figures giving the number of jobs in the run queue (state R) or waiting for disk I/O (state D) averaged  over  1,  5,  and  15 minutes.
They are the same as the load average numbers given by nion display.  The fourth field consists of two numbers separated by a slash (/).
The first of these is the number of currently executing kernel scheduling entities (processes, threads); this will be less than or equal to the number of CPUs.
The value after  the slash is the number of kernel scheduling entities that currently exist on the system.
The fifth field is the PID of the process that was most recently created on the system.
On the second lilne you read the CPU usage in percent average over the last second. This one varies from the one displayed on the nion, probably because they are evaluated
differently.

--
Raphaël.

try:
  cpu = open('/proc/stat', 'r').readline().strip()
  while True:
    loadavg = open('/proc/loadavg', 'r').readline().strip()
    event.wait(1000)
    cpu1 = open('/proc/stat', 'r').readline().strip()
    c = cpu.split()
    c1 = cpu1.split()
    u = float(c1[1]) - float(c[1])
    s = float(c1[3]) - float(c[3])
    i = float(c1[4]) - float(c[4])
    p = ((u + s) / (u + s + i)) * 100.0
    message.string_set("%s\n%02.2f%%" % (loadavg, p))
    cpu = cpu1
except:
  message.string_set("Does not work in emulate mode!")

--
Raphaël Bollen
Ampco Belgium.

4

Re: System Status info in Web Interface

Scott,

If this item is already on this list for 'web interface'...  a similar item we'd like to request is front panel navigation from the web interface.  In other words, when we're looking at the front panel image, being able to click the 'next' button, etc.

Thanks,

Joe