Hi Rob, I'm trying out your check_mk-slack and run into this in var/check_mk/notify/notify.log :
[1455885329] Preparing flexible notifications for slack [1455885329] Plugin: slack [1455885329] Executing /omd/sites/jfk/local/share/check_mk/notifications/slack [1455885329] Output: Traceback (most recent call last): [1455885329] Output: File "/omd/sites/jfk/local/share/check_mk/notifications/slack", line 42, in <module> [1455885329] Output: message += os.environ['NOTIFY_SERVICEACKCOMMENT'] [1455885329] Output: File "/usr/lib/python2.7/UserDict.py", line 23, in __getitem__ [1455885329] Output: raise KeyError(key) [1455885329] Output: KeyError: 'NOTIFY_SERVICEACKCOMMENT' [1455885329] Plugin exited with code 1 [1455885329] Got notification context with 42 variables [1455885329] Notification context: The context only has these entries : CONTACTEMAIL CONTACTNAME CONTACTPAGER DATE HOSTADDRESS HOSTALIAS HOSTCHECKCOMMAND HOSTDOWNTIME HOST_EC_CONTACT HOSTNAME HOSTNOTIFICATIONNUMBER HOSTOUTPUT HOSTPERFDATA HOSTPROBLEMID HOST_SL HOSTSTATE HOSTSTATEID HOSTTAGS HOSTURL LASTHOSTSTATE LASTHOSTSTATECHANGE LASTHOSTSTATECHANGE_REL LASTSERVICESTATE LASTSERVICESTATECHANGE LASTSERVICESTATECHANGE_REL LONGDATETIME LONGHOSTOUTPUT LONGSERVICEOUTPUT MAIL_COMMAND MONITORING_HOST NOTIFICATIONAUTHOR NOTIFICATIONAUTHORALIAS NOTIFICATIONAUTHORNAME NOTIFICATIONCOMMENT NOTIFICATIONTYPE OMD_ROOT OMD_SITE SERVICECHECKCOMMAND SERVICEDESC SERVICE_EC_CONTACT SERVICENOTIFICATIONNUMBER SERVICEOUTPUT SERVICEPERFDATA SERVICEPROBLEMID SERVICE_SL SERVICESTATE SERVICESTATEID SERVICEURL SHORTDATETIME SVC_SL WHAT -- Hans Robert Mertling-Blake wrote on 20151105: > Hi Dan, > > We've achieved this by writing a rather rough and ready check_mk > notification script (which in this case you'd dump in the > local/share/check_mk/notifications subfolder of your OMD site) and > pointing it at a Slack Incoming Webhook. I've uploaded the script > and some rather lacklustre instructions onto github: > https://github.com/rmblake/check_mk-slack - and any feedback would > be appreciated. > > Cheers, > > Rob > > On 05/11/15 13:59, Dan Attwood wrote: > > > >Hello > > > >I’ve been using OMD on Ubuntu for a bit now and I’m starting to > >get to grips with it. I’m especially liking the check_mk parts as > >it makes setting stuff up a dodle. > > > >I’d like to be able to tie the alerts into SLACK if possible. The > >slack site gives instructions on how to do this with Nagios but > >has the omd set up of nagio is different they don’t work. > > > >Is anyone able to point me in the right direction please. > > > >Dan > > > > > > > >_______________________________________________ > >omd-users mailing list > >[email protected] > >http://lists.mathias-kettner.de/mailman/listinfo/omd-users > > -- > Rob Mertling-Blake > Network Specialist > Information Management and Technology > London School of Economics and Political Science > Houghton Street > London WC2A 2AE UK > www.lse.ac.uk/imt > > _______________________________________________ > omd-users mailing list > [email protected] > http://lists.mathias-kettner.de/mailman/listinfo/omd-users -- Hans Lambermont | Senior Architect (t) +31407370104 (w) www.shapeways.com _______________________________________________ omd-users mailing list [email protected] http://lists.mathias-kettner.de/mailman/listinfo/omd-users
