what are people doing with custom notifications?
-
- Harmless
- Posts: 7
- Joined: Thu Jul 09, 2009 9:35 pm
what are people doing with custom notifications?
just wondering what people are doing with custom notifications with prowl.
I am using this with nagios (our monitoring software, I am a systems engineer and this is very nice for notifications instead of sms)
~bob
I am using this with nagios (our monitoring software, I am a systems engineer and this is very nice for notifications instead of sms)
~bob
Re: what are people doing with custom notifications?
I have asterisks both at home and at the office. I usually have my iPhone with me at all times, but not my phone, so I send caller id from asterisk at home to my iphone using a custom script, and at the office using growl. This has the added benefit that I don't receive notifications when I am at my desk. Also, using azexec, I receive notifications when Vuze finished downloading a torrent. (I have vuze on a headless machine, so it is VERY useful).
-
- Harmless
- Posts: 7
- Joined: Thu Jul 09, 2009 9:35 pm
Re: what are people doing with custom notifications?
yeah im going to get torrents working tonight on my home server (i run a fedora machine as my main server)
I was also going to set up alerts on it for various systems issues so I can get updates instead of having to read my email or log onto the machine
I was also going to set up alerts on it for various systems issues so I can get updates instead of having to read my email or log onto the machine
Re: what are people doing with custom notifications?
pushing twitter direkt messages and some jabber requests
-
- Harmless
- Posts: 2
- Joined: Tue Jul 22, 2008 9:14 pm
Re: what are people doing with custom notifications?
Currently using Prowl to...
Push Voicemail Notifications from our PBX (Used to use email to SMS).
From our Solarwinds Network Monitor we wrote a script for growl, now prowling/pushing all NOC notifications.
IRC Channel Direct msg.
IM - initial chat requests from our Support IM Client/Server.
Package Deliveries.
Network Operations Center Room Temperature when above a set threshold.
Our Twiiter account for dir. msg.
More coming im sure... With all this you would think I would get a lot of Push notifications - I only get a handful a day (5 - 10 daily).
Push Voicemail Notifications from our PBX (Used to use email to SMS).
From our Solarwinds Network Monitor we wrote a script for growl, now prowling/pushing all NOC notifications.
IRC Channel Direct msg.
IM - initial chat requests from our Support IM Client/Server.
Package Deliveries.
Network Operations Center Room Temperature when above a set threshold.
Our Twiiter account for dir. msg.
More coming im sure... With all this you would think I would get a lot of Push notifications - I only get a handful a day (5 - 10 daily).
Re: what are people doing with custom notifications?
bobpatterson wrote:just wondering what people are doing with custom notifications with prowl.
I am using this with nagios (our monitoring software, I am a systems engineer and this is very nice for notifications instead of sms)
~bob
Hi,
how did you integrate prowl into your nagios installation? Via misccommands.cfg and a contact or otherwise?
Of you did it via the misccommands.cfg, how does your command line look? Because I tried that too and ran into some problems which I couldn't iron out yet..
Greetz,
Gritzens
Re: what are people doing with custom notifications?
Mine's pretty boring...
I'm just using it for Adium > Message received (Initial) (http://forums.cocoaforge.com/viewtopic.php?f=45&t=20340) and completed Transmission files, but I'd like to use it for other things. I'm hoping someone might post something of interest here.
I'm just using it for Adium > Message received (Initial) (http://forums.cocoaforge.com/viewtopic.php?f=45&t=20340) and completed Transmission files, but I'd like to use it for other things. I'm hoping someone might post something of interest here.
-
- Harmless
- Posts: 7
- Joined: Thu Jul 09, 2009 9:35 pm
Re: what are people doing with custom notifications?
Gritzens wrote:bobpatterson wrote:just wondering what people are doing with custom notifications with prowl.
I am using this with nagios (our monitoring software, I am a systems engineer and this is very nice for notifications instead of sms)
~bob
Hi,
how did you integrate prowl into your nagios installation? Via misccommands.cfg and a contact or otherwise?
Of you did it via the misccommands.cfg, how does your command line look? Because I tried that too and ran into some problems which I couldn't iron out yet..
Greetz,
Gritzens
ok so i used this in command.cfg
Code: Select all
define command{
command_name notify-service-by-prowl
command_line /usr/local/nagios/prowl.pl -username xxxxxx -password=xxxxxxxxx -application=nagios -event='$HOSTNAME$' -notification='$SERVICEDESC$ - $SERVICEOUTPUT$'
}
define command{
command_name notify-host-by-prowl
command_line /usr/local/nagios/prowl.pl -username xxxxx -password=xxxxxxx -application=nagios -event='$HOSTNAME$' -notification='$HOSTSTATE$ - $HOSTOUTPUT$'
}
and this in contacts.cfg
Code: Select all
define contact{
contact_name prowl
alias prowl
use generic-contact
service_notification_period oncall
host_notification_period oncall
service_notification_options u,c,s
host_notification_options d,u,s
service_notification_commands notify-service-by-prowl
host_notification_commands notify-host-by-prowl
}
i used the perl post script
im currently working to integrate it with NANS. A guy at my company wrote NANS and i actually have fixed some stuff for version 3 of nagios, so i will have to release my updates at some point
Re: what are people doing with custom notifications?
Thanks very much, will try this way on monday 
I had the problem that tough I got a notification, It was always the same, regardless of which host or service was reporting a critical...don't know exactly why...

I had the problem that tough I got a notification, It was always the same, regardless of which host or service was reporting a critical...don't know exactly why...
Re: what are people doing with custom notifications?
I am a system admin for a school district and like to know the moment there is a server or a network outage.
Because the default setup of prowl and growl seem to require that you be logged in as a console user, this does me no good on my mac servers unless I am logged into them as an administrator, and for security reasons i do not like to leave unattended servers logged in.
I was able to figure out how to send a notification to the prowl servers without even using growl or the prowl plugin, instead i use curl and a specially crafted url to send a notification to the prowl client on my iphone.
#!/bin/bash
SERVER1=142.35.29.253
GATEWAY1=142.35.28.1
ping -c 1 $SERVER1 &>/dev/null
if [ $? -ne 0 ] ; then
curl -k -s "https://prowl.weks.net/publicapi/add?apikey=<YOUR API KEY HERE>&application=Server%20Connectivity%20Failure&event=&description=server1&priority=%d"
fi
sleep 10
ping -c 1 $GATEWAY1 &>/dev/null
if [ $? -ne 0 ] ; then
curl -k -s "https://prowl.weks.net/publicapi/add?apikey=<YOUR API KEY HERE>&application=Network%20Connectivity%20Failure&event=&description=gateway1&priority=%d"
fi
This little script has about a dozen servers and networks it checks and runs from my office on a computer with a high uptime and runs about every 10 minutes. I am now able to get a push notification whenever there is a network or server outage.
This is exciting and i hope to see some more innovative uses for it.
Because the default setup of prowl and growl seem to require that you be logged in as a console user, this does me no good on my mac servers unless I am logged into them as an administrator, and for security reasons i do not like to leave unattended servers logged in.
I was able to figure out how to send a notification to the prowl servers without even using growl or the prowl plugin, instead i use curl and a specially crafted url to send a notification to the prowl client on my iphone.
#!/bin/bash
SERVER1=142.35.29.253
GATEWAY1=142.35.28.1
ping -c 1 $SERVER1 &>/dev/null
if [ $? -ne 0 ] ; then
curl -k -s "https://prowl.weks.net/publicapi/add?apikey=<YOUR API KEY HERE>&application=Server%20Connectivity%20Failure&event=&description=server1&priority=%d"
fi
sleep 10
ping -c 1 $GATEWAY1 &>/dev/null
if [ $? -ne 0 ] ; then
curl -k -s "https://prowl.weks.net/publicapi/add?apikey=<YOUR API KEY HERE>&application=Network%20Connectivity%20Failure&event=&description=gateway1&priority=%d"
fi
This little script has about a dozen servers and networks it checks and runs from my office on a computer with a high uptime and runs about every 10 minutes. I am now able to get a push notification whenever there is a network or server outage.
This is exciting and i hope to see some more innovative uses for it.
Re: what are people doing with custom notifications?
So, my newest use for prowl is to push me sms which I receive on another mobile phone to my iphone. I just get SMS on that second phone, so now, i don't have to carry around 2 phones anymore:)
This is the most awesome thing ever...
This is the most awesome thing ever...
Re: what are people doing with custom notifications?
I am using the Prowl PHP class along with SimplePie to "push" (not true push as the cron job still is a pull) updates to RSS feeds, currently just my Facebook notifications feed but am looking at adding some weather and sports scores as well.
-
- Harmless
- Posts: 24
- Joined: Sat Jul 11, 2009 6:06 am
Re: what are people doing with custom notifications?
bobpatterson wrote:just wondering what people are doing with custom notifications with prowl.
I am using this with nagios (our monitoring software, I am a systems engineer and this is very nice for notifications instead of sms)
~bob
I'm also doing Nagios notifications. Using WebService::Prowl made it a snap to drop into my companies custom notification program.
As soon as I saw there was an API to send PUSH notifications programatically I instantly added it to our Nagios system. I'm surprised Apple didn't make some application that you could send generic notifications to this way. I'm really liking this app!!!
-T
Re: what are people doing with custom notifications?
Very boring, When we get a sale on our e-commerce website I get a notification of the sale, the value etc.
Also handling torrents etc.
Also handling torrents etc.
Re: what are people doing with custom notifications?
I'm using this little one-liner in my crontab to give me severe weather alerts. (pulling from weather.gov's rss)
Looks like this:

Code: Select all
*/30 * * * * mv /tmp/exweath_new.txt /tmp/exweath_old.txt; curl -s http://www.weather.gov/alerts-beta/wwaatmget.php?x=TXZ103|grep '<summary>'|awk -F'\.\.\.' '{print $2}' > /tmp/exweath_new.txt; if ! diff /tmp/exweath_new.txt /tmp/exweath_old.txt ; then /home/acrollet/bin/prowl.pl -apikeyfile=/home/acrollet/.prowlapikey -application='Denton County' -notification="`cat /tmp/exweath_new.txt`" -priority=1 -event='severe weather'; fi
Looks like this:

Re: what are people doing with custom notifications?
I've been like a kid in a candy shop since Prowl came out. Here's my current bag o' tricks that I'm still using more than a few days later...
For the most part, I have various scripts and applications on my home server Mac, including...
Successful/unsuccessful Mozy backup
Successful client machine backups (just a folder watching script)
New file downloads (from sync folders, torrents, TiVo, and various other scheduled or otherwise automated sources -- some notifications provided by scripts, others by the application itself, e.g. Transmission)
System reboots (sometimes happens automatically or due to power outages)
Missing network devices (a script that pings appropriate IPs)
Alert on missing/non-responsive servers (a combination of telnet, curl and ping tests to check web/email servers under my purview)
Then I have a computer that picks up various events based on a private Twitter feed. (Using Griffin Technology's Proxi to monitor the Twitter account in question) It Prowls the responses back to my phone, so that I can ensure remote commands are properly executed.
And, lastly, OmniFocus pushes overdue task notifications to me. Still working on a script to send regular reminders in addition to the built in Growl notification, in case I have a task that's STILL overdue.
For the most part, I have various scripts and applications on my home server Mac, including...
Successful/unsuccessful Mozy backup
Successful client machine backups (just a folder watching script)
New file downloads (from sync folders, torrents, TiVo, and various other scheduled or otherwise automated sources -- some notifications provided by scripts, others by the application itself, e.g. Transmission)
System reboots (sometimes happens automatically or due to power outages)
Missing network devices (a script that pings appropriate IPs)
Alert on missing/non-responsive servers (a combination of telnet, curl and ping tests to check web/email servers under my purview)
Then I have a computer that picks up various events based on a private Twitter feed. (Using Griffin Technology's Proxi to monitor the Twitter account in question) It Prowls the responses back to my phone, so that I can ensure remote commands are properly executed.
And, lastly, OmniFocus pushes overdue task notifications to me. Still working on a script to send regular reminders in addition to the built in Growl notification, in case I have a task that's STILL overdue.
-
- Harmless
- Posts: 1
- Joined: Mon Jul 13, 2009 2:32 pm
Re: what are people doing with custom notifications?
iNik wrote: And, lastly, OmniFocus pushes overdue task notifications to me. Still working on a script to send regular reminders in addition to the built in Growl notification, in case I have a task that's STILL overdue.
Ha! That's excellent. Would you be likely to share that script with the community? Man oh man, would I love it if I could get "dude, seriously, this is still overdue" reminders via Prowl.

-
- Harmless
- Posts: 7
- Joined: Thu Jul 09, 2009 9:35 pm
Re: what are people doing with custom notifications?
I added weather updates at certain times from the mobile site of weather.gov because of less html tags
this was just a quick hack together... I am going to make it nicer by parsing out the tags and line breaks and will post that when I do
/etc/cron.d/prowl
prowl_weather_forcast

this was just a quick hack together... I am going to make it nicer by parsing out the tags and line breaks and will post that when I do
/etc/cron.d/prowl
Code: Select all
0 9,12,15,18,21 * * * root /home/rpatters/prowl_weather_forcast > /dev/null 2>&1
prowl_weather_forcast
Code: Select all
#!/bin/bash
rm -f /tmp/weather_forcast
curl -s "http://mobile.weather.gov/port_mp_ns.php?select=1&CityName=New%20York&site=OKX&State=NY&warnzone=NYZ072"|grep '<b>'|grep -v NWS|sed 's/<br>//g'|sed 's/<b>//g'|sed 's/<\/b>//g'|sed 's/<\/br>//g'|sed 's/<hr>//g' >> /tmp/weather_forcast
/tmp/prowl.pl -apikeyfile=/tmp/apikey -event=forcast -notification="`cat /tmp/weather_forcast`" -priority=2
Last edited by bobpatterson on Tue Jul 14, 2009 7:22 pm, edited 3 times in total.
Re: what are people doing with custom notifications?
I'm using a little Ruby script along with the Twitter streaming API to push mentions to my phone. I don't get that many, otherwise it'd be annoying. 
I just need to make the script a little more robust for the ups and downs of the source API, which when it works is close to instantaneous.

I just need to make the script a little more robust for the ups and downs of the source API, which when it works is close to instantaneous.
Re: what are people doing with custom notifications?
Twitter streaming API is still in alpha, right? That's a pretty cool idea, though: basically real push Twitter.
Who is online
Users browsing this forum: No registered users