summaryrefslogtreecommitdiff
path: root/netsaint
diff options
context:
space:
mode:
authorJonas Smedegaard <dr@jones.dk>2003-04-06 13:38:09 +0000
committerJonas Smedegaard <dr@jones.dk>2003-04-06 13:38:09 +0000
commit72c8864cfca64f3bbaf1cf38f3d0bb2041ec5b07 (patch)
treea346015857c3d4816155e875bdc35193f343b650 /netsaint
parent78c7377476c427a087eee467a10f583478bbe18e (diff)
Corrections to work with default hosts.cfg file.
Diffstat (limited to 'netsaint')
-rw-r--r--netsaint/COMMON.cfg16
-rw-r--r--netsaint/HOMEBASE.cfg2
-rw-r--r--netsaint/hosts_xayide.jones.dk.cfg81
3 files changed, 9 insertions, 90 deletions
diff --git a/netsaint/COMMON.cfg b/netsaint/COMMON.cfg
index 8c629a8..debff22 100644
--- a/netsaint/COMMON.cfg
+++ b/netsaint/COMMON.cfg
@@ -1,21 +1,5 @@
-# timeperiod[<timeperiod_name>]=<timeperiod_alias>;<sun_timeranges>;
-# <mon_timeranges>;<tue_timeranges>;
-# <wed_timeranges>;<thu_timeranges>;
-# <fri_timeranges>;<sat_timeranges>
-#
-timeperiod[24x7]=24 Hours A Day, 7 Days A Week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00
-timeperiod[workhours]="Normal" Working Hours;;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;
-timeperiod[nonworkhours]=Non-Work Hours;00:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-24:00
-timeperiod[none]=No Time Is A Good Time;;;;;;;
-
-
# command[<command_name>]=<command_line>
#
-command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$
-command[notify-by-epager]=/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$' $CONTACTPAGER$
-command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$
-command[host-notify-by-epager]=/bin/echo -e "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$' $CONTACTPAGER$
-
command[check_ping_slow]=/usr/lib/nagios/plugins/check_ping -H $HOSTADDRESS$ -w 500:20% -c 3000:100%
# contact[<contact_name>]=<contact_alias>;<svc_notification_period>;
diff --git a/netsaint/HOMEBASE.cfg b/netsaint/HOMEBASE.cfg
index cdc1f60..71425d8 100644
--- a/netsaint/HOMEBASE.cfg
+++ b/netsaint/HOMEBASE.cfg
@@ -21,7 +21,7 @@ service[jawa]=Current Users;0;24x7;3;5;2;redpill;240;24x7;1;1;1;;check_users!75!
service[jawa]=Zombie Processes;0;24x7;3;5;2;redpill;240;24x7;1;1;1;;check_procs_zombie!5!10
service[jawa]=Total Processes;0;24x7;3;5;2;redpill;240;24x7;1;1;1;;check_procs!200!300
service[jawa]=Diskspace;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_disk!-w10%!-c5%
-service[jawa]=Virtual memory;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_swap!-w50%!-c75%
+#service[jawa]=Virtual memory;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_swap!-w50%!-c75%
service[jawa]=DNS;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_dns
service[jawa]=FTP;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_ftp
service[jawa]=HTTP;0;24x7;3;3;1;redpill;120;24x7;1;1;1;;check_http
diff --git a/netsaint/hosts_xayide.jones.dk.cfg b/netsaint/hosts_xayide.jones.dk.cfg
index 6b22e77..2c30dca 100644
--- a/netsaint/hosts_xayide.jones.dk.cfg
+++ b/netsaint/hosts_xayide.jones.dk.cfg
@@ -1,73 +1,8 @@
-timeperiod[24x7]=24 Hours A Day, 7 Days A Week;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00;00:00-24:00
-timeperiod[workhours]="Normal" Working Hours;;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;09:00-17:00;
-timeperiod[nonworkhours]=Non-Work Hours;00:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-09:00,17:00-24:00;00:00-24:00
-timeperiod[none]=No Time Is A Good Time;;;;;;;
-
-# Localhost
-#host[localhost]=Localhost;127.0.0.1;;check-host-alive;10;120;24x7;1;1;1;
-# A-Host
-host[ah_nat]=A-Host NAT;212.130.44.2;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_ftp]=A-Host ftp;212.130.44.10;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_mail2]=A-Host Mail2;212.130.44.12;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_list]=A-Host List;212.130.44.13;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_web]=A-Host Web;212.130.44.15;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_rudi]=A-Host Rudi;212.130.44.16;;check-host-alive;10;120;24x7;1;1;1;
-host[ah_ns]=A-Host Nameserver;212.130.44.100;;check-host-alive;10;120;24x7;1;1;1;
-# Homebase
-host[hb_cisco]=Homebase Cisco Router;194.239.159.1;;check-host-alive;10;120;24x7;1;1;1;
-host[hb_squash]=Homebase Squash;194.239.159.10;;check-host-alive;10;120;24x7;1;1;1;
-host[hb_baldur]=Homebase Baldur;194.239.159.9;;check-host-alive;10;120;24x7;1;1;1;
-# Jones
-host[js_bastian]=Jones Bastian;212.130.44.81;;check-host-alive;10;120;24x7;1;1;1;
-host[js_ror]=Jones ROR;212.130.44.18;;check-host-alive;10;120;24x7;1;1;1;
-host[js_xerxes]=Jones Xerxes;213.237.9.231;;check-host-alive;10;120;24x7;1;1;1;
-#host[js_wetware]=Jones Wetware;213.237.41.135;;check-host-alive;10;120;24x7;1;1;1;
-host[js_macvaerk]=Jones Macvaerk;195.249.140.194;;check-host-alive;10;120;24x7;1;1;1;
-host[js_pierre]=Jones Pierre Suites;216.15.34.134;;check-host-alive;10;120;24x7;1;1;1;
-
-hostgroup[ah]=All A-Host Servers;ah_admins;ah_nat,ah_ftp,ah_mail2,ah_list,ah_web,ah_rudi,ah_ns
-hostgroup[hb]=All Homebase Servers;hb_admins;hb_cisco,hb_squash,hb_baldur
-hostgroup[js]=All Jones Servers;js_admins;js_bastian,js_ror,js_macvaerk,js_pierre,js_xerxes
-
-command[notify-by-email]=/bin/echo -e '***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $DATETIME$\n\nAdditional Info:\n\n$OUTPUT$' | /usr/bin/mail -s '** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **' $CONTACTEMAIL$
-command[notify-by-epager]=/bin/echo -e "Service: $SERVICEDESC$\nHost: $HOSTNAME$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\nInfo: $OUTPUT$\nDate: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$: $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$' $CONTACTPAGER$
-command[host-notify-by-email]=/bin/echo -e "***** NetSaint 0.0.6 *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $OUTPUT$\n\nDate/Time: $DATETIME$\n" | /usr/bin/mail -s 'Host $HOSTSTATE$ alert for $HOSTNAME$!' $CONTACTEMAIL$
-command[host-notify-by-epager]=/bin/echo -e "Host '$HOSTALIAS$' is $HOSTSTATE$\nInfo: $OUTPUT$\nTime: $DATETIME$" | /usr/bin/mail -s '$NOTIFICATIONTYPE$ alert - Host $HOSTNAME$ is $HOSTSTATE$' $CONTACTPAGER$
-
-contact[jones]=Root;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager;host-notify-by-email,host-notify-by-epager;dr@jones.dk;
-contact[obs]=Root;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager;host-notify-by-email,host-notify-by-epager;obs@adamatic.dk;
-contact[anderskr]=Root;24x7;24x7;1;1;1;1;1;1;notify-by-email,notify-by-epager;host-notify-by-email,host-notify-by-epager;anderskr@homebase.dk;
-
-contactgroup[ah_admins]=Administrators;jones,obs
-contactgroup[hb_admins]=Administrators;anderskr,jones
-contactgroup[js_admins]=Administrators;jones
-
-# Localhost
-#service[localhost]=PING;0;24x7;3;3;1;admins;120;24x7;1;1;1;;check_ping
-#service[localhost]=LOAD;0;24x7;3;3;1;admins;120;24x7;1;1;1;;check_load!5!10!2!5!1!2
-#service[localhost]=Current Users;0;24x7;3;5;2;admins;240;24x7;1;1;1;;check_users!75!150
-#service[localhost]=Zombie Processes;0;24x7;3;5;2;admins;240;24x7;1;1;1;;check_procs!5!10!Z
-#service[localhost]=Total Processes;0;24x7;3;5;2;admins;240;24x7;1;1;1;;check_procs!200!300
-# A-Host
-service[ah_mail2]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_mail2]=LOAD;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_load!5!10!2!5!1!2
-service[ah_mail2]=Current Users;0;24x7;3;5;2;ah_admins;240;24x7;1;0;1;;check_users!75!150
-service[ah_mail2]=Zombie Processes;0;24x7;3;5;2;ah_admins;240;24x7;1;0;1;;check_procs!5!10!Z
-service[ah_mail2]=Total Processes;0;24x7;3;5;2;ah_admins;240;24x7;1;0;1;;check_procs!200!300
-service[ah_nat]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_rudi]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_ns]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_ftp]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_web]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-service[ah_list]=PING;0;24x7;3;3;1;ah_admins;120;24x7;1;0;1;;check_ping
-# Homebase
-service[hb_cisco]=PING;0;24x7;3;3;1;hb_admins;120;24x7;1;0;1;;check_ping
-service[hb_squash]=PING;0;24x7;3;3;1;hb_admins;120;24x7;1;0;1;;check_ping
-service[hb_baldur]=PING;0;24x7;3;3;1;hb_admins;120;24x7;1;0;1;;check_ping
-# Jones
-service[js_bastian]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
-service[js_xerxes]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
-service[js_ror]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
-service[js_pierre]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
-service[js_macvaerk]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
-#service[js_wetware]=PING;0;24x7;3;3;1;js_admins;120;24x7;1;0;1;;check_ping
+cfg_file=/etc/local-COMMON/netsaint/COMMON.cfg
+cfg_file=/etc/local-COMMON/netsaint/ISP.cfg
+cfg_file=/etc/local-COMMON/netsaint/BITBASE.cfg
+cfg_file=/etc/local-COMMON/netsaint/JONES.cfg
+cfg_file=/etc/local-COMMON/netsaint/HOMEBASE.cfg
+cfg_file=/etc/local-COMMON/netsaint/IDASKOLEN.cfg
+cfg_file=/etc/local-COMMON/netsaint/107B.cfg
+cfg_file=/etc/local-COMMON/netsaint/VEGA.cfg