Page 1 of 1

./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 10:07 am
by jbennett
Our Nagios box is behind a bluecoat firewall and is not accessable outside of our intranet.

THis was the last thing spat out before the upgrade returned completed:

Code: Select all

./upgrade: line 797: ifconfig: command not found
Line 797 found below:

Code: Select all

ip=$(ifconfig | egrep -1 eth[0-9] | grep -m 1 'inet' | awk '/inet[^6]/{print substr($2,6)}')
Is this anything to be concerned with?

I have set our program URL but have left the external URL blank in Admin -> Manage System Configs

Re: ./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 10:28 am
by abrist
Does your XI server have the ifconfig command?

Code: Select all

which ifconfig
What distro is it running:

Code: Select all

cat /etc/*release

Re: ./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 2:04 pm
by jbennett
Apparently it doesn't have ifconfig

Code: Select all

/usr/bin/which: no ifconfig in (/usr/kerberos/bin:/usr/local/bin:/bin:/usr/bin:/etc/opt/emcpower/bin:/home/xxx/xxx/bin)

Code: Select all

Red Hat Enterprise Linux Server release 5.10 (Tikanga)

Re: ./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 2:53 pm
by Box293
Nothing to worry about here.

It's trying to determine the IP address so it can show you the url to go to:

Code: Select all

You can access the Nagios XI web interface by visiting:
	    http://$ip/nagiosxi/

Re: ./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 2:56 pm
by jbennett
Thanks!

Re: ./upgrade: line 797: ifconfig: command not found

Posted: Thu Oct 02, 2014 2:59 pm
by lmiltchev
sbin is missing from $PATH. The path should look like this:

Code: Select all

/usr/kerberos/sbin:/usr/kerberos/bin:/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin