Sysmon - latest CPU Utilisation charts not available

I think that is the expected output. Try the following:
Code:
cd /mod/webif/plugin/sysmon/data
./cpu.jim

Hi xyz321

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# cd /mod/webif/plugin/sysmon/data
HumaxHDRFoxT2two# ./cpu.jim
Content-Type: application/json; charset="UTF-8"; no-cache
Expires: -1
Pragma: no-cache
Cache-Control: no-cache


{
"xdata": [],
"ydata": [
{ "Idle": [] },
{ "Wait": [] },
{ "User": [] },
{ "System": [] }
]
}

HumaxHDRFoxT2two#
 
What does "cat /mod/webif/plugin/sysmon/data/_lib.jim" give you?
What does "opkg list|grep jim" give you?
I'd be looking at force re-installing all the mentioned jim related packages, especially if "cat" works.

Hi prpr

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# cat /mod/webif/plugin/sysmon/data/_lib.jim
#!/mod/bin/jimsh

package require sqlite3
package require cgi

cgi_input

set xdata {}
set mondb [sqlite3.open /mod/monitor/monitor.db]

if {[clock format [clock seconds] -format {%Z}] eq "BST"} {
set tzoffset 3600
} else {
set tzoffset 0
}

proc convtime {dat} {
return [expr 1000 * ($dat + $::tzoffset)]
}

proc setvars {vars} {
set ::vars $vars
foreach var $vars { set ::$var {} }
}

proc parse_range {{def 2h}} {
global scope time int
switch [cgi_get range $def] {
2h {
set scope raw
set time 7200
set int 60
}
5h {
set scope raw
set time 18000
set int 60
}
1d {
set scope 5min
set time 86400
set int 300
}
5d {
set scope 15min
set time $(86400 * 5)
set int 900
}
10d {
set scope hourly
set time $(86400 * 10)
set int 3600
}
30d {
set scope hourly
set time $(86400 * 30)
set int 3600
}
}
}

proc fill_gaps {dat} {{ldat 0}} {
global int xdata vars
# Fill any time gaps...
if {$ldat > 0 && [expr $dat - $ldat] > [expr $int * 2 + 10]}
while {[expr $dat - $ldat - 30] > $int} {
set ldat $($ldat + $int)
lappend xdata [convtime $ldat]
foreach var $vars { lappend ::$var "\"null\""
}
}
set ldat $dat
}

HumaxHDRFoxT2two#

and

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# opkg list|grep jim
jim - 0.74-4 - Jim - lightweight TCL interpreter
jim-binary - 0.74 - Binary extension for jim.
jim-cgi - 0.7 - Jim CGI script library
jim-oo - 0.71 - Object Orientation Extension for jim.
jim-pack - 0.71 - Jim Pack plugin.
A plugin for the jim interpreter (a lightweight TCL interpreter) which
jim-sqlite3 - 0.74-1 - Jim SQLite3 plugin.
A plugin for the jim interpreter (a lightweight TCL interpreter) which
HumaxHDRFoxT2two#
 
Looks OK. Next try "/mod/monitor/bin/vmstat -d" and "ls -lR /mod/monitor"

Reading from the database appears to be working - it's just that there's nothing to read, so that points back to a write problem.
 
Hi prpr


Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# /mod/monitor/bin/vmstat -d



+ Starting vmstat +


Creating table: (create table if not exists vmstat (
dat integer not null primary key,
scope text not null default 'raw'
,freemem integer,buffmem integer,scpu integer,cachemem integer,ucpu int
ger,idle integer,wcpu integer))
RECORD: (insert or replace into vmstat
(dat, scope, freemem, buffmem, scpu, cachemem, ucpu, idle, wcpu
values(1392801052,'raw', '2600', '36752', '19', '48208', '33', '47', '1'))
Rolling up.
Q: (insert or replace into vmstat (dat, scope,freemem,buffmem,scpu,cachemem,ucp
,idle,wcpu) select cast(dat / 300 as integer) * 300,'5min',max(freemem),max(buf
mem),max(scpu),max(cachemem),max(ucpu),max(idle),max(wcpu) from vmstat where sc
pe = 'raw' and dat > 1392797452 group by 1,2)
Q: (insert or replace into vmstat (dat, scope,freemem,buffmem,scpu,cachemem,ucp
,idle,wcpu) select cast(dat / 900 as integer) * 900,'15min',max(freemem),max(bu
fmem),max(scpu),max(cachemem),max(ucpu),max(idle),max(wcpu) from vmstat where s
ope = '5min' and dat > 1392790252 group by 1,2)
Q: (insert or replace into vmstat (dat, scope,freemem,buffmem,scpu,cachemem,ucp
,idle,wcpu) select cast(dat / 3600 as integer) * 3600,'hourly',max(freemem),max
buffmem),max(scpu),max(cachemem),max(ucpu),max(idle),max(wcpu) from vmstat wher
scope = '15min' and dat > 1392757852 group by 1,2)
HumaxHDRFoxT2two#


And

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# ls -lR /mod/monitor
/mod/monitor:
drwx------ 2 root root 4096 Feb 17 14:52 bin
drwx------ 2 root root 4096 Feb 17 14:52 lib
-rw-r--r-- 1 root root 56320 Feb 19 09:12 monitor.db
-rwxr-xr-x 1 root root 90 Mar 29 2013 run

/mod/monitor/bin:
-rwxr-xr-x 1 root root 1002 Nov 13 2012 smart
-rwxr-xr-x 1 root root 591 Apr 27 2012 temp
-rwx------ 1 root root 779 Apr 22 2012 vmstat

/mod/monitor/lib:
-rwx------ 1 root root 2531 Mar 29 2013 db.jim
HumaxHDRFoxT2two#

Rebooted but still nothing for CPU Utilisation (HDD charts still working fine)
 
That looks normal as well. This is getting bizarre. Try these:
Code:
humax# sqlite3 /mod/monitor/monitor.db ".tables"
and
Code:
humax# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
If there are lots of lines for the latter, post perhaps the first and last 20 or so.
 
That looks normal as well. This is getting bizarre. Try these:
Code:
humax# sqlite3 /mod/monitor/monitor.db ".tables"
and
Code:
humax# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
If there are lots of lines for the latter, post perhaps the first and last 20 or so.

Hi prpr

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# sqlite3 /mod/monitor/monitor.db ".tables
> sqlite3 /mod/monitor/monitor.db "select * from vmstat
sqlite3: Error: too many options: "bin"
Use -help for a list of options.

HumaxHDRFoxT2two# help
-/bin/sh: help: not found
HumaxHDRFoxT2two#

Thanks for 'sticking with it'.

Are 'we' getting closer to what's happening?
 
Thank you Martin.

Running again:-

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# sqlite3 /mod/monitor/monitor.db ".tables"
smart temp vmstat
HumaxHDRFoxT2two# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
1392628402|raw|4180|37144|14|46796|17|69|1
1392628665|raw|3164|39428|8|42988|12|78|1
1392647814|raw|11900|21976|3|49896|6|90|0
1392800400|hourly|2600|36752|19|48208|33|47|1
1392801000|5min|2600|36752|19|48208|33|47|1
1392801052|raw|2600|36752|19|48208|33|47|1
HumaxHDRFoxT2two#
 
Is that all of it?
Try this:
Code:
humax# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
humax# for f in /mod/monitor/bin/*; do $f -d ; echo $? ; done
humax# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
 
Hi prpr

Yes, that is all of it.

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
1392628402|raw|4180|37144|14|46796|17|69|1
1392628665|raw|3164|39428|8|42988|12|78|1
1392647814|raw|11900|21976|3|49896|6|90|0
1392800400|hourly|2600|36752|19|48208|33|47|1
1392801000|5min|2600|36752|19|48208|33|47|1
1392801052|raw|2600|36752|19|48208|33|47|1
1392973316|raw|2812|31688|10|50968|16|73|1
HumaxHDRFoxT2two# for f in /mod/monitor/bin/*; do $f -d ; echo $? ; done



+ Starting smart +


Creating table: (create table if not exists smart (
dat integer not null primary key,
scope text not null default 'raw'
,realloc integer,offline integer,startstop integer,pending integer,poh i
nteger))
RECORD: (insert or replace into smart
(dat, scope, realloc, offline, startstop, pending, poh) values(1
392973598,'raw', '0', '0', '100', '0', '292'))
0



+ Starting temp +


Creating table: (create table if not exists temp (
dat integer not null primary key,
scope text not null default 'raw'
,temp integer))
RECORD: (insert or replace into temp
(dat, scope, temp) values(1392973598,'raw', '23'))
0



+ Starting vmstat +


Creating table: (create table if not exists vmstat (
dat integer not null primary key,
scope text not null default 'raw'
,freemem integer,buffmem integer,scpu integer,cachemem integer,ucpu inte
ger,idle integer,wcpu integer))
RECORD: (insert or replace into vmstat
(dat, scope, freemem, buffmem, scpu, cachemem, ucpu, idle, wcpu)
values(1392973598,'raw', '9432', '28896', '14', '49400', '24', '61', '1'))
0
HumaxHDRFoxT2two# sqlite3 /mod/monitor/monitor.db "select * from vmstat"
1392628402|raw|4180|37144|14|46796|17|69|1
1392628665|raw|3164|39428|8|42988|12|78|1
1392647814|raw|11900|21976|3|49896|6|90|0
1392800400|hourly|2600|36752|19|48208|33|47|1
1392801000|5min|2600|36752|19|48208|33|47|1
1392801052|raw|2600|36752|19|48208|33|47|1
1392973316|raw|2812|31688|10|50968|16|73|1
1392973598|raw|9432|28896|14|49400|24|61|1
HumaxHDRFoxT2two#

Have rebooted but still no CPU utilisation charts.
 
At this point, I'd guess that something is wrong with cron on that box, but that doesn't explain why the temperature data collection is working. Can you post the output of 'crontab -l'?

Try running cron in debug mode for a few minutes:

Code:
humax# pkill crond
humax# /mod/sbin/crond -f -d 1
... wait a while and then press Control and C at the same time to return to the prompt ...

You should see output like this:

Code:
crond: wakeup dt=25
crond: file root:
crond:  line /mod/sbin/anacron -s -d
crond:  line /mod/monitor/run
crond:  job: 0 /mod/monitor/run
crond:  line /mod/sbin/rs_process >> /mod/tmp/rs.log 2>&1
crond:  line /mod/sbin/tvdiary_status  >>/mod/tmp/tvdiary.log 2>&1
crond:  job: 0 /mod/sbin/tvdiary_status  >>/mod/tmp/tvdiary.log 2>&1
crond:  line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 24088 cmd /mod/monitor/run
 
In case it is of any relevance: I sampled my three HDRs this morning (all on 2.20) and one of them failed to produce the CPU chart but then did when rechecked.
 
Hi af123.

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# pkill crond
HumaxHDRFoxT2two# /mod/sbin/crond -f -d 1
crond: crond (busybox 1.20.2) started, log level 1
crond: user:root entry:0 2 * * * /mod/sbin/anacron -s -d
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/sbin/anacron -s -d
crond: user:root entry:* * * * * /mod/monitor/run
111111111111111111111111111111111111111111111111111111111111
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/monitor/run
crond: user:root entry:*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
100000000010000000001000000000100000000010000000001000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/webif/lib/bin/auto >/dev/null 2>&1
crond: user:root entry:0 2 * * * /mod/sbin/anacron -s -d
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/sbin/anacron -s -d
crond: user:root entry:* * * * * /mod/monitor/run
111111111111111111111111111111111111111111111111111111111111
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/monitor/run
crond: user:root entry:*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
100000000010000000001000000000100000000010000000001000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/webif/lib/bin/auto >/dev/null 2>&1
crond: wakeup dt=36
crond: file root:
crond: line /mod/sbin/anacron -s -d
crond: line /mod/monitor/run
crond: job: 0 /mod/monitor/run
crond: line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 1005 cmd /mod/monitor/run
crond: wakeup dt=10

HumaxHDRFoxT2two#
 
Hi Black Hole.

I have tried several times after any possible change/fix, from two hours chart through to 30 day chart.

Maybe I need to install/run some other package(s), any suggestions?
 
hummybee, could you try this, I think you may have duplicated entries in your crontab

Code:
humax# cat /mod/var/spool/cron/crontabs/root
 
0 2 * * * /mod/sbin/anacron -s -d
* * * * * /mod/monitor/run
*/10 * * * * /mod/sbin/rs_process >> /mod/tmp/rs.log 2>&1
* * * * * /mod/sbin/tvdiary_status  >>/mod/tmp/tvdiary.log 2>&1
*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
humax#
 
Hi Ezra Pound
Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# cat /mod/var/spool/cron/crontabs/root
0 2 * * * /mod/sbin/anacron -s -d
* * * * * /mod/monitor/run
*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
HumaxHDRFoxT2two#

I have rebooted but no change.
 
Edit your /mod/var/spool/cron/crontabs/root file to change this line:
* * * * * /mod/monitor/run
to this:
* * * * * /mod/monitor/run -d

Reboot the Humax, then open two Telnet sessions.
In the first one, do:
Code:
humax# cat /mod/etc/init.d/S01crond
humax# ps ax|grep crond
humax# pkill crond
humax# /mod/sbin/crond -f -d 1
and in the second run this every minute for say 10 minutes:
Code:
humax# sqlite /mod/monitor/monitor.db "select * from vmstat where dat>1392989000"
 
Ah well, just a thought, it looked like 'crond: command:/mod/sbin/anacron -s -d' and 'crond: user:root entry:* * * * * /mod/monitor/run' was repeated it your #53 listing
 
Ah well, just a thought, it looked like 'crond: command:/mod/sbin/anacron -s -d' and 'crond: user:root entry:* * * * * /mod/monitor/run' was repeated it your #53 listing
This is normal. You would have found that if you'd tried it yourself.
 
Edit your /mod/var/spool/cron/crontabs/root file to change this line:
* * * * * /mod/monitor/run
to this:
* * * * * /mod/monitor/run -d

Reboot the Humax, then open two Telnet sessions.
In the first one, do:
Code:
humax# cat /mod/etc/init.d/S01crond
humax# ps ax|grep crond
humax# pkill crond
humax# /mod/sbin/crond -f -d 1
and in the second run this every minute for say 10 minutes:
Code:
humax# sqlite /mod/monitor/monitor.db "select * from vmstat where dat>1392989000"

First telnet session

Humax HDR-Fox T2 (HumaxHDRFoxT2two) 1.03.11/2.22

HumaxHDRFoxT2two# cat /mod/etc/init.d/S01crond
#!/bin/sh

export TZ=GMT+0BST,M3.5.0/1,M10.5.0/2

case "$1" in
start)
/mod/sbin/crond & ;;
stop)
killall crond ;;
*)
exit 1 ;;
esac

HumaxHDRFoxT2two# ps ax|grep crond
711 ? SNs 0:00 /mod/sbin/crond
1143 pts/0 SN+ 0:00 grep crond
HumaxHDRFoxT2two# pkill crond
HumaxHDRFoxT2two# /mod/sbin/crond -f -d 1
crond: crond (busybox 1.20.2) started, log level 1
crond: user:root entry:0 2 * * * /mod/sbin/anacron -s -d
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/sbin/anacron -s -d
crond: user:root entry:* * * * * /mod/monitor/run
111111111111111111111111111111111111111111111111111111111111
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/monitor/run
crond: user:root entry:*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
100000000010000000001000000000100000000010000000001000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/webif/lib/bin/auto >/dev/null 2>&1
crond: user:root entry:0 2 * * * /mod/sbin/anacron -s -d
100000000000000000000000000000000000000000000000000000000000
001000000000000000000000
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/sbin/anacron -s -d
crond: user:root entry:* * * * * /mod/monitor/run
111111111111111111111111111111111111111111111111111111111111
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/monitor/run
crond: user:root entry:*/10 * * * * /mod/webif/lib/bin/auto >/dev/null 2>&1
100000000010000000001000000000100000000010000000001000000000
111111111111111111111111
11111111111111111111111111111111
111111111111
1111111
crond: command:/mod/webif/lib/bin/auto >/dev/null 2>&1
crond: wakeup dt=40
crond: file root:
crond: line /mod/sbin/anacron -s -d
crond: line /mod/monitor/run
crond: job: 0 /mod/monitor/run
crond: line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 1160 cmd /mod/monitor/run
crond: wakeup dt=10
crond: wakeup dt=50
crond: file root:
crond: line /mod/sbin/anacron -s -d
crond: line /mod/monitor/run
crond: job: 0 /mod/monitor/run
crond: line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 1174 cmd /mod/monitor/run
crond: wakeup dt=10
crond: wakeup dt=50
crond: file root:
crond: line /mod/sbin/anacron -s -d
crond: line /mod/monitor/run
crond: job: 0 /mod/monitor/run
crond: line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 1188 cmd /mod/monitor/run
crond: wakeup dt=10
crond: wakeup dt=50
crond: file root:
crond: line /mod/sbin/anacron -s -d
crond: line /mod/monitor/run
crond: job: 0 /mod/monitor/run
crond: line /mod/webif/lib/bin/auto >/dev/null 2>&1
crond: child running /bin/sh
crond: USER root pid 1202 cmd /mod/monitor/run
crond: wakeup dt=10

How do I open a second telnet session?
 
Back
Top