This file is indexed.

/usr/share/xymon/init-common.sh is in xymon-client 4.3.7-1ubuntu2.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
# common init functions for xymon and xymon-client

create_includefiles ()
{
	if [ "$XYMONSERVERS" = "" ]; then
		echo "Please configure XYMONSERVERS in /etc/default/xymon-client"
		exit 0
	fi

	umask 022

	if ! [ -d /var/run/xymon ] ; then
		mkdir /var/run/xymon
		chown xymon:xymon /var/run/xymon
	fi

	set -- $XYMONSERVERS
	if [ $# -eq 1 ]; then
		echo "XYMSRV=\"$XYMONSERVERS\""
		echo "XYMSERVERS=\"\""
	else
		echo "XYMSRV=\"0.0.0.0\""
		echo "XYMSERVERS=\"$XYMONSERVERS\""
	fi > /var/run/xymon/bbdisp-runtime.cfg

	for cfg in /etc/xymon/clientlaunch.d/*.cfg ; do
		test -e $cfg && echo "include $cfg"
	done > /var/run/xymon/clientlaunch-include.cfg

	if test -d /etc/xymon/xymonlaunch.d ; then
		for cfg in /etc/xymon/xymonlaunch.d/*.cfg ; do
			test -e $cfg && echo "include $cfg"
		done > /var/run/xymon/xymonlaunch-include.cfg
	fi

	if test -d /etc/xymon/xymongraph.d ; then
		for cfg in /etc/xymon/xymongraph.d/*.cfg ; do
			test -e $cfg && echo "include $cfg"
		done > /var/run/xymon/xymongraph-include.cfg
	fi

	if test -d /etc/xymon/xymonserver.d ; then
		for cfg in /etc/xymon/xymonserver.d/*.cfg ; do
			test -e $cfg && echo "include $cfg"
		done > /var/run/xymon/xymonserver-include.cfg
	fi

	if test -d /etc/xymon/xymonclient.d ; then
		for cfg in /etc/xymon/xymonclient.d/*.cfg ; do
			test -e $cfg && echo "include $cfg"
		done > /var/run/xymon/xymonclient-include.cfg
	fi

	return 0
}