Utils.sh Error

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
dgilmore
Posts: 5
Joined: Fri Jun 14, 2019 3:11 pm

Utils.sh Error

Post 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
jomann
Development Lead
Posts: 611
Joined: Mon Apr 22, 2013 10:06 am
Location: Nagios Enterprises

Re: Utils.sh Error

Post 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.
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

Post by scottwilkerson »

Can you show the command you are executing so we can try to reproduce it?
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
dgilmore
Posts: 5
Joined: Fri Jun 14, 2019 3:11 pm

Re: Utils.sh Error

Post by dgilmore »

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

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked