summaryrefslogtreecommitdiff
path: root/system/pcp/README.SLACKWARE
blob: 03f064c48259e3b3e4287e20e78581725df7f3d7 (plain)
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
The init scripts are not prefixed with "rc." (e.g. rc.pcp) due to the fact
that several documentation files and other supporting files used by pcp
expect them without that prefix, and the process of fixing those files is
a bit too maintenance-intensive and error-prone to bother.

/etc/rc.d/pcp: 
	starts all the agents and daemons for collecting the info from 
	various host monitoring 

/etc/rc.d/pmie:
	starts all daemons for evaluating the rules based on the exported 
	PCP metrics (usually for triggering particular events)

/etc/rc.d/pmproxy:
	starts proxy daemon for PCP 

You will need to add the following bits to /etc/rc.d/rc.local and make sure
the relevant init scripts have executable permissions:

	# Start pcp:
	if [ -x /etc/rc.d/pcp ]; then
	  /etc/rc.d/pcp start
	fi
	
	# Start pmie
	if [ -x /etc/rc.d/pmie ]; then
	  /etc/rc.d/pmie start
	fi

	# Start pmproxy
	if [ -x /etc/rc.d/pmproxy ]; then
	  /etc/rc.d/pmproxy start
	fi

You will also need to add the following to /etc/rc.d/rc.local_shutdown:

	# Stop pcp:
	if [ -x /etc/rc.d/pcp ]; then
	  /etc/rc.d/pcp stop
	fi
	
	# Stop pmie
	if [ -x /etc/rc.d/pmie ]; then
	  /etc/rc.d/pmie stop
	fi

	# Stop pmproxy
	if [ -x /etc/rc.d/pmproxy ]; then
	  /etc/rc.d/pmproxy stop
	fi