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

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

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

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

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

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

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

Post 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)
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

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

Post 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/
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
jbennett
Posts: 522
Joined: Mon Apr 16, 2012 3:00 pm

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

Post by jbennett »

Thanks!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

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

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked