Centreon – Widgets installieren oder updaten

Eine kleine Anleitung um schnell und einfach die aktuellen Centreon Widgets (die auf der Webseite nicht nicht immer aktuell) zu installieren oder zu updaten.

Git installieren:

Debian: apt-get install git
Centon: yum install git

Die Widget Dateien von Github downloaden:

git clone https://github.com/Centreon-Widgets/centreon-widget-engine-status.git /tmp/centreon-widget-engine-status
git clone https://github.com/Centreon-Widgets/centreon-widget-graph-monitoring.git /tmp/centreon-widget-graph-monitoring
git clone https://github.com/Centreon-Widgets/centreon-widget-grid-map.git /tmp/centreon-widget-grid-map
git clone https://github.com/Centreon-Widgets/centreon-widget-hostgroup-monitoring.git /tmp/centreon-widget-hostgroup-monitoring
git clone https://github.com/Centreon-Widgets/centreon-widget-host-monitoring.git /tmp/centreon-widget-host-monitoring
git clone https://github.com/Centreon-Widgets/centreon-widget-httploader.git /tmp/centreon-widget-httploader
git clone https://github.com/Centreon-Widgets/centreon-widget-live-top10-cpu-usage.git /tmp/centreon-widget-live-top10-cpu-usage
git clone https://github.com/Centreon-Widgets/centreon-widget-live-top10-memory-usage.git /tmp/centreon-widget-live-top10-memory-usage
git clone https://github.com/Centreon-Widgets/centreon-widget-servicegroup-monitoring.git /tmp/centreon-widget-servicegroup-monitoring
git clone https://github.com/Centreon-Widgets/centreon-widget-service-monitoring.git /tmp/centreon-widget-service-monitoring
git clone https://github.com/Centreon-Widgets/centreon-widget-tactical-overview.git /tmp/centreon-widget-tactical-overview

In den richtigen Ordner wechseln und evtl. alle alten Widget Ordner löschen:

cd /usr/share/centreon/www/widgets/
find . ! -name 'require.php' -type d -exec rm -r -f {} +

Nun die Dateien von Github in den richtigen Ordner verschieben:

mv /tmp/centreon-widget-engine-status/engine-status /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-graph-monitoring/graph-monitoring /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-grid-map/grid-map /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-hostgroup-monitoring/hostgroup-monitoring /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-host-monitoring/host-monitoring /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-httploader/httploader /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-live-top10-cpu-usage/live-top10-cpu-usage /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-live-top10-memory-usage/live-top10-memory-usage /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-servicegroup-monitoring/servicegroup-monitoring /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-service-monitoring/service-monitoring /usr/share/centreon/www/widgets/
mv /tmp/centreon-widget-tactical-overview/tactical-overview /usr/share/centreon/www/widgets/

Die Berechitungen setzen:

find /usr/share/centreon/www/widgets/graph-monitoring -type d -exec chmod 775 {} \;
find /usr/share/centreon/www/widgets/graph-monitoring -type f -exec chmod 664 {} \;
chmod 775 /usr/share/centreon/www/widgets/require.php

Den Tmp Ordner bereinigen:

rm -rf /tmp/centreon-widget*

Und zum Schluss in das Webinterface wechseln, oben auf „“ klicken und die Widgets nach und nach übern den grünen Button installieren!


Sonstiges

Widget Versionen anzeigen:

cat /usr/share/centreon/www/widgets/engine-status/configs.xml | grep version
cat /usr/share/centreon/www/widgets/graph-monitoring/configs.xml | grep version
cat /usr/share/centreon/www/widgets/Grid-map/configs.xml | grep version
cat /usr/share/centreon/www/widgets/hostgroup-monitoring/configs.xml | grep version
cat /usr/share/centreon/www/widgets/host-monitoring/configs.xml | grep version
cat /usr/share/centreon/www/widgets/httploader/configs.xml | grep version
cat /usr/share/centreon/www/widgets/live-top10-cpu-usage/configs.xml | grep version
cat /usr/share/centreon/www/widgets/live-top10-memory-usage/configs.xml | grep version
cat /usr/share/centreon/www/widgets/servicegroup-monitoring/configs.xml | grep version
cat /usr/share/centreon/www/widgets/service-monitoring/configs.xml | grep version
cat /usr/share/centreon/www/widgets/tactical-overview/configs.xml | grep version

Hinterlasse einen Kommentar

*

https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_bye.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_good.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_negative.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_scratch.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_wacko.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_yahoo.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_cool.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_heart.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_rose.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_smile.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_whistle3.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_yes.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_cry.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_mail.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_sad.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_unsure.gif 
https://www.maffert.net/wp-content/plugins/wp-monalisa/icons/wpml_wink.gif