proudx Posted February 24, 2018 #1 Posted February 24, 2018 in my var/messages log I get constant /var/messages sk: SmartDataRead(108) disk_temperature_get.c:75 read value error read errors. anyway to disable these errors or checking? I don't need smart monitoring as I do it at the esxi level. under synoinfo.conf it has two values of interest. one is smartsupport=yes and another is showdisktemperature=yes. I'm curious if changing either one of those or both to no would stop the logging, but I am hesitant to do it. Any ideas? below is another thread in the archive but no solution was found. Quote
gits68 Posted June 28, 2018 #3 Posted June 28, 2018 here is another, at boot, I'll reconfigure syslog-ng to drop thoses error messages : b='\033[34m' # setaf 4 y='\033[33m' # setaf 3 g='\033[32m' # setaf 2 r='\033[31m' # setaf 1 w='\033[m' # sgr0 tab=${tab:-$(printf '\t')} ws="[ ${tab}]" foo() { file=$1; tag=$1; echo -n "${tag} ..."; } bar() { eval "$@" && echo -e " ${b}updated${w}" || echo -e " ${r}failure${w}"; } foobar() { foo "$1" if eval "$2"; then echo -e " ${g}success${w}" else eval "$3" bar "${4:-$2}" fi } case $(/bin/uname -u) in *cedarview*) ;; *) # xpenology restart=0 foobar /etc/syslog-ng/patterndb.d/smart.conf \ '[ -f "${file}" ]' \ 'cat > "${file}"; restart=1' << EOF filter f_smart_failed { (program("synostoraged") or program("sk") or program("SystemInfo.cgi")) and match("^(disk|[Ss]mart).*[Ff]ail" value("MESSAGE")) }; EOF foobar /etc/syslog-ng/patterndb.d/include/not2msg/smart \ '[ -f "${file}" ]' \ 'cat > "${file}"; restart=1' << EOF and not filter(f_smart_failed) EOF [ ${restart} = 1 ] && killall -1 syslog-ng esac Quote
polanskiman Posted July 2, 2018 #4 Posted July 2, 2018 @gits68 Please use proper code tags. I have edited this time. Quote
captainfred Posted October 17, 2018 #5 Posted October 17, 2018 How do I find the var/messages log? Is that an ESXi log or DSM? Quote
captainfred Posted October 18, 2018 #6 Posted October 18, 2018 On 6/28/2018 at 12:25 PM, gits68 said: here is another, at boot, I'll reconfigure syslog-ng to drop thoses error messages : b='\033[34m' # setaf 4 y='\033[33m' # setaf 3 g='\033[32m' # setaf 2 r='\033[31m' # setaf 1 w='\033[m' # sgr0 tab=${tab:-$(printf '\t')} ws="[ ${tab}]" foo() { file=$1; tag=$1; echo -n "${tag} ..."; } bar() { eval "$@" && echo -e " ${b}updated${w}" || echo -e " ${r}failure${w}"; } foobar() { foo "$1" if eval "$2"; then echo -e " ${g}success${w}" else eval "$3" bar "${4:-$2}" fi } case $(/bin/uname -u) in *cedarview*) ;; *) # xpenology restart=0 foobar /etc/syslog-ng/patterndb.d/smart.conf \ '[ -f "${file}" ]' \ 'cat > "${file}"; restart=1' << EOF filter f_smart_failed { (program("synostoraged") or program("sk") or program("SystemInfo.cgi")) and match("^(disk|[Ss]mart).*[Ff]ail" value("MESSAGE")) }; EOF foobar /etc/syslog-ng/patterndb.d/include/not2msg/smart \ '[ -f "${file}" ]' \ 'cat > "${file}"; restart=1' << EOF and not filter(f_smart_failed) EOF [ ${restart} = 1 ] && killall -1 syslog-ng esac How do I use that? Quote
gits68 Posted October 22, 2018 #7 Posted October 22, 2018 var/messages is /var/log/messages at DSM side. you may put this in /usr/local/etc/rc.smart + chmod +x /usr/local/etc/rc.smart and add /usr/local/etc/rc.smart to /etc/rc.local (echo /usr/local/etc/rc.smart >> /etc/rc.local) well don't remember if there is an exit 0 in /etc/rc.local, if any, move the exit 0 to the end of the script Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.