Changeset 429


Ignore:
Timestamp:
Sep 26, 2007, 12:22:56 AM (17 years ago)
Author:
quentin
Message:
Added service checks, including SSH and SSL certificate expiration.
Location:
noc/nagios
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • noc/nagios/checkcommands.cfg

    r48 r429  
    7575        }
    7676
     77# 'check_http_heartbeat' command definition
     78define command{
     79       command_name     check_http_heartbeat
     80       command_line     $USER1$/check_http -H $HOSTADDRESS$ -u /heartbeat/http -s 1
     81       }
     82
     83# 'check_https_cert' command definition
     84define command{
     85       command_name     check_https_cert
     86       command_line     $USER1$/check_http -H $HOSTADDRESS$ -S -C $ARG1$
     87       }
    7788
    7889# 'check_local_disk' command definition
  • noc/nagios/services.cfg

    r48 r429  
    2929define service {
    3030        use     scripts-service
     31        host_name       scripts
     32        service_description     SSH
     33        check_command   check_ssh
     34        notification_period     afs
     35        contact_groups  scripts,pagers
     36}
     37
     38define service {
     39        use     scripts-service
    3140        hostgroup_name  scripts-http
    3241        service_description     HTTP
    33         check_command   check_http
     42        notification_period     afs
     43        check_command   check_http_heartbeat
     44        contact_groups  scripts,pagers
    3445}
    3546
     
    3849        hostgroup_name  scripts-https
    3950        service_description     HTTPS
    40         check_command   check_tcp!443
     51        notification_period     afs
     52        check_command   check_https_cert!14
     53        contact_groups  scripts,pagers
    4154}
    4255
     
    4558        hostgroup_name  scripts-mail
    4659        service_description     POSTFIX
    47         check_command   check_remote_procs_u!2:50!2:100!postfix
     60        check_command   check_remote_procs_u!1:110!1:200!postfix
     61}
     62
     63define service {
     64       use     scripts-service
     65       hostgroup_name   scripts-mail
     66       service_description      SMTP
     67       check_command    check_smtp
     68}
     69
     70define service {
     71       use     scripts-service
     72       host_name        scripts
     73       service_description      SMTP
     74       check_command    check_smtp
    4875}
    4976
     
    102129        service_description     MYSQL
    103130        check_command   check_tcp!3306
     131        contact_groups  scripts,pagers
     132}
     133
     134define service {
     135        use     scripts-service
     136        hostgroup_name  scripts-mysql
     137        service_description     HTTP
     138        notification_period     afs
     139        check_command   check_http
     140        contact_groups  scripts,pagers
    104141}
    105142
Note: See TracChangeset for help on using the changeset viewer.