git.lirion.de

Of git, get, and gud

summaryrefslogtreecommitdiffstats
path: root/nagios-plugins-contrib-24.20190301~bpo9+1/check_smstools/README.check_smstools
blob: 893806e22eaf6668ce11db4020cb6465e7a52ddc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
check_smstools
--------------

Depends:
--------
- Nagios::Plugin
- smstools3

Usage:
------
The plugin can be used to monitor a gsm modem used together with smstools.
For this to work it relies on a smstools feature which should be available
since version 3.1 called regular_run_cmd.

So the following change is needed in the modem section of
the modem that is to be monitored:

regular_run_cmd = AT+CSQ
regular_run_cmd = AT+CREG?
regular_run_cmd = AT+COPS?
regular_run_interval = 60
regular_run_statfile = /var/log/smstools/smsd_stats/modem_status

The interval and the file can of course be adjusted. However the file given
above is the default file used by the plugin. If it is changed then the plugin
needs to be called with --stat-file . The commands however are
required, except for the AT+COPS? command. This is only for operator detection
and can be disabled, if one isn't interested what operator the modem is
registered to.

Known Bugs:
-----------
Currently the script does not work with the embedded perl interpreter for unknown reasons.
Therefore it contains a

# nagios: -epn

header, which causes nagios to not use the embedded perl interpreter for it.

License:
-------
This plugin is licensed under the terms of the GPL v2 or later. See COPYING for details.
Author:
------
Patrick Schoenfeld