]> arthur.barton.de Git - netdata.git/commitdiff
redirect check error messages to stderr
authorJorge Romero <Jorge.Romero@openbondx.com>
Fri, 6 May 2016 19:57:24 +0000 (15:57 -0400)
committerJorge Romero <Jorge.Romero@openbondx.com>
Fri, 6 May 2016 19:57:24 +0000 (15:57 -0400)
charts.d/tomcat.chart.sh

index 0e5cce8ad51b537b1d8c7da8bab1ef5969af5c46..4e10a9183acb6b620ccb18c637a8307b7c9d2705 100755 (executable)
@@ -33,15 +33,15 @@ tomcat_check() {
 
        # check if url, username, passwords are set
        if [ -z "${tomcat_url}" ]; then
-         echo "tomcat url is unset or set to the empty string"
+               echo >&2 "tomcat url is unset or set to the empty string"
                return 1
        fi
        if [ -z "${tomcatUser}" ]; then
-         echo "tomcat user is unset or set to the empty string"
+               echo >&2 "tomcat user is unset or set to the empty string"
                return 1
        fi
        if [ -z "${tomcatPassword}" ]; then
-         echo "tomcat password is unset or set to the empty string"
+               echo >&2 "tomcat password is unset or set to the empty string"
                return 1
        fi