Changes

Jump to: navigation, search

stoney cloud: Notification Architecture

604 bytes added, 08:36, 20 June 2014
/* How to use the Notification.pm module */
Cheers
Sysadm{writer}
</pre>
You can now write a very simple perl script which will inform the user and the reseller for the service "notification" and the problem "test". All you need to do is:
$ldap_bind_pw,
);
</source>
* Create the replacement hash
** As you know the template you can easily fill in the replacement hash
<source lang="perl">
my $replace_hash = {
name => "World",
hostname => "test-host",
writer => "Sysadm",
};
</source>
* Finally set the create replacement hash in our notification object and call the notification method
<source lang="perl">
# Set the replace hash for the notification object
$notification->setReplaceHash( $replace_hash );
# And notify user and/or reseller
$notification->notify();
</source>
486
edits