Jump to content
XPEnology Community

constant Smart temp read errors in var/messages how to eliminate


proudx

Recommended Posts

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.

 

Link to comment
Share on other sites

  • 1 month later...
  • 2 months later...

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


 

Link to comment
Share on other sites

  • 3 months later...
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? 
 

 

Link to comment
Share on other sites

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

 

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...