Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


 

Table of Contents

Prerequisites

...

To add a new notification method, you will need to copy the example Perl code which is in the distribution, which should be at /usr/local/nmis8/lib/Notify/mylog.pm, this is a functional notification method.  If you wanted to add something called NetSMS you would copy that tile file to NetSMS.pm, so 

Code Block
$ cp /usr/local/nmis8/lib/Notify/mylog.pm /usr/local/nmis8/lib/Notify/NetSMS.pm

...

You have access to the following data.

Sample Contact Details

FieldDescription

Contact

The contact ID or name

DutyTime

The on duty string for this contact

Email

The email address for this contact

Location

The location of this contact

Mobile

Mobile number can be used for SMS alerting

Pager

Pager value (does anyone still have these?)

Phone

The phone number

TimeZone

Timezone offset from GMT

Sample NMIS Event Details

Depending on your system and what features you have enabled, there may be more values, but at a minimum you will have the following

FieldDescription

ack

Has the event been acknowledged or not?

details

The details associated with the event
elementThe element associated with the event, e.g. interface name
escalateWhat level is the escalation at
levelCriticality of the event
nodeThe node the event is related to.
timeThe time the event was generated
notifyWho was notified about the event.

Feedback

We would love you get your feedback, please let us know if you had any problems or would like more information at contact@opmantek.com