Page 1 of 3
Nagios Background Theme Change
Posted: Mon Nov 19, 2018 11:18 am
by sampan1
I'm currently new to Nagios and I have updated the background for the WEB GUI and I would like to revert back to the original one. Can anyone help me change it back to the original one?
Thanks
Re: Nagios Background Theme Change
Posted: Mon Nov 19, 2018 12:41 pm
by scottwilkerson
Can you be more specific what changes you made?
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 4:08 am
by sampan1
https://exchange.nagios.org/directory/A ... -and-Skins
^^ I used one of the skins from here. The configurations I made were simple.
---- wget <download URL for the skin>
---- unzip <filename>
---- cp <filename> -d /usr/local/nagios/share
---- service nagios start
I have also attached the screenshot of my web GUI
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:42 am
by scottwilkerson
Being you overwrote your current /usr/local/nagios/share with the ones in the theme the best way to get them back would be to re-compile and install core.
Do you know what version of Core you are using?
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:45 am
by sampan1
I'm using nagios core 4.4.2
how can I uninstall nagios and start again?
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:47 am
by scottwilkerson
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:49 am
by sampan1
what will happen if I follow the steps for centos (what im using).
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:52 am
by scottwilkerson
You basically just need to run the following
Code: Select all
cd /tmp
wget -O nagioscore.tar.gz https://github.com/NagiosEnterprises/nagioscore/archive/nagios-4.4.2.tar.gz
tar xzf nagioscore.tar.gz
cd /tmp/nagioscore-nagios-4.4.2/
./configure
make all
make install
service nagios restart
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 8:57 am
by sampan1
when I do make install, I get an error. Shown below
Code: Select all
cd ./base && make install
make[1]: Entering directory `/tmp/nagioscore-nagios-4.4.2/base'
make install-basic
make[2]: Entering directory `/tmp/nagioscore-nagios-4.4.2/base'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagios /usr/local/nagios/bin
/usr/bin/install -c -m 774 -o nagios -g nagios nagiostats /usr/local/nagios/bin
make[2]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/base'
make strip-post-install
make[2]: Entering directory `/tmp/nagioscore-nagios-4.4.2/base'
/usr/bin/strip /usr/local/nagios/bin/nagios
/usr/bin/strip /usr/local/nagios/bin/nagiostats
make[2]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/base'
make[1]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/base'
cd ./cgi && make install
make[1]: Entering directory `/tmp/nagioscore-nagios-4.4.2/cgi'
make install-basic
make[2]: Entering directory `/tmp/nagioscore-nagios-4.4.2/cgi'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/sbin
for file in *.cgi; do \
/usr/bin/install -c -m 775 -o nagios -g nagios $file /usr/local/nagios/sbin; \
done
make[2]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/cgi'
make strip-post-install
make[2]: Entering directory `/tmp/nagioscore-nagios-4.4.2/cgi'
for file in *.cgi; do \
/usr/bin/strip /usr/local/nagios/sbin/$file; \
done
make[2]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/cgi'
make[1]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/cgi'
cd ./html && make install
make[1]: Entering directory `/tmp/nagioscore-nagios-4.4.2/html'
/usr/bin/install -c -m 775 -o nagios -g nagios -d /usr/local/nagios/share
/usr/bin/install: cannot create directory ‘/usr/local/nagios/share’: File exists
make[1]: *** [install] Error 1
make[1]: Leaving directory `/tmp/nagioscore-nagios-4.4.2/html'
make: *** [install] Error 2
Re: Nagios Background Theme Change
Posted: Tue Nov 20, 2018 9:05 am
by scottwilkerson
Make sure you are root when running the commands,
lets run this
Code: Select all
rm -f /usr/local/nagios/share
make install