Changeset 1847


Ignore:
Timestamp:
04/03/12 16:23:39 (12 years ago)
Author:
oschonef
Message:
  • add IDP monitroing script
  • cosmetic changes to SP script
  • add section about IDP script to README
Location:
monitoring/plugins/ids
Files:
1 added
2 edited

Legend:

Unmodified
Added
Removed
  • monitoring/plugins/ids/README.txt

    r1830 r1847  
     1Name:
     2  check_shib_idp - checks status of Shibboleth identitiy provider
     3Requirements:
     4  Perl-Modules: LWP, Date::Parse, Crypt::OpenSSL::X509
     5
     6  NB: Shibboleth-IDP needs to have an appropiate ACL in Status handler for
     7  monitoring host (see Shibboleth documentation)
     8Arguments:
     9  -H        host, mandatory
     10  -u        url, default: idp/status
     11  -t        timeout, default 10 seconds
     12  -S        use https
     13  -D        maximum clock skew, default 120
     14  -C        certificate expiry in days, will warn, if cert expires in less
     15
     16
     17
     18
    119Name:
    220  check_shib_sp - checks status of Shibboleth service provider
    321Requirements:
    422  Perl-Modules: LWP, XML::Parser, Date::Parse, Crypt::OpenSSL::X509
    5   Shibboleth-IDP needs to put appropiate ACL in Status handler for
    6   monitoring host
    723
     24  NB: Shibboleth-SP needs to have an appropiate ACL in Status handler for
     25  monitoring host (see Shibbolteh documentation)
    826Arguments:
    927  -H        host, mandatory
  • monitoring/plugins/ids/check_shib_sp

    r1830 r1847  
    11#!/usr/bin/perl
    22#
    3 # check_shib_sp, version 2012-03-28
     3# check_shib_sp, version 2012-04-03
    44#
    55
     
    139139    my $message = shift;
    140140
     141    $message =~ s/\n*$//;
    141142    printf("%s: %s\n", $CODE2STRING->{$code}, $message);
    142143    exit $code;
     
    234235        if ($cert->checkend(0)) {
    235236            status(CRITICAL,
    236                    sprintf('%s certificate is expired',
    237                            $key->{'use'}, $cert->subject()));
     237                   sprintf('%s certificate is expired since %s',
     238                           $key->{'use'}, $cert->notAfter()));
    238239        }
    239240        elsif ($cert->checkend($cert_warn_days * 86400)) {
Note: See TracChangeset for help on using the changeset viewer.