Open GrexAut opened 6 years ago
Hi,
I'm running this plugin in jordan/icinga2 docker container, I compiled it and want to exectute it. Without parameters I get the usage informations, but if I run the command with all required parameters, I get no answer from the plugin.
root@mydockercontainer:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_nwc_health Usage: check_nwc_health [ -v|--verbose ] [ -t <timeout> ] --mode <what-to-do> --hostname <network-component> --community <snmp-community> ...] root@mydockercontainer:/usr/lib/nagios/plugins# /usr/lib/nagios/plugins/check_nwc_health --hostname 10.0.0.1 --community public --mode uptime root@mydockercontainer:/usr/lib/nagios/plugins# root@mydockercontainer:/usr/lib/nagios/plugins# $? bash: 2: command not found
Maybe anyone have an idea, thanks!
Found the solution, happens if /etc/protocols is not existing! link or copy from dockerhost to dockertainer:
docker run .... -v /etc/protocols:/etc/protocols
Hi,
I'm running this plugin in jordan/icinga2 docker container, I compiled it and want to exectute it. Without parameters I get the usage informations, but if I run the command with all required parameters, I get no answer from the plugin.
Maybe anyone have an idea, thanks!