Hi, everyone!
We would like to implement an SMS alert on our checkmk server. The whole thing should be done via an LTE/GSM modem (MultiTech MTCM2-L4G1-B03) and SMStools.
I have installed the SMStools and SMS can be sent manually via the command line without any problems.
Unfortunately, the SMS notifications - Notification Method: SMS (using smstools) from checkmk do not work. Nothing arrives - here is a cutout from the notify.log:
2022-02-14 10:35:26,144 [20] [cmk.base.notify] ----------------------------------------------------------------------
2022-02-14 10:35:26,144 [20] [cmk.base.notify] Got spool file 29e07475 (XXX-XXX-XXXXX;Temperatur Sensor) for local delivery via sms
2022-02-14 10:35:26,144 [20] [cmk.base.notify] executing /omd/sites/sitename/share/check_mk/notifications/sms
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms: Invalid parameter:
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms: SENDSMS V1.03 - A gnokii interface for sending SMS.
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: Written by Gabriele Zappi - Rimini <gzappi@inwind.it>
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output:
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: Usage: sendsms [OPTION]...
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output:
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: Examples:
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms # simply run sendsms in standard mode
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms --simulate # Simulates. doesn't really send sms (for debug)
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: echo "Hello Beauty ;-)" | sendsms --smsset
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: # Preset "Hello Beauty ;-)" as SMS message.
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms --smsset < mymessage.txt
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: # Preset contents of file mymessage.txt
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: as SMS message.
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: sendsms --version # Display version, author and quits.
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output:
2022-02-14 10:35:26,165 [20] [cmk.base.notify] Output: NOTE:
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: If you require to pickup number from phone's memory (or from SIM card),
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: for the first time, it anyway reads phonebook from your mobile phone.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: (It may take a while... please, be patient ;-)
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output:
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: Available options:
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --debug, -D May bother with more debugging messages ;-)
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: For debugging purpose.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --simul[ate], -S Simulation mode. Doesn't really send SMS by phone.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: Only simulates. For debugging purpose.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --forceSMread, -s Forces sendsms to read phonebook from SIM card,
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: and to parse the generated file in order to update
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: the numbers' list (useful only if required to pickup
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: number from the phone's memory). see NOTE.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --forceMEread, -m Forces sendsms to read phonebook from phone memory,
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: and to parse the generated file in order to update
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: the numbers' list (useful only if required to pickup
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: number from the phone's memory). see NOTE.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --skipgnokiicheck, -K Skip the test of the presence of binary 'gnokii'.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: (It must be somewhere in your $PATH). It allows you
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: to try this script program, even if you don't have
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: 'gnokii' already. ;)
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --smsset, --setsms Allows you to preset a SMS message from STDIN. (pipe
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: or input redirection).
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: This message will be proposed on the 'SMS message'
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: field during the program input cycle.
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --help, -h, /h display this help and exit
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output: --version, -V output version information and exit
2022-02-14 10:35:26,166 [20] [cmk.base.notify] Output:
2022-02-14 10:35:35,155 [20] [cmk.base.notify] Replaying notification 0 from backlog...
Does anyone have any advice as to what could be causing this?
Thanks in advance!
Regards
GeAiIT
CMK version: 2.0.0p17 (CEE)
OS version: Ubuntu Server 21.10
Error message: Invalid parameter?
Output of “cmk --debug -vvn hostname”: (If it is a problem with checks or plugins)