Группа :: Мониторинг
Пакет: xymon
Главная Изменения Спек Патчи Sources Загрузить Gear Bugs and FR Repocop
Патч: xymon.nullfollowsincl.patch
Скачать
Скачать
# When files are 'include'd in hosts.cfg (or anywhere else) using dispinclude or netinclude,
# xymond (and other code) doesn't see them. This means xymonnet might end up sending data
# for hosts included via netinclude only to the local xymond process, which has no data for it
# and considers it a ghost server.
#
# This patch forces all code OTHER than xymonnet and xymongen to follow all three types of include's.
# There may be unknown side-effects.
--- lib/stackio.c.nullok 2012-01-10 15:58:50.830244123 -0800
+++ lib/stackio.c 2012-01-10 16:33:22.452262742 -0800
@@ -423,1 +423,3 @@
- (extraincl && (strncmp(bufpastwhitespace, extraincl, strlen(extraincl)) == 0)) ) {
+ (extraincl && (strncmp(bufpastwhitespace, extraincl, strlen(extraincl)) == 0)) ||
+ (!extraincl && (strncmp(bufpastwhitespace, "netinclude ", 11) == 0)) ||
+ (!extraincl && (strncmp(bufpastwhitespace, "dispinclude ", 12) == 0)) ) {