Dear Support Forum,
I'm trying to work with the check_rrdtraf script from the Nagios XI install. When I run the command from the command line, I'm receiving the following error.
'/utils.sh: line 9: syntax error near unexpected token `{
'/utils.sh: line 9: `print_revision() {
The script still executes but prints out an error of ": numeric argument requiredexit: 0"
This causes further issues with the program. Any help would be great, thanks in advance.
Thanks,
David
Utils.sh Error
Re: Utils.sh Error
Hello,
Are you running Nagios XI on Debian or Ubuntu? If so, can you try adjusting the first line of those files, the "/bin/sh" at the top of check_rrdtraf and utils.sh to be "/bin/bash" instead.
Are you running Nagios XI on Debian or Ubuntu? If so, can you try adjusting the first line of those files, the "/bin/sh" at the top of check_rrdtraf and utils.sh to be "/bin/bash" instead.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Utils.sh Error
Can you show the command you are executing so we can try to reproduce it?
Re: Utils.sh Error
Thanks for all the replies. I replaced the utils.sh file with another one and the problem is fixed. Thanks!!
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Utils.sh Error
great, glad to hear it is resolved!dgilmore wrote:Thanks for all the replies. I replaced the utils.sh file with another one and the problem is fixed. Thanks!!
Locking