Page 1 of 1

Utils.sh Error

Posted: Tue Jun 18, 2019 9:33 pm
by dgilmore
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

Re: Utils.sh Error

Posted: Wed Jun 19, 2019 9:04 am
by jomann
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.

Re: Utils.sh Error

Posted: Wed Jun 19, 2019 9:05 am
by scottwilkerson
Can you show the command you are executing so we can try to reproduce it?

Re: Utils.sh Error

Posted: Wed Jun 19, 2019 10:33 am
by dgilmore
Thanks for all the replies. I replaced the utils.sh file with another one and the problem is fixed. Thanks!!

Re: Utils.sh Error

Posted: Wed Jun 19, 2019 10:49 am
by scottwilkerson
dgilmore wrote:Thanks for all the replies. I replaced the utils.sh file with another one and the problem is fixed. Thanks!!
great, glad to hear it is resolved!

Locking