How to run plugin at command line
Posted: Mon Feb 17, 2020 5:07 pm
Hello,
This may be documented somewhere but I am trying to run a plugin '.sh' (Bash) script -- check_snmp_printer (and named it with a .sh extension) from https://github.com/ynlamy/check_snmp_printer but I can't seem to run. Though I can see it with LS it reports...
bash: /usr/local/nagios/libexec/check_snmp_printer.sh: /bin/bash^M: bad interpreter: No such file or directory
However I have other .SH plugins that seem to work so I am missing something basic at the command line.
Also (probably a very silly question) but how do you single step through a pearl or bash script? What tools are available to do this?
Thanks,
Tom
This may be documented somewhere but I am trying to run a plugin '.sh' (Bash) script -- check_snmp_printer (and named it with a .sh extension) from https://github.com/ynlamy/check_snmp_printer but I can't seem to run. Though I can see it with LS it reports...
bash: /usr/local/nagios/libexec/check_snmp_printer.sh: /bin/bash^M: bad interpreter: No such file or directory
However I have other .SH plugins that seem to work so I am missing something basic at the command line.
Also (probably a very silly question) but how do you single step through a pearl or bash script? What tools are available to do this?
Thanks,
Tom