diff options
Diffstat (limited to 'charts.d/tomcat.chart.sh')
-rw-r--r-- | charts.d/tomcat.chart.sh | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/charts.d/tomcat.chart.sh b/charts.d/tomcat.chart.sh index aaa6332e00..18ec1f5ce0 100644 --- a/charts.d/tomcat.chart.sh +++ b/charts.d/tomcat.chart.sh @@ -47,6 +47,7 @@ tomcat_check() { fi if [ -z "${tomcat_user}" ]; then # check backwards compatibility + # shellcheck disable=SC2154 if [ -z "${tomcatUser}" ]; then error "tomcat user is unset or set to the empty string" return 1 @@ -56,6 +57,7 @@ tomcat_check() { fi if [ -z "${tomcat_password}" ]; then # check backwards compatibility + # shellcheck disable=SC2154 if [ -z "${tomcatPassword}" ]; then error "tomcat password is unset or set to the empty string" return 1 @@ -66,6 +68,7 @@ tomcat_check() { # check if we can get to tomcat's status page tomcat_get + # shellcheck disable=2181 if [ $? -ne 0 ] then error "cannot get to status page on URL '${tomcat_url}'. Please make sure tomcat url, username and password are correct." @@ -117,7 +120,6 @@ EOF # _update is called continuously, to collect the values tomcat_update() { - local reqs net # the first argument to this function is the microseconds since last update # pass this parameter to the BEGIN statement (see bellow). |