Репозиторий Sisyphus
Последнее обновление: 1 октября 2023 | Пакетов: 18631 | Посещений: 37402654
en ru br
Репозитории ALT
S:4.3.30-alt2
5.1: 4.3.16-alt0.M51.1
www.altlinux.org/Changes

Группа :: Мониторинг
Пакет: xymon

 Главная   Изменения   Спек   Патчи   Sources   Загрузить   Gear   Bugs and FR  Repocop 

Патч: xymon.sections.patch
Скачать


# Check a $XYMONHOME/sections directory for additional script output to place
# into the default client status report sent back.
# 
# Similar to $XYMONHOME/local, but intended for packageable locations, and
# client sections do not have a label of "local:" prepended.
# 
--- client/xymonclient.sh.sections	2012-01-03 16:47:08.827256126 -0800
+++ client/xymonclient.sh	2012-01-03 16:50:49.832262297 -0800
@@ -61,2 +61,14 @@
 
+# See if there are any individual client sections
+if test -d $XYMONHOME/sections; then
+	for MODULE in `ls $XYMONHOME/sections/* 2>/dev/null | grep -v -e \.rpm -e \.dpkg`
+	do
+		if test -x $MODULE -a -f $MODULE
+		then
+			echo "[`basename $MODULE`]" >>$MSGTMPFILE
+			$MODULE >>$MSGTMPFILE
+		fi
+	done
+fi
+
 # See if there are any local add-ons (must do this before checking the clock)
--- client/Makefile.sections	2012-01-03 17:21:01.678493712 -0800
+++ client/Makefile	2012-01-04 10:52:18.266257518 -0800
@@ -71,4 +71,6 @@
 	if test ! -d $(INSTALLROOT)$(XYMONHOME)/local ; then mkdir -p $(INSTALLROOT)$(XYMONHOME)/local ; chmod 755 $(INSTALLROOT)$(XYMONHOME)/local; fi
+	if test ! -d $(INSTALLROOT)$(XYMONHOME)/sections ; then mkdir -p $(INSTALLROOT)$(XYMONHOME)/sections ; chmod 755 $(INSTALLROOT)$(XYMONHOME)/sections; fi
 	if test ! -f $(INSTALLROOT)$(XYMONHOME)/etc/localclient.cfg ; then cp localclient.cfg $(INSTALLROOT)$(XYMONHOME)/etc/ ; chmod 644 $(INSTALLROOT)$(XYMONHOME)/etc/localclient.cfg; fi
 	if test ! -f $(INSTALLROOT)$(XYMONHOME)/local/README; then cp README-local $(INSTALLROOT)$(XYMONHOME)/local/README ; chmod 644 $(INSTALLROOT)$(XYMONHOME)/local/README; fi
+	if test ! -f $(INSTALLROOT)$(XYMONHOME)/sections/README; then cp README-sections $(INSTALLROOT)$(XYMONHOME)/sections/README ; chmod 644 $(INSTALLROOT)$(XYMONHOME)/sections/README; fi
 	chmod 755 runclient.sh $(PROGRAMS) xymonclient*.sh $(COMMONTOOLS) $(EXTRATOOLS)
--- client/README-sections	2012-01-03 09:27:28.318354385 -0800
+++ client/README-sections	2012-01-04 09:58:09.794465016 -0800
@@ -0,0 +1,18 @@
+This directory - the client/sections/ directory - can be used to 
+install Xymon client add-on scripts. The Xymon client will run
+all files in this directory that are executable, and include the
+output from each script in a section in the Xymon client
+message which is sent to the Xymon server. Sections will appear 
+just like normal client sections.
+
+This directory is intended for use with automatically deployed files. Local
+scripts for this host should be placed in the client/local/ directory instead.
+
+This output will have to be processed on the Xymon server; there
+is no default processing done by Xymon on the output from these
+scripts. They are merely added to the client data.
+
+If you want to install an add-on script that direcly generates a 
+status column in Xymon, this should go in the client/ext/ directory
+instead.
+
 
дизайн и разработка: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
текущий майнтейнер: Michael Shigorin