Changes

Jump to: navigation, search

stoney cloud: Notification Architecture

3 bytes added, 08:51, 20 June 2014
/* How to use the Notification.pm module */
Suppose you have the <code><Service></code> "notification" and the <code><Problem></code> "test". The template referenced in the LDAP (<code>ou=test,ou=templates,uid=<RESELLER>,ou=reseller,ou=configuration,ou=notification,ou=services,dc=stoney-cloud,dc=org</code>) looks like:
<pre>
Hello {$name}
This is a notification test from {$hostname}
Cheers
{$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:
486
edits