Module: check_mk
Branch: master
Commit: 7f883c7a07b19db8a56fc503a3fd2ccc52bcfeff
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=7f883c7a07b19d…
Author: Mathias Kettner <mk(a)mathias-kettner.de>
Date: Fri Oct 16 14:11:12 2015 +0200
sms notification script: suppress bogus error message
---
notifications/sms | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/notifications/sms b/notifications/sms
index aa50802..811060f 100755
--- a/notifications/sms
+++ b/notifications/sms
@@ -34,7 +34,7 @@ import os, sys
send_path = None
for binary in [ 'sendsms', 'smssend' ]:
- if os.system('which %s >/dev/null' % binary) == 0:
+ if os.system('which %s >/dev/null 2>/dev/null' % binary) == 0:
send_path = binary
smsd_user = 'smsd'