Creating Custom Notifications in Opsview

1,382 views
1,178 views

Published on

Sometimes it may be necessary to create and run custom notification methods depending on your environment and requirements in accordance with custom SLA’s, contracts, etc. This slideshare shows you how to configure them in Opsview.

Published in: Technology, Design
0 Comments
0 Likes
Statistics
Notes
  • Be the first to comment

  • Be the first to like this

No Downloads
Views
Total views
1,382
On SlideShare
0
From Embeds
0
Number of Embeds
4
Actions
Shares
0
Downloads
19
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Creating Custom Notifications in Opsview

  1. 1. Creating and Using Custom Notification Methods in OpsviewMonday, 30 July 2012 © Opsview Ltd. Commercial in Confidence 2
  2. 2. IntroductionSometimes it may be necessary to create and run customnotification methods depending on your environment andrequirements in accordance with custom SLA’s, contracts, etc.In Opsview this is very simple to setup.If you don’t already have Opsview installed, visit our website anddownload Opsview Core (free), Opsview Pro (30 day trial) orrequest a trial to Opsview Enterprise. 3Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  3. 3. Configuration• Firstly, the directory location for the notification scripts is located at /usr/local/nagios/libexec/notifications.• In here you will see the scripts already on Opsview, plus any other additional notifications already created: 4Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  4. 4. Configuration• In this example, we are going to be using “notify_by_email” as our script.• After logging into the Opsview web interface, we will now need to proceed to create the new notification first are foremost.• To do this, we will need to navigate to “SETTINGS > NOTIFICATION METHODS”. 5Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  5. 5. Configuration• In the top corner, there will be the “addition” sign. Click this to load the new “New notification method” window. As per the image below, we will need to populate this box with the appropriate information:• As you can see, the name of the module we created should be added to the “command” field, as this is the script that will be called when the notification method is engaged. Click “submit changes”, and our new notification method “Opsview Demo Notification” is now created. 6Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  6. 6. Configuration• Now we need to add this notification to a contact, so that the contact will be notified when the parameters for the notification to be initiated, have been satisfied. To do this, we need to navigate to “Settings > Contacts” and click on the contact we wish to modify, in this case “smarsh”.• Once on the contact profile, click the button “Submit and edit notification profiles” – make sure that the password boxes are both empty, as some browsers may auto populate one of these fields.• Once loaded, we can now edit which notifications are attached to that contact, and as we need to, add our own custom notification. 7Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  7. 7. Configuration• As you can see, we have a check box under the “Notify by..” section, and in this section we can see our new notification “Opsview Demo Notification”. Simply toggle this box, and our new notification is added to this user. This can be done for all applicable users. We can also configure further information on this page, such as for which host groups do we want this notification to be sent for – in this case, only the “premium, monitoring servers and ESX servers”. 8Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  8. 8. Configuration• We can also configure when we want this notification to be called, and for what alerts. We may only want to know when a critical alert happens or when a box is down, not when a service is flapping (i.e. an engineer on call over night). 9Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  9. 9. Configuration• So as before, we have configured it only to alert us on warning/critical alerts on services, and for only on hosts which are down or unreachable. And the notification will only be engaged during “nonworkhours”, as specified in “SETTINGS > TIME PERIODS” (so the notification will only do the action during 6pm-8am, for example).• Finally, submit the changes and go to “SETTINGS > APPLY CHANGES” to apply our new notification to our user(s). 10Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence
  10. 10. About OpsviewOpsview delivers a single unified view of the health of all your distributed physical,virtual and hybrid cloud systems.We give DevOps staff all the tools they need to get their jobs done faster, easier andfor less.• Opsview Enterprise offers large enterprises (+100 devices) and MSPs a certified, professionally supported system with enhanced functionality such as dynamic dashboards and reports• SMEs looking for feature-rich dashboards to monitor the performance of their on- premise, virtualized or cloud apps choose Opsview Pro• Opsview Core is our free, open source monitoring tool - you can test and customize it how you wantwww.opsview.com 11Monday, 30 July 2012 © Opsview Ltd. Commercial in Confidence

×