Running checkbashisms (https://anonscm.debian.org/cgit/collab-maint/devscripts.git/plain/scripts/checkbashisms.pl) against nagios/bin/* from the 1.1.5 release results into the following error.
Not using bash as /bin/sh is likely to lead to errors or unexpected behaviours. Please be aware that dash is the default /bin/sh.
possible bashism in nagios/bin/pmp-check-lvm-snapshots line 103 ($_): [ "${0##*/}" = "pmp-check-lvm-snapshots" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-deadlocks line 97 ($_): [ "${0##*/}" = "pmp-check-mysql-deadlocks" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-deleted-files line 154 ($_): [ "${0##*/}" = "pmp-check-mysql-deleted-files" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-file-privs line 147 ($_): [ "${0##*/}" = "pmp-check-mysql-file-privs" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-innodb line 237 ($_): [ "${0##*/}" = "pmp-check-mysql-innodb" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-pidfile line 163 ($_): [ "${0##*/}" = "pmp-check-mysql-pidfile" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-processlist line 184 ($_): [ "${0##*/}" = "pmp-check-mysql-processlist" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-replication-delay line 139 ($_): [ "${0##*/}" = "pmp-check-mysql-replication-delay" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-replication-running line 126 ($_): [ "${0##*/}" = "pmp-check-mysql-replication-running" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-status line 304 ($_): [ "${0##*/}" = "pmp-check-mysql-status" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-mysql-ts-count line 64 (should be 'b = a'): if [ "${OPT_TARGET}" == "kills" ]; then possible bashism in nagios/bin/pmp-check-mysql-ts-count line 67 (should be 'b = a'): elif [ "${OPT_TARGET}" == "fkerrors" ]; then possible bashism in nagios/bin/pmp-check-mysql-ts-count line 109 ($_): [ "${0##*/}" = "pmp-check-mysql-ts-count" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] possible bashism in nagios/bin/pmp-check-unix-memory line 118 ($_): [ "${0##*/}" = "pmp-check-unix-memory" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ]
Hints about how to fix bashisms can be found at: https://wiki.ubuntu.com/DashAsBinSh
Many thanks in advance for fixing this, Jan.
Running checkbashisms (https:/ /anonscm. debian. org/cgit/ collab- maint/devscript s.git/plain/ scripts/ checkbashisms. pl) against nagios/bin/* from the 1.1.5 release results into the following error.
Not using bash as /bin/sh is likely to lead to errors or unexpected behaviours. Please be aware that dash is the default /bin/sh.
possible bashism in nagios/ bin/pmp- check-lvm- snapshots line 103 ($_): lvm-snapshots" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- deadlocks line 97 ($_): mysql-deadlocks " ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- deleted- files line 154 ($_): mysql-deleted- files" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- file-privs line 147 ($_): mysql-file- privs" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- innodb line 237 ($_): mysql-innodb" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- pidfile line 163 ($_): mysql-pidfile" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- processlist line 184 ($_): mysql-processli st" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- replication- delay line 139 ($_): mysql-replicati on-delay" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- replication- running line 126 ($_): mysql-replicati on-running" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- status line 304 ($_): mysql-status" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-mysql- ts-count line 64 (should be 'b = a'): bin/pmp- check-mysql- ts-count line 67 (should be 'b = a'): bin/pmp- check-mysql- ts-count line 109 ($_): mysql-ts- count" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ] bin/pmp- check-unix- memory line 118 ($_): unix-memory" ] || [ "${0##*/}" = "bash" -a "$_" = "$0" ]
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
if [ "${OPT_TARGET}" == "kills" ]; then
possible bashism in nagios/
elif [ "${OPT_TARGET}" == "fkerrors" ]; then
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
possible bashism in nagios/
[ "${0##*/}" = "pmp-check-
Hints about how to fix bashisms can be found at: /wiki.ubuntu. com/DashAsBinSh
https:/
Many thanks in advance for fixing this, Jan.