Commit Graph

10 Commits

Author SHA1 Message Date
Oliver Smith 0d9d5e78e4 configure: don't turn some warnings into errors
Do not turn some compiler warnings into errors by default. This part was
copied from openbsc.git 34f012 ("Turn some compiler warnings into
errors"), where it was added before --enable-werror was available.

We build with --enable-werror during development and in CI. If the code
is built with a different compiler that throws additional warnings, it
should not stop the build.

Related: OS#5289
Change-Id: I56fb9de59174344b2cb11c60226ae3db43d68766
2021-11-04 11:13:28 +01:00
Oliver Smith e3f31bedd3 configure.ac: set -std=gnu11
Change-Id: I708fe349fd506613af0e62a62bf6cbe611a06eef
2021-01-27 17:57:44 +01:00
Harald Welte efd1ea3353 configure.ac: Make configure.ac and debian/control agree on versions
Change-Id: I9ec8176618585ff74e36fa6f2458fbe8e0c89ca6
2021-01-06 16:55:49 +01:00
Pau Espin 9784c815aa Depend on liboping 1.7.0 instead of 1.9.0
Debian8 provides 1.7.0. Let's depend on it so we can build packages for
debian8.

Change-Id: Idba4494102d48d125bcd215dd0d3fdf42bbd409e
2019-03-20 14:35:05 +01:00
Max 9a852f2dd8 Add OpenVPN probe
This adds support for OpenVPN status probe which uses OpenVPN's
management interface (configured via 'management 127.0.0.1 1234' in
OpenVPN's config).

The output looks as follows:
...
  OpenVPN
    127.0.0.1:1234
      status: CONNECTED
      tunnel: 10.8.0.15
      remote: 144.76.43.77:1194
    localhost:4242
      status: management interface incompatible
    127.0.0.1:4444
      status: management interface unavailable
...

We show tunnel's IP (if available) as well as remote (OpenVPN server
itself) address/port in addition to general connection status. If
management interface is unavailable it's reported as such. If we've
managed to establish connection with a given management interface but
are unable to obtain expected information than we report this
incompatibility as well.

Related: SYS#2655
Change-Id: I4493e19b9a09dcebd289457eacd1719f7f8cc31c
2019-02-07 17:38:19 +01:00
Max 8066a41e78 Add ping probe support
Use liboping (new dependency) to add 'ping XXX' entries support in .cfg
file, where XXX can be either IP address or FQDN.

Sample output:
...
  ping
    ya.ru
      IP: 2a02:6b8::2:242
      dropped: 3/3
    8.8.8.8
      IP: 8.8.8.8
      dropped: 0/3
      latency: 20.4 ms
      TTL: 120
...

N. B: to gather actual ping statistic we have to be able to send ICMP
requests (have enough privileges to work with RAW sockets).

Related: SYS#2655
Change-Id: Ife32540b532fb54368f63c78fb7837b84d4e8c76
2019-01-31 10:19:44 +01:00
Pau Espin 2768f95086 Move source code to src subdir
Change-Id: I1aa2893e2b274f8d087a0d2f126486cd4afcbdfe
2018-12-12 19:19:14 +01:00
Max bf35719529 Update default config
Rename default config to match the binary name and add config exampe.

Change-Id: Iabfc78c95e904af7372f10c195b2b979675d34f3
Related: SYS#2655
2018-11-22 14:00:14 +01:00
Harald Welte b803888c01 rename to osmo-sysmon 2018-06-04 22:02:45 +02:00
Harald Welte 54ca6f458e migrate to autoconf 2018-06-04 22:02:45 +02:00