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
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
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$'
}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
}

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
*/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

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.
0 9,12,15,18,21 * * * root /home/rpatters/prowl_weather_forcast > /dev/null 2>&1
#!/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

Users browsing this forum: No registered users