Debian Codegraph @

check_smstools/README.check_smstools

raw
1 check_smstools
2 --------------
3
4 Depends:
5 --------
6 - Nagios::Plugin
7 - smstools3
8
9 Usage:
10 ------
11 The plugin can be used to monitor a gsm modem used together with smstools.
12 For this to work it relies on a smstools feature which should be available
13 since version 3.1 called regular_run_cmd.
14
15 So the following change is needed in the modem section of
16 the modem that is to be monitored:
17
18 regular_run_cmd = AT+CSQ
19 regular_run_cmd = AT+CREG?
20 regular_run_cmd = AT+COPS?
21 regular_run_interval = 60
22 regular_run_statfile = /var/log/smstools/smsd_stats/modem_status
23
24 The interval and the file can of course be adjusted. However the file given
25 above is the default file used by the plugin. If it is changed then the plugin
26 needs to be called with --stat-file <filename>. The commands however are
27 required, except for the AT+COPS? command. This is only for operator detection
28 and can be disabled, if one isn't interested what operator the modem is
29 registered to.
30
31 Known Bugs:
32 -----------
33 Currently the script does not work with the embedded perl interpreter for unknown reasons.
34 Therefore it contains a
35
36 # nagios: -epn
37
38 header, which causes nagios to not use the embedded perl interpreter for it.
39
40 License:
41 -------
42 This plugin is licensed under the terms of the GPL v2 or later. See COPYING for details.
43 Author:
44 ------
45 Patrick Schoenfeld <[email protected]>