# 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 = ( 'sjohnson' => { name => 'Stephen L Johnson', email => 'sjohnson@monsters.org' }, # 'sjohnson-phone' => { name => 'My phone', # alltelsms => '5018316007', # }, # 'group-test' => { name => 'A contact group for testing', # group => 'sjohnson,sjohnson-phone', # }, ); # =========================================================================== # 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 = ( 'godzilla.monsters.org' => { readme => "Godzilla switched from an old hub machine to a VoIP server", comments => [ 'This is an example of extra fields in Spong', 'Spong ignores any fields that it does not understand', 'These fields can be used by other add ons or applications', ], 'down:ftp' => ['*:15:00-15:59'], # services => 'ping: ftp smtp dns nfs http ntp ssh snmp: interfaces', services => 'ping: ntp ssh', ip_addr => [ '208.191.248.2' ], snmp_community => 'local-read', expect_oid => '1.3.6.1.4.1.2021.250.10', }, 'zero.monsters.org' => { services => 'ping: smtp imap http ssh dns', ip_addr => ['208.191.248.1', ], }, 'rodan.monsters.org' => { services => 'ping: ssh', ip_addr => ['208.191.248.4'], }, 'mothra.monsters.org' => { services => 'ping: ssh dns smtp ntp nfs telnet', ip_addr => ['208.191.248.5'], }, 'tivo1.monsters.org' => { services => 'ping', ip_addr => ['172.16.0.16'], }, 'tivo2.monsters.org' => { services => 'ping', ip_addr => ['172.16.0.32'], }, 'wlan-ap.monsters.org' => { services => 'ping', ip_addr => ['172.16.0.31'], }, 'gateway.monsters.org' => { services => '', ip_addr => ['208.191.248.6'], }, 'core1-fa1-1-0.ltrkar.swbell.net' => { services => '', ip_addr => ['151.164.64.66'], }, ); 1;