Table of Contents

Name

knoerre-conf - set up knoerre nagios http server

Synopsis

knoerre-conf

Description

knoerre-conf sets up an environment for knoerre with tcpserver and daemontools.

knoerrerc

If no resource config exists knoerre-conf will create one with some defaults like
CMD loadavg cat /proc/loadavg

LONGPROC_UID_MIN 65535
LONGPROC_UID_MAX 199999
LONGPROC_EXCLUDES vsftpd bash sftp-server

hosts.(deny|allow), knoerre.tcprules.cdb

knoerre-conf checks if there are entries for knoerre in tcp-wrapper files. If there are no changes then some defaults are written.
NOTE: knoerre/tcpserver don’t use these files directly. After making changes you must call knoerre-update-tcprules to update knoerre.tcprules.cdb from tcp-wrapper files.
After setting default in tcp-wrapper files knoerre-conf updates knoerre.tcprules.cdb.

/usr/local/knoerre

If "/usr/local/knoerre/run" does not exist, knoerre-conf creates the directory "/usr/local/knoerre" with its subdirs "supervise" and "log/supervise". Then it creates the scripts "run" and "log/run" with the these contents:
$ cat /usr/local/knoerre/run

#!/bin/sh
exec 2>&1
exec /usr/local/bin/tcpserver -v -RHl localhost -x /etc/knoerre.tcprules.cdb -X 0 8888 /usr/local/sbin/knoerre
$ cat /usr/local/knoerre/log/run
#!/bin/sh
exec multilog t ./main e 2>&1 |tai64nlocal |readproctitle knoerre: ... (65 dots)

Files

/etc/hosts.(deny|allow) tcp-wrapper files as source
/etc/knoerrerc rc-file for non-monolithic knoerre
/etc/knoerre.tcprules.cdb tcprules for use with tcpserver
/usr/local/bin/tcpserver DJB’s tcpserver
/usr/local/knoerre the daemontools dir for knoerre

See Also

knoerre(1) , knoerre-update-tcprules(1) , tcpserver(1) , supervise(8)

http://cr.yp.to/ucspi-tcp.html
http://cr.yp.to/daemontools.html

Author

Frank Bergmann, http://www.tuxad.com


Table of Contents