blob: 028a19680933c2065b98213935778cf3019dd113 (
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
|
# sample configuration file for shping PMDA
#
# Warning: these commands will be run as "root" using sh(1) with the
# current directory set to $PCP_LOG_DIR/pmcd and the
# following set in the environment:
# IFS=" \t\n"
# PATH=... as per $PCP_DIR/etc/pcp.env ...
#
# Specification format, one per line ("Tags" must be unique)
# Tag Shell command
# minimal effort here, no stress for the shell ... just start and quit
null exit 0
# not too much work, date(1) is pretty light-weight
date date
# compile and run the generic simple program ... requires a C compiler
# to be installed
cc cd /tmp; rm -f $$.[oc] $$; echo "main(){printf(\"g'day world\\\\n\");}" >/tmp/$$.c; cc -o $$ $$.c; ./$$; rm -f $$.[oc] $$
# Is the default DNS server responding?
# CONFIGURE-ME-PLEASE - local customization required
# CONFIGURE-ME-PLEASE - DEFAULT-DNS-SERVER will be changed by Install to
# CONFIGURE-ME-PLEASE - be the hostname for the default DNS server
# CONFIGURE-ME-PLEASE - and NSLOOKUP is the path of the nslookup(1) command
dns NSLOOKUP - DEFAULT-DNS-SERVER </dev/null
# DNS lookup for localhost
dns-self NSLOOKUP `hostname`
# DNS lookup that will fail ...
dns-err NSLOOKUP foo.bar.no.host.com
# ypserv ... if you have yp running
ypserv ypcat hosts | grep `hostname`
# contact portmap/rpcbind for registered RPC programs
rpcbind rpcinfo -p
# if smtpd is running here, a simple test
smtp ( echo "expn root"; echo quit ) | telnet-probe localhost 25
# NNTP ... need to customize nntp server host
nntp ( echo "listgroup comp.sys.sgi"; echo quit ) | telnet-probe tokyo.engr.sgi.com 119
|