Welcome to docs.opsview.com

Adding Android Push Notifications to Previous Versions of Opsview

You can add Android push notifications to Opsview Core or Opsview Enterprise 4.0-4.4 manually by following the instructions below. For users of Opsview 4.5 and above, the Android push notification method is shipped as standard:

  1. Save the script to the Opsview server as /usr/local/nagios/libexec/notifications/notify_by_gcm_push_custom, owner nagios:nagios, 755 permissions
  2. In the script, edit the following lines:
    # Change these if you don't have the notification profile set up in Opsview.
    my $opsview_system_uuid = "";
    my $ldap_username       = "";
    my $ldap_password       = "";
    my $proxy               = "";

    The UUID can be obtained from the About page of Opsview. The LDAP username and password are the credentials used to log into our main web site. If your server needs to route through a proxy, assign $proxy to it, eg. 'http://example.com:8080'

  3. In Opsview, create a new notification method: Settings → Notification Methods → Create new Notification Method (the plus icon). Enter the command as 'notify_by_gcm_push_custom'. Leave the Contact Variables field blank
  4. Assign the new notification method to a contact or contacts
  5. Apply Changes

Note: if Opsview is upgraded, a notification method will be created which is the official Push Notifications to Android method