There are no products in your shopping cart.
I love the ability to do push notifications and the new iOS app. Is there a way to have per-user push notifications or do we need to setup a shared username/password on the community site that is shared by all the people who want push notifications?
I'm currently upgrading my installation, but i think you could copy the notification script over multiple times and then configure different notification mehtods for each account you need.
I don't see any way to select which notification methods to use per-user account. There is a field for e-mail, but nothing that lets the user select which notification methods they personally would like to use (unless I am missing something, as that would be very handy).
You have to create a contact for each User which should receive push notifications. Afterwards you must create a notification profile. In this profile you can choose your notification methods which you can configure at settings > notification methods. Just reuse the existing script notify_by_ios_push for your new notification method. You should use an individual opsview.com account for each push notification script.
I did not validate if this workaround actually works, but this is the principle how notifications in opsview are working.
Aha, okay I see now thanks. Somehow I have always missed the notification methods in the notification profiles, I just assumed it sent to everything. I haven't followed through the full process but I see how this should work now.
This is already built-in!
The key is that the username in the Opsview Mobile app must match the contact's username in Opsview. Then notifications for that contact will get routed to the correct device.
The username/password for the notification method is for authentication to our push servers, to provide security and reduce the chance of hacking (by sending random usernames and UUIDs). You only need one per Opsview server.
I've updated the docs at https://docs.opsview.com/doku.php?id=opsview-mobile-ios. Let me know if anything is not clear.
The last thing you should do is copy the notify_by_ios_push script....
Oh that was really not clear to me :) so we will create a company opsview.com account and use individual contacts which match their logins
Yes, thank you very much that helps a lot!
Hmm, okay I'm still having trouble. I don't think the notification handler is even being called. I noticed there is a logging file created nearly everytime it is called (unless the basic environment variables are missing) but the log file did not exist. I created a custom version of this notification script and adding a lot more debug info to it, and as far as I can tell it isn't even being called. I see there is an option to turn on logging of notifications for the nagios core and that was already on but I can't find a log file anywhere that includes any information of the notifications sent (such as e-mail notifications).
So that is issue 1.
I have been messing with the script to send a test directly. Using the logging functionality and examining the log file, I can verify that the "ldap" (guessing this script was copied from elsewhere) username/password sent to the push.opsview.com server is my correct opsview account info. I can also verify that the "contact name" sent is also my opsview account name (same name for both uses currently). I can verify that there is an actual textual message being sent. The script says "200 OK sent messages: N/A". I verified that I get the same results if I use a bogus contact name, so that seems to be accurate. My only guess on this point is that maybe I somehow need to associate my opsview server (by its UUID) with my account, is that possibly correct, or is that sent just for anonymous usage tracking?
I will keep messing with it after the weekend, but if anybody has any thoughts on what in particular I might look at, I would greatly appreciate it!
When you enable push notifications in the app, it connects to the specified Opsview server, gathers its UUID and sends to our push server the UUID, the Opsview username used to connect to the Opsview server and its device id.
From Opsview, the "200 OK sent messages: N/A" means that the notification got to our push servers, but couldn't find an appropriate device to relay the message to. The device is looked up based on the UUID of your Opsview system and the Opsview user name, sent with the notification.
So I think your device has not registered to our push servers correctly. Force it by going into the Settings in the app, and press Done. After 10 seconds, it should register again.
Let us know how you get on. We'll update the docs on Monday
Okay, I'm closer... :) The script now says it sent 1 message, though nothing is showing up on my phone. I'll let it sit for awhile and try again around lunch just to make sure everything has had a chance to "settle".
I do have a question though, as I am a bit confused about the usernames. My opsview.com account name is cabal95. My local opsview server account name is daniel (to match our other authentication systems).
In the app I configured the opsview system authentication to use 'daniel' and the push settings to use 'cabal95'. Is that the correct/supported setup? The docs mentioned being sure to use the same username, but now (based on my testing with the script) I believe it is only referring to the push settings and not the local opsview server account. Is that correct?
(For the above problem, I did try creating a local account that matched my opsview.com account name, but still didn't get any push notifications, though it again said it was sent).
I've edited some text at https://docs.opsview.com/doku.php?id=opsview-mobile-ios#push_notifications to try to clarify which usernames need to match. Does this clarify?
Okay it is working now. It seems like it (either the opsview.com, my own iphone app or my own opsview server) just needed to sit and think about it for a little bit.
So it seems like the core issue was my phone not (for some reason) being registered with the push server. Not sure why, maybe on first run it never actually registered successfully and then didn't try again until I went back to the settings. But I have 'daniel' on my local server and 'cabal95' on opsview.com, the app is configured appropriately and notifications are now coming through.
Thanks again for the help and the great stuff. I also really like the fact that everything is customizable (like the script to send the ios notifications) since that means I can customize even more strictly what I want to receive on my phone vs. e-mail.
Yes, that helps clarify. Thanks again for all your help. Loving the entire product!
NEED HELP? WE'LL CALL YOU BACK!
Copyright ©2013 Opsview Ltd.
All rights reserved.
Call us for a quote