This file is indexed.

/etc/xcp/master.d/03-mpathalert-daemon is in xcp-xapi 1.3.2-5.

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

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
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
#!/bin/sh

# Multipath Alerting Daemon

# location of the executable:
MPATHALERT="/usr/lib/xcp/bin/mpathalert"

#delay in seconds between 2 consecutive alerts:
DELAY="120"

# pidfile:
PID_FILE="/var/run/mpathalert.pid"

# lock file
SUBSYS_FILE="/var/lock/subsys/mpathalert"

# Source function library.
. /etc/init.d/functions

start() {
	echo -n $"Starting the multipath alerting daemon: "
	
	if [ -e ${SUBSYS_FILE} ]; then
		if [ -e ${PID_FILE} ] && [ -e /proc/`cat ${PID_FILE}` ]; then
			echo -n $"cannot start mpathalert: already running."
			failure $"cannot start mpathalert: already running."
			echo
			return 1
		fi
	fi
	
	${MPATHALERT} -daemon -delay ${DELAY} -pidfile ${PID_FILE} >/dev/null 2>&1 </dev/null
	
	touch $SUBSYS_FILE
	success
	echo
	return 0
}

stop() {
	echo -n $"Stopping the multipath alerting daemon: "

	if [ ! -e ${SUBSYS_FILE} ]; then
		echo -n $"cannot stop mpathalert: mpathalert is not running."
		failure $"cannot stop mpathalert: mpathalert is not running."
		echo
		return 1;
	fi

	killproc mpathalert
	RETVAL=$?
	echo
	[ $RETVAL -eq 0 ] && rm -f /var/lock/subsys/perfmon;
	return $RETVAL
}

restart() {
	stop
	start
}

case "$1" in
	start)
		start
		;;
	stop)
		stop
		;;
	restart)
		restart
		;;
	*)
		echo $"Usage: $0 {start|stop|restart}"
		exit 1
esac