# Type "./getstatd -h" for command line options.
# If you run daemon from root, edit getstatd.h and change DAEMON_UID macroname.
# (default 65534).
# Port number to accept incoming requests.[1024-65534] If you want to use
# port number from 0 to 1023 you can use kernel transparent proxy settings or
# choose 80 port in configure script (Use command line argument "-p" for other
# port).
port 1080
# IP addresses and associated TTY for automatic user authentication.
# Instead of TTY names you may use "auto" keyword for second automatic authentication
# way (look at auth.example). To disable automatic authentication use "ipallow *".
ipallow { 192.168.47.120:ttyS1,
192.168.47.121:ttyS2,
192.168.47.122:ttyS3,
192.168.47.65:auto,
192.168.47.66:auto,
192.168.47.67:auto,
192.168.47.68:auto,
192.168.47.69:auto }
# Calculate statistic only for this terminals. Other terminals will be ignored.
# Use "*" for mask tty group.
calctty ttyS1, ttyS2, ttyS3, ttyv*
# Path of the login records files ( wtmp and utmp). If you use standard system
# wtmp and utmp files comment next two lines.
# wtmp /var/log/wtmp
# utmp /var/log/utmp
# HTML forms for user interface.
index /usr/local/etc/getstatd/mainform.html
plugin_index /usr/local/etc/getstatd/pluginform.gsmon.html
#plugin_index /usr/local/etc/getstatd/pluginform.html
user_index /usr/local/etc/getstatd/userform.html
admin_index /usr/local/etc/getstatd/adminform.html
deny_identification /usr/local/etc/getstatd/deny_iden.html
deny_passwd /usr/local/etc/getstatd/deny_passwd.html
deny_right /usr/local/etc/getstatd/deny_right.html
# POP3 Host and port for password authentication, users would be use pop3 passwords
# to access to their statistic. Firewalled or wrappered single pop3d
# server for getstatd authentication requirement may be used.
# (* - disable POP3 authentication )
hostauth *
#hostauth pop3.domain.com
portauth 110
# File with users and passwords for authentication.
# pwdlist format same as /etc/passwd. Getstatd first looked pwdlist and then POP3
# host.
pwdlist /usr/local/etc/getstatd/getstatd.passwd
# true - pwdlist contains crypted passwords, false - raw passwords.
# Use "gs_adduser" utility to create new crypted user accaunt.
pwdcrypt true
# true - generates a log message of successful request to admin data.
logadmins false
# true - generates a log message of successful request to plugin data.
logplugins false
# The list of users allowed to access user statistic data.(* in any line
# for accept all users)
userlist /usr/local/etc/getstatd/statusers
# The list of users allowed to access admin statistic data.(* in any line
# for accept all users)
adminlist /usr/local/etc/getstatd/statadmins
# The list of users allowed to access plugin statistic data.(* in any line
# for accept all users)
pluginlist /usr/local/etc/getstatd/statplugins
# The ignoreusers directive affects what users will be ignored and will not included
# in statistic reports.
# The list of users not included to user instatistic reports.
ignoreusers /usr/local/etc/getstatd/ignoreusers
# Plugins. ( Use full path depended of you system. )
plugin1 "ps auxwww"
pluginheader1 "Process status"
plugin2 "uptime"
pluginheader2 "Uptime"
plugin3 "ping -c1 localhost;echo;echo;netstat -rn"
pluginheader3 "Net status"
plugin4 "netstat -t"
pluginheader4 "Current tcp connections"
# Night period.
nightfrom 0
nighttime 7
# Directory which contain "analogy" files for second automatic authentication way.
# ( look at auth.example)
autoauthdir /var/run
# Admin and Plugin form refresh time.
refresh 300
|