Changeset 428 for noc/nagios
- Timestamp:
- Sep 26, 2007, 12:21:57 AM (17 years ago)
- Location:
- noc/nagios
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
noc/nagios/contacts.cfg
r48 r428 2 2 contactgroup_name scripts 3 3 alias Scripts Maintainers 4 members scripts 4 members scripts,scripts-zephyr 5 } 6 7 define contactgroup { 8 contactgroup_name pagers 9 alias Scripts Maintainers (Pagers) 10 members quentin-cell,geofft-pager 5 11 } 6 12 … … 12 18 host_notification_period 24x7 13 19 service_notification_options w,u,c,r 14 host_notification_options n20 host_notification_options d,u,r 15 21 service_notification_commands notify-by-email 16 22 host_notification_commands host-notify-by-email 17 23 email scripts-alerts@mit.edu 18 24 } 25 define contact { 26 contact_name quentin-cell 27 alias Quentin Smith (cell) 28 service_notification_period 24x7 29 host_notification_period 24x7 30 host_notification_options d,r 31 service_notification_options c,r 32 host_notification_commands host-notify-by-epager 33 service_notification_commands notify-by-epager 34 pager 6037598233@vtext.com 35 } 36 define contact { 37 contact_name geofft-pager 38 alias Geoff Thomas (cell) 39 service_notification_period 24x7 40 host_notification_period 24x7 41 host_notification_options d,r 42 service_notification_options c,r 43 host_notification_commands host-notify-by-epager 44 service_notification_commands notify-by-epager 45 pager page-geofft@mit.edu 46 } 47 define contact { 48 contact_name scripts-zephyr 49 alias scripts-zephyr 50 service_notification_period 24x7 51 host_notification_period 24x7 52 service_notification_options w,u,c,r 53 host_notification_options d,u,r 54 service_notification_commands notify-by-zephyr 55 host_notification_commands host-notify-by-zephyr 56 email scripts 57 } -
noc/nagios/hosts.cfg
r321 r428 13 13 } 14 14 15 # SQL 16 17 define host { 18 use scripts-host 19 host_name sql 20 alias sql 21 address 18.181.0.52 22 contact_groups scripts,pagers 23 } 24 15 25 define host { 16 26 use scripts-host … … 20 30 } 21 31 22 define host { 23 use scripts-host 24 host_name o-f 25 alias old-faithful 26 address 18.181.0.53 27 } 28 29 define host { 30 use scripts-host 31 host_name scripts 32 alias scripts 33 address 18.181.0.46 34 } 35 36 define host { 37 use scripts-host 38 host_name sql 39 alias sql 40 address 18.181.0.52 41 } 42 43 define host { 44 use scripts-host 45 host_name scripts-cert 46 alias scripts-cert 47 address 18.181.0.50 32 define hostextinfo { 33 host_name k-s 34 notes SQL 35 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_19.html 48 36 } 49 37 … … 55 43 } 56 44 45 define hostextinfo { 46 host_name s-b 47 notes SQL 48 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_17.html 49 } 50 51 # Scripts 52 53 define host { 54 use scripts-host 55 host_name o-f 56 alias old-faithful 57 address 18.181.0.53 58 # contact_groups scripts,pagers 59 } 60 61 define hostextinfo { 62 host_name o-f 63 notes Scripts 64 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_15.html 65 } 66 67 68 define host { 69 use scripts-host 70 host_name scripts 71 alias scripts 72 address 18.181.0.46 73 contact_groups scripts,pagers 74 } 75 76 define host { 77 use scripts-host 78 host_name scripts-cert 79 alias scripts-cert 80 parents scripts 81 address 18.181.0.50 82 contact_groups scripts,pagers 83 } 84 57 85 define host { 58 86 use scripts-host … … 60 88 alias better-mousetrap 61 89 address 18.181.0.57 90 # contact_groups scripts,pagers 62 91 } 92 93 define hostextinfo { 94 host_name b-m 95 notes Scripts 96 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_22.html 97 } 98 99 # LVS 63 100 64 101 define host { … … 67 104 alias not-forward 68 105 address 18.181.0.54 106 # contact_groups scripts,pagers 107 } 108 109 define hostextinfo { 110 host_name n-f 111 notes LVS Server 112 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_9.html 69 113 } 70 114 … … 74 118 alias not-backward 75 119 address 18.181.0.55 120 # contact_groups scripts,pagers 76 121 } 77 122 123 define hostextinfo { 124 host_name n-b 125 notes LVS Server 126 notes_url http://stuff.mit.edu/afs/sipb/project/mrtg/data/18.181.0.3_5.html 127 } 128 129 # Test 130 131 define host { 132 use scripts-host 133 host_name asdfasdfasdf 134 alias nagios-test 135 address 18.187.1.70 136 register 0 137 } 138 -
noc/nagios/misccommands.cfg
r48 r428 46 46 ################################################################################ 47 47 48 49 48 # 'host-notify-by-email' command definition 50 49 define command{ 51 50 command_name host-notify-by-email 52 51 command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\nHost: $HOSTNAME$\nState: $HOSTSTATE$\nAddress: $HOSTADDRESS$\nInfo: $HOSTOUTPUT$\n\nDate/Time: $LONGDATETIME$\n" | /bin/mail -s "Host $HOSTSTATE$ alert for $HOSTNAME$!" $CONTACTEMAIL$ 52 } 53 54 55 # 'host-notify-by-zephyr' command definition 56 define command{ 57 command_name host-notify-by-zephyr 58 command_line /usr/bin/printf "%b" "Host $HOSTSTATE$ alert for $HOSTNAME$!\n$HOSTOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$" 53 59 } 54 60 … … 64 70 command_name notify-by-email 65 71 command_line /usr/bin/printf "%b" "***** Nagios *****\n\nNotification Type: $NOTIFICATIONTYPE$\n\nService: $SERVICEDESC$\nHost: $HOSTALIAS$\nAddress: $HOSTADDRESS$\nState: $SERVICESTATE$\n\nDate/Time: $LONGDATETIME$\n\nAdditional Info:\n\n$SERVICEOUTPUT$" | /bin/mail -s "** $NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$ **" $CONTACTEMAIL$ 72 } 73 74 75 # 'notify-by-zephyr' command definition 76 define command{ 77 command_name notify-by-zephyr 78 command_line /usr/bin/printf "%b" "$NOTIFICATIONTYPE$ alert - $HOSTALIAS$/$SERVICEDESC$ is $SERVICESTATE$\n$SERVICEOUTPUT$" | /usr/bin/zwrite -d -s "Nagios" -c $CONTACTEMAIL$ -i "nagios.$HOSTALIAS$.$SERVICEDESC$" 66 79 } 67 80
Note: See TracChangeset
for help on using the changeset viewer.