Changeset 428


Ignore:
Timestamp:
Sep 26, 2007, 12:21:57 AM (17 years ago)
Author:
quentin
Message:
Added quentin, geofft's pager numbers and added links to MRTG graphs for servers
Location:
noc/nagios
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • noc/nagios/contacts.cfg

    r48 r428  
    22        contactgroup_name       scripts
    33        alias                   Scripts Maintainers
    4         members                 scripts
     4        members                 scripts,scripts-zephyr
     5}
     6
     7define contactgroup {
     8        contactgroup_name       pagers
     9        alias                   Scripts Maintainers (Pagers)
     10        members                 quentin-cell,geofft-pager
    511}
    612
     
    1218        host_notification_period        24x7
    1319        service_notification_options    w,u,c,r
    14         host_notification_options       n
     20        host_notification_options       d,u,r
    1521        service_notification_commands   notify-by-email
    1622        host_notification_commands      host-notify-by-email
    1723        email                           scripts-alerts@mit.edu
    1824}
     25define 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}
     36define 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}
     47define 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  
    1313}
    1414
     15# SQL
     16
     17define 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
    1525define host {
    1626        use     scripts-host
     
    2030}
    2131
    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
     32define 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
    4836}
    4937
     
    5543}
    5644
     45define 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
     53define 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
     61define 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
     68define 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
     76define 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
    5785define host {
    5886        use     scripts-host
     
    6088        alias           better-mousetrap
    6189        address         18.181.0.57
     90#       contact_groups  scripts,pagers
    6291}
     92
     93define 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
    63100
    64101define host {
     
    67104        alias           not-forward
    68105        address         18.181.0.54
     106#       contact_groups  scripts,pagers
     107}
     108
     109define 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
    69113}
    70114
     
    74118        alias           not-backward
    75119        address         18.181.0.55
     120#       contact_groups  scripts,pagers
    76121}
    77122
     123define 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
     131define 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  
    4646################################################################################
    4747
    48 
    4948# 'host-notify-by-email' command definition
    5049define command{
    5150        command_name    host-notify-by-email
    5251        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
     56define 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$"
    5359        }
    5460
     
    6470        command_name    notify-by-email
    6571        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
     76define 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$"
    6679        }
    6780
Note: See TracChangeset for help on using the changeset viewer.