Hallo Leute,
ich brauche mal wieder eure Hilfe.
ich habe in opt/omd2/versions/1.21.20150523/share/check_mk/notifications ein python skript erstellt welches eine ssh verbindung zu einem server aufbauen soll von wo aus eine sms verschickt wird.
Das klappt auch soweit ohne probleme.
in check mk habe ich dazu die Notification erstellt mit den regeln und den kontakten die benachrichtigt werden sollen.
nun habe ich 3 kontakte ausgewählt, alle 3 haben eine pager nr (handy nummer also).
sobald der fall eintritt und etwas in critical geht wird das python skript aufgerufen und ausgeführt. jedoch wird nur eine sms an einen kontakt geschickt, obwohl RBN es richtig verstanden hat es andere zu senden.
folgende ausgabe in /log/notify.log
ganz unten heißt es, dass er kontakt2 eine mail sendet, tut es aber nicht, ich vermute es liegt an der fehlermeldung davor, die ich auch sehr komisch finde.
hat einer einen rat für mich, bin am verzweifeln....
ich brauche mal wieder eure Hilfe.
ich habe in opt/omd2/versions/1.21.20150523/share/check_mk/notifications ein python skript erstellt welches eine ssh verbindung zu einem server aufbauen soll von wo aus eine sms verschickt wird.
Das klappt auch soweit ohne probleme.
in check mk habe ich dazu die Notification erstellt mit den regeln und den kontakten die benachrichtigt werden sollen.
nun habe ich 3 kontakte ausgewählt, alle 3 haben eine pager nr (handy nummer also).
sobald der fall eintritt und etwas in critical geht wird das python skript aufgerufen und ausgeführt. jedoch wird nur eine sms an einen kontakt geschickt, obwohl RBN es richtig verstanden hat es andere zu senden.
folgende ausgabe in /log/notify.log
![]() |
Quellcode |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
2015-08-04 20:22:51 Got raw notification context with 49 variables 2015-08-04 20:22:51 Preparing rule based notifications 2015-08-04 20:22:51 Found 0 user specific rules 2015-08-04 20:22:51 Global rule 'test'... 2015-08-04 20:22:51 Event type is rc 2015-08-04 20:22:51 -> matches! 2015-08-04 20:22:51 - adding notification of kontakt1 via sms 2015-08-04 20:22:51 - adding notification of kontakt2 via sms... 2015-08-04 20:22:51 Executing 3 notifications: 2015-08-04 20:22:51 * notifying kontakt1 via sms, parameters: (no parameters), bulk: no 2015-08-04 20:22:51 executing /omd/sites/monitoring/share/check_mk/notifications/sms 2015-08-04 20:23:09 ERROR: 'utf8' codec can't decode byte 0xfc in position 2: invalid start byte 2015-08-04 20:23:09 Traceback (most recent call last): File "/omd/sites/monitoring/share/check_mk/modules/notify.py", line 515, in notify_rulebased call_notification_script(plugin, plugin_context) File "/omd/sites/monitoring/share/check_mk/modules/notify.py", line 1361, in call_notification_script notify_log("Output: %s" % line.rstrip().decode('utf-8')) File "/usr/lib/python2.7/encodings/utf_8.py", line 16, in decode return codecs.utf_8_decode(input, errors, True) UnicodeDecodeError: 'utf8' codec can't decode byte 0xfc in position 2: invalid start byte 2015-08-04 20:23:09 * notifying kontakt2 via sms, parameters: (no parameters), bulk: no 2015-08-04 20:23:09 executing /omd/sites/monitoring/share/check_mk/notifications/sms |
ganz unten heißt es, dass er kontakt2 eine mail sendet, tut es aber nicht, ich vermute es liegt an der fehlermeldung davor, die ich auch sehr komisch finde.
hat einer einen rat für mich, bin am verzweifeln....




