tsatsa
-
Posts
5 -
Joined
-
Last visited
Content Type
Profiles
Forums
Downloads
Store
Gallery
Bug Reports
Documentation
Landing
Posts posted by tsatsa
-
-
Hi
On the stats page (processor/memory,network), is it normal that graphs show data from the server was booted and forever after ? i have had graphs showing weeks of data ? is this a bug ?
i booted my server today 16.30 ... and now its 2300. Could you add a feature/setting showing last 1,3,6,12,24,48 hours etc. ?
br tsatsa
-
Excelente ... very cool add on
-
Hi
in the Stats package, could you edit the crontab script, end of doinst.sh so it does not log into the syslog file every 2 minute ?
the other entries in my crontab have a > /dev/null added ... think that will do the trick .. no ?
Logfile below.
Br tsatsa
Mar 8 11:26:01 Tower kernel: crond[17739]: segfault at b785e51c ip b785e51c sp bff49f94 error 15 in ld-2.11.1.so[b785e000+1000]
Mar 8 11:28:01 Tower crond[1099]: exit status 1 from user root /usr/lib/sa/sa1 1 1
Mar 8 11:28:01 Tower kernel: crond[18031]: segfault at b785e51c ip b785e51c sp bff49f94 error 15 in ld-2.11.1.so[b785e000+1000]
Mar 8 11:30:01 Tower crond[1099]: exit status 1 from user root /usr/lib/sa/sa1 1 1
Mar 8 11:30:01 Tower kernel: crond[18339]: segfault at b785e51c ip b785e51c sp bff49f94 error 15 in ld-2.11.1.so[b785e000+1000]
Mar 8 11:32:01 Tower crond[1099]: exit status 1 from user root /usr/lib/sa/sa1 1 1
Mar 8 11:32:01 Tower kernel: crond[18635]: segfault at b785e51c ip b785e51c sp bff49f94 error 15 in ld-2.11.1.so[b785e000+1000]
-
hi
Just installed your plugin on 5.0-Beta14 ... is reports a syntax error in the drive_mount.sh script
root@Tower:/boot/config/plugins/drive_mount# ./drive_mount.sh update
./drive_mount.sh: eval: line 34: syntax error near unexpected token `}'
./drive_mount.sh: eval: line 34: `}'
root@Tower:/boot/config/plugins/drive_mount#
hence the webgui is blank and no drives can be mounted. Script looks ok to me - any idears ?
br. tsatsa
ps got the plex-media-server-noarch-0.9.5.3a-ds.plg from link in this thread, script below:
#!/bin/bash
write_config() {
echo "# drive_mount configuration" > /boot/config/plugins/drive_mount/drive_mount.cfg
for INDEX in ${!device_id[@]}; do
echo "[${device_id[$INDEX]}]" >> /boot/config/plugins/drive_mount/drive_mount.cfg
echo "DRIVE_NAME=\"${device_disk[$INDEX]}\"" >> /boot/config/plugins/drive_mount/drive_mount.cfg
echo "DRIVE_MOUNT=\"${device_mount[$INDEX]}\"" >> /boot/config/plugins/drive_mount/drive_mount.cfg
echo "DRIVE_MOUNTED=\"${device_mounted[$INDEX]}\"" >> /boot/config/plugins/drive_mount/drive_mount.cfg
echo "DRIVE_ENABLED=\"${device_enabled[$INDEX]}\"" >> /boot/config/plugins/drive_mount/drive_mount.cfg
done
}
cfg.parser () {
ini="$(<$1)" # read the file
ini="${ini//[/\[}" # escape [
ini="${ini//]/\]}" # escape ]
IFS=$'\n' && ini=( ${ini} ) # convert to line-array
ini=( ${ini[*]//;*/} ) # remove comments with ;
ini=( ${ini[*]//#*/} ) # remove comments with #
ini=( ${ini[*]/\ =/=} ) # remove tabs before =
ini=( ${ini[*]/=\ /=} ) # remove tabs be =
ini=( ${ini[*]/\ =\ /=} ) # remove anything with a space around =
ini=( ${ini[*]/#\\[/\}$'\n'cfg.section.} ) # set section prefix
ini=( ${ini[*]/%\\]/ \(} ) # convert text2function (1)
ini=( ${ini[*]/=/=\( } ) # convert item to array
ini=( ${ini[*]/%/ \)} ) # close array parenthesis
ini=( ${ini[*]/%\\ \)/ \\} ) # the multiline trick
ini=( ${ini[*]/%\( \)/\(\) \{} ) # convert text2function (2)
ini=( ${ini[*]/%\} \)/\}} ) # remove extra parenthesis
ini[0]="" # remove first element
ini[${#ini[*]} + 1]='}' # add the last brace
eval "$(echo "${ini[*]}")" # eval the resul
}
<========== line 34
"SimpleFeatures" Plugin - Version 1.0.11
in User Customizations
Posted
aaah ... thanks