Pau Espin
a3e43220f3
Add m4 missing files to fix build
...
Same files are available in other osmocom projects, otherwise configure
fails with "Please install autoconf-archive; re-run 'autoreconf -fi' for
it to take effect.".
Change-Id: Iabe3207fff8f076a3f4ddc81720bb7fdc671a46c
2018-12-12 19:08:32 +01:00
Harald Welte
09cf201097
Merge "Add OpenVPN status helper example from corresponding ticket"
2018-12-08 19:41:11 +00:00
Stefan Sperling
908d3cc921
fix file descriptor leak in osysmon_file_read
...
Don't forget to close the file which was opened at the
beginning of this function's scope. Found by Coverity.
Change-Id: Ie1b5734748438c6d785cd96dfa9af6303cd102da
Related: CID#189756
2018-11-27 15:59:46 +01:00
Max
1db6d00628
Add OpenVPN status helper example from corresponding ticket
...
Change-Id: I912d943cdc7024e3ddd92e0a122ac2dd4fbf0a18
Related: SYS#2655
2018-11-22 18:40:11 +01:00
Max
ac0061a30f
Expand default config
...
* add file watcher example
* add more ctrl variables
Change-Id: I25ed3936ddaae8452ba9dde325cb3e822b739def
Related: SYS#2655
2018-11-22 18:18:24 +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
Max
77be9ca058
Report config file name on error
...
Change-Id: If3f97452e4defb5c8dd540dd75045d37824fb305
2018-11-22 13:29:25 +01:00
Max
8ccc930cc8
Update gitignore
...
Change-Id: I2e63890653240b641b3c8b4b92b76b3833667ff3
2018-11-22 13:27:17 +01:00
Max
5452bd743e
Add git-review config
...
Change-Id: Ie49cfcf38cc28a42c97eb4119231d8d885443a26
2018-11-22 13:24:56 +01:00
Daniel Willmann
d5f0046ff5
git-version-gen: Don't check for .git directory
...
This check is not in all our repos that use git-version-gen. Indeed it
seems to be a leftover of openbsc where I think it wanted to ensure
being called in the openbsc subfolder or something? libosmocore e.g.
doesn't have it.
In any case .git being a directory is not always true (if using git
worktree) so remove this check.
Change-Id: I414111b27db9951314e6bc7eff8bc1f10775b3ff
2018-07-24 17:58:24 +02:00
Martin Hauke
d0980be2ec
Makefile.am: Fix typo
...
Change-Id: I392cf453087230d848bafe959544646e68df8070
2018-06-05 20:57:32 +02:00
Daniel Willmann
1c2ef1ab69
Disconnect properly on errors so we can reconnect
...
Change-Id: Id134be34a24e91a4c0b8a8d11cf4df9593dae687
2018-06-05 19:15:47 +02:00
Daniel Willmann
9b2d511813
Add zero termination char to received ctrl cmd message
...
The terminating NULL byte is not part of the ctrl message, so add it
afterwards.
Change-Id: Ieaa9b3e2516d301ba45b6f3ec61870e928ed0cc6
2018-06-05 19:15:47 +02:00
Daniel Willmann
046ccf4a0a
Remove unused last_value handling code
...
Change-Id: I14cc5883af8ae73bc462ed714ef38c8ee1444cc6
2018-06-05 19:15:47 +02:00
Harald Welte
6fded67085
add contrib/jenkins.sh for build verification
...
Change-Id: Ic037ad0bdeab7140e53ed35da7e20eab84ecb429
2018-06-05 19:11:24 +02:00
Harald Welte
47fb3838ef
simple_ctrl: Check for NULL return of simple_ctrl_xceive
...
Change-Id: Ice1e0b9819d8e24770bc57295dd1455f38c37bd5
2018-06-05 19:11:24 +02:00
Harald Welte
6ccc80c0d5
Merge "Remove unused function"
2018-06-05 17:05:26 +00:00
Daniel Willmann
2063af4c91
Fix compilation issue on my machine, remove unused include
...
Change-Id: Id4042804e3c490daa61bf6ec06c13838d68d2f68
2018-06-05 18:50:08 +02:00
Daniel Willmann
f6ba8a3e89
Remove unused function
...
Change-Id: I0b5d59bf3c98d1199e710eec310d041fa15994b9
2018-06-05 15:27:18 +02:00
Harald Welte
b803888c01
rename to osmo-sysmon
2018-06-04 22:02:45 +02:00
Harald Welte
2609359c08
add .gitignore file
2018-06-04 22:02:45 +02:00
Harald Welte
54ca6f458e
migrate to autoconf
2018-06-04 22:02:45 +02:00
Harald Welte
81e20237c3
add osysmon_file.c for reading/monitoring files (like sysfs)
2018-06-04 22:02:45 +02:00
Harald Welte
9e7fe00731
Add network link + address monitiring via osysmon_rtnl.c
2018-06-04 22:02:45 +02:00
Harald Welte
b6718f7599
value_node: Add 'idx' member to handle lookup by ifindex.
...
That's a bit of an ugly layering violation, but it's the easiest way
how the ip-address related code can find the corresponding netdev
node that was created by the link related rtnl code.
2018-06-04 22:02:45 +02:00
Harald Welte
3a964a4e40
value_node: add combined find_or_add() and avoid duplicate names
2018-06-04 22:02:45 +02:00
Harald Welte
3dada48244
osysmon_main: Show hierarchical/tree structure during printing
2018-06-04 22:02:45 +02:00
Harald Welte
b3ff641b8b
osysmon_ctrl: Use variable name, not ctrl-client name as val->name
2018-06-04 22:02:45 +02:00
Harald Welte
32f7a99329
add osysmon_sysinfo for uptime/ram/load
2018-06-04 22:02:45 +02:00
Harald Welte
1a36f33e20
initial implementation of 'osysmon' main program + CTRL client
2018-06-04 22:02:45 +02:00
Harald Welte
d31ddde50e
simple_ctrl: Non-blocking connect() with timeout
2018-06-04 22:02:45 +02:00
Harald Welte
21b901cdae
simple_ctrl: Abstract out timeval_from_msec() function
2018-06-04 22:02:45 +02:00
Harald Welte
01bf3e92ab
simple-ctrl-client: Add basic help/usage information
2018-06-04 22:02:45 +02:00
Harald Welte
d28c5f6602
osmo-ctrl-client: Implement "monitor" mode
2018-06-04 22:02:45 +02:00
Harald Welte
7c94080c40
simple_ctrl.c: API for setting timeout + raw CTRL msgb read
2018-06-04 22:02:45 +02:00
Harald Welte
546573a7bd
simple_ctrl.c: Support an indefinite timeout (using tout_msec=0)
2018-06-04 22:02:45 +02:00
Harald Welte
0e9d3693b3
simple_ctrl: Add timeout to blocking I/O
2018-06-04 22:02:45 +02:00
Harald Welte
3e5ab696b6
initial checkin
2018-06-04 22:02:45 +02:00
Harald Welte
67380bf702
Initial empty repository
2018-06-04 20:02:08 +00:00