1
0
Files
2022-09-29 17:59:04 +03:00

44 lines
1.5 KiB
Plaintext

# sample configuration file for espping PMDA
#
# Warning: these commands will be run as "root" using sh(1) with the
# current directory set to ${PCP_LOGDIR-/var/adm/pcplog} and the
# following set in the environment:
# IFS=" \t\n"
# PATH=/usr/sbin:/usr/bsd:/sbin:/usr/bin:/bin
#
# $Id: sample.conf,v 1.2 1999/05/26 02:38:46 kenmcd Exp $
# Specification format, one per line ("Tags" must be unique)
# Tag Shell command
# 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
dns nslookup - DEFAULT-DNS-SERVER </dev/null
# DNS lookup for localhost
dns-self nslookup `/usr/bsd/hostname`
# DNS lookup that will fail ...
dns-err nslookup foo.bar.no.host.com
# ypserv ... if you have yp running
ypserv ypcat hosts | grep `/usr/bsd/hostname`
# contact portmap/rpcbind for registered RPC programs
rpcbind /usr/etc/rpcinfo -p
# if smtpd is running here, a simple test
# Warning: the default attachment of standard output to /dev/null used
# by the espping PMDA causes telnet to hang, the "| cat" avoids
# this
smtp ( echo "expn root" ; echo quit ) | telnet localhost 25 | cat
# NNTP ... probably need to customize nntp server host
# Warning: the default attachment of standard output to /dev/null used
# by the espping PMDA causes telnet to hang, the "| cat" avoids
# this
nntp ( echo "listgroup comp.sys.sgi"; echo quit ) | telnet localhost 119 | cat