Search found 4 matches
- Fri Sep 27, 2019 11:57 am
- Forum: Open Source Nagios Projects
- Topic: Bash script errors out with a code of 127
- Replies: 6
- Views: 1758
Re: Bash script errors out with a code of 127
I just found the error in your command (missing the 1 in the USER macro), change this define command { command_name check_remote_app command_line $USER$/check_app_status.sh $HOSTADDRESS$ } to this define command { command_name check_remote_app command_line $USER1$/check_app_status.sh $HOSTADDRESS$ ...
- Fri Sep 27, 2019 10:24 am
- Forum: Open Source Nagios Projects
- Topic: Bash script errors out with a code of 127
- Replies: 6
- Views: 1758
Re: Bash script errors out with a code of 127
So you are passing the $HOSTADDRESS$ to this script Did you test the script from the command line to see if you gt the expected results? /usr/local/nagios/libexec/check_app_status.sh 192.168.0.1 echo $? [root@nagtst]# cd /usr/local/nagios/ [root@nagtst nagios]# libexec/check_app_status.sh 192.168.1...
- Fri Sep 27, 2019 9:41 am
- Forum: Open Source Nagios Projects
- Topic: Bash script errors out with a code of 127
- Replies: 6
- Views: 1758
Re: Bash script errors out with a code of 127
So you are passing the $HOSTADDRESS$ to this script Did you test the script from the command line to see if you gt the expected results? /usr/local/nagios/libexec/check_app_status.sh 192.168.0.1 echo $? I just did that as follows: /usr/local/nagios/libexec/check_app_status.sh 192.168.1.5 Responded ...
- Thu Sep 26, 2019 5:13 pm
- Forum: Open Source Nagios Projects
- Topic: Bash script errors out with a code of 127
- Replies: 6
- Views: 1758
Bash script errors out with a code of 127
I created a bash script to use wget and grep for 302 and make sure app is up and alive. (server.cfg) define service { use local-service host_name server service_description App Status check_command check_remote_app notifications_enabled 1 } (commands.cfg) define command { command_name check_remote_a...