Hi there,
I am trying to set up omv autoshutdown to shut down the system when the load average is under 0.4
So I set under service->autoshutdown->Load Average-> the value to 40
Unfortunally this doesn't work. The system is still shutting down although the average load is over 1.0
In the debug log file I think I can see that there is a problem with getting the load average value because CURRENT_LOADAVERAGE and CURRENT_LOADAVERAGE_TEMP2: is empty?!
logfile:
local6 autoshutdown[29443]: DEBUG: ' _check_loadaverage(): Output of: 'top -b -n 1 | grep 'load average''
autoshutdown[29443]: DEBUG: ' _check_loadaverage(): Output of: 'top -b -n 1 | grep 'load average''
local6 autoshutdown[29443]: DEBUG: ' _check_loadaverage(): 'top - 21:32:06 up 4:00, 0 users, load average: 0,96, 1,08, 1,13''
DEBUG: ' _check_loadaverage(): 'top - 21:32:06 up 4:00, 0 users, load average: 0,96, 1,08, 1,13''
DEBUG: ' _check_loadaverage(): CURRENT_LOADAVERAGE_TEMP2: '
DEBUG: ' _check_loadaverage(): CURRENT_LOADAVERAGE_TEMP2: '
DEBUG: ' _check_loadaverage(): CURRENT_LOADAVERAGE: '
DEBUG: ' _check_loadaverage(): CURRENT_LOADAVERAGE: '
local6 autoshutdown[29443]: INFO: ' Loadaverage ( -> ) is lower than target (4)'
INFO: ' Loadaverage ( -> ) is lower than target (4)'
DEBUG: ' _check_loadaverage(): RVALUE: 0'
DEBUG: ' _check_loadaverage(): RVALUE: 0'
local6 autoshutdown[29443]: DEBUG: ' _check_system_active(): call _check_loadaverage -> CNT: 0 '
DEBUG: ' _check_system_active(): call _check_loadaverage -> CNT: 0
Somebody has a solution or knows the problem?
Cheers