App-Standby

 view release on metacpan or  search on metacpan

README  view on Meta::CPAN

    international format (+<countryprefix><areaprefix> <extension>). Again,
    enter the group key to authenticate yourself.

    After creation contacts are disabled and won't participate in any
    rotation, so be sure to enable some users (usually all).

    Some services may need additional configuration per users, so you can
    store additional config under each user.

    Now you need to change the notification order at least once to make sure
    all remote services are updated. This happens only when the order is
    changed.

PLUGINS
    Have a look at the examples directory for some example plugins.

DEBUGGING
    If anything goes wrong have a look at the logfile. Depending on your
    configuration its either at /var/log/standby-mgm.log or
    /tmp/standby-mgm.log.

lib/App/Standby.pm  view on Meta::CPAN

The cellphone number should be in normalized international format (+<countryprefix><areaprefix>
<extension>). Again, enter the group key to authenticate yourself.

After creation contacts are disabled and won't participate in any rotation, so be sure to enable
some users (usually all).

Some services may need additional configuration per users, so you can store additional config
under each user.

Now you need to change the notification order at least once to make sure all remote services
are updated. This happens only when the order is changed.

=head1 PLUGINS

Have a look at the examples directory for some example plugins.

=head1 DEBUGGING

If anything goes wrong have a look at the logfile. Depending on your configuration its either at
/var/log/standby-mgm.log or /tmp/standby-mgm.log.

lib/App/Standby/Service/Pingdom.pm  view on Meta::CPAN

    # in the user list (remember: the first person always is the one currently
    # on duty)
    foreach my $contact_id (@{$self->pingdom_contact_ids()}) {
        try {
            my $status = $self->pingdom()->contact_modify($contact_id, {
                'cellphone' => $user_ref->[0]->{'cellphone'},
                'countrycode' => 49,
                'countryiso'  => 'DE',
            });
            if($status) {
                $self->logger()->log( message => "Successfully updated pingdom contact id $contact_id", level => 'debug', );
            } else {
                $self->logger()->log(
                                    message => "Failed to update pingdom contact id $contact_id. Error: ".
                                     $self->pingdom()->lasterror()->{'statuscode'}.' - '.
                                     $self->pingdom()->lasterror()->{'statusdesc'}.' - '.
                                     $self->pingdom()->lasterror()->{'errormessage'},
                                    level => 'error',
                                    );
            }
        } catch {



( run in 0.316 second using v1.01-cache-2.11-cpan-05444aca049 )