From: Stephen L Johnson Date: Tue, 16 Nov 1999 05:46:40 +0000 (+0000) Subject: Initial revision X-Git-Tag: spong-2_6-beta7~21 X-Git-Url: http://git.etc.gen.nz/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=17cbcc5316935beb829595ce80f124134cc952d7;p=spong.git Initial revision --- diff --git a/config/spong.hosts b/config/spong.hosts new file mode 100755 index 0000000..e0a008d --- /dev/null +++ b/config/spong.hosts @@ -0,0 +1,77 @@ +# See the spong.hosts man page for additional documentation. +# +# Don't be afraid. This is a configuration file that defines two things, 1) +# who is respondsible for systems, and how do you get ahold of them, and 2) +# what systems are supposed to be monitored. There are two Perl "hashs" that +# define this information. If you don't know Perl, don't be scared, you +# really just need to copy the templates for each human or host that are +# included in the comments. +# +# First, the HUMANS. The following describes the %HUMANS hash. +# +# %HUMANS = ( [stanza], [stanza], [stanza] ); +# +# where [stanza] is a second hash, that looks like the following: +# +# 'unix-staff' => { name => 'unix Support', +# email => 'unix-support@mydomain.com', +# skytel => '1234567' }, +# +# In Perl lingo, %HUMAN is a hash of hashes, that define a set of variables for +# each human to contact. The variables are the name of the person, their +# email address (if applicable), and their skytel pager number (if applicable) + + %HUMANS = ( + 'unix-staff' => { name => 'Unix On-call Staff', + email => 'unix-staff@localhost' }, + + 'fred' => { name => 'Fred Jonston', + email => 'fredj@myhost.com', + skytel => '1234567' } +); + +# =========================================================================== + +# Now, the HOSTS. The following describes the %HOSTS hash. +# +# %HOSTS = ( [stanza], [stanza], [stanza] ); +# +# where [stanza] is a second hash, that looks like the following: +# +# 'www.myhost.com' => { services => 'ftp smtp http', +# contact => 'unix-staff', +# down => [ '1:05:30-06:30' ] }, +# +# In Perl lingo, %HOSTS is a hash of hashes, that define a set of variables +# for each host to check. The variables are a string listing the network +# services running on that host, the contact person if there is a problem, +# the group that machine belongs to, and any regularly scheduled system down +# times (format is day:starthr:startmin-endhr:endmin). + + +%HOSTS = ( + 'big.server.host.edu' => { services => 'ftp smtp http nntp imap pop3', + contact => 'unix-staff', + ip_addr => [ '192.168.1.3', + '192.168.64.3' ], + down => [ "*:05:30-06:30", + "0:00:00-04:00" ] }, + + 'web1.host.edu' => { services => 'ftp smtp http dns', + contact => 'unix-staff', + }, + + 'web2.host.edu' => { services => 'ftp smtp http', + contact => 'unix-staff', + }, + + 'web3.host.edu' => { services => 'ftp smtp http', + contact => 'unix-staff', + }, + + 'some.pc.host.edu' => { services => '', + contact => 'fred', + }, +); + +1;