Changeset 2810 for trunk/server/fedora


Ignore:
Timestamp:
Dec 12, 2016, 6:22:02 PM (8 years ago)
Author:
andersk
Message:
check_ldap_mmr: Update for new nsds5replicaLastUpdateStatus format

- 0 Replica acquired successfully: Incremental update succeeded
+ Error (0) Replica acquired successfully: Incremental update succeeded

https://fedorahosted.org/389/ticket/48957
https://bugzilla.redhat.com/show_bug.cgi?id=1370300
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/server/fedora/config/etc/nagios/check_ldap_mmr.real

    r2773 r2810  
    3535    my $serverlastend=$entr->get_value($lastend);
    3636    my $statuscode = $serverstatus;
    37     $statuscode =~ s/(^[-0123456789]+) (.*$)/$1/;
     37    $statuscode =~ s/^(?|([-0123456789]+)|Error \(([-0123456789]+)\)) (.*)$/$1/;
    3838    $serverlaststart =~ s/(....)(..)(..)(..)(..)(..)./$1-$2-$3\ $4:$5:$6/;
    3939    $serverlastend =~ s/(....)(..)(..)(..)(..)(..)./$1-$2-$3\ $4:$5:$6/;
Note: See TracChangeset for help on using the changeset viewer.