Christian Hesse
ce03f44769
check-routeros-update: use a better check for valid version
...
Currently the latest version in long-term branch is 0.0... And the
script is sending downgrade notifications. 😝
Obviously that is not a valid version... With this changen a version
has to be 7.0 and above to be considered valid.
2022-07-18 23:46:49 +02:00
Christian Hesse
b67b9ec1c1
Merge branch 'empty-array' into next
2022-07-13 11:57:47 +02:00
Christian Hesse
6fa1525700
sms-forward: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:46 +02:00
Christian Hesse
d6337fcc97
netwatch-notify: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:32 +02:00
Christian Hesse
8a85a258fc
netwatch-dns: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:18 +02:00
Christian Hesse
f34c353b5f
mod/notification-telegram: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:35:03 +02:00
Christian Hesse
7f85e69713
mod/notification-matrix: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:34:51 +02:00
Christian Hesse
34ea276469
mod/bridge-port-vlan: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:34:37 +02:00
Christian Hesse
8436a18919
mod/bridge-port-to: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:34:25 +02:00
Christian Hesse
164ebe8c8a
log-forward: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:33:58 +02:00
Christian Hesse
49147c83ca
lease-script: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:33:38 +02:00
Christian Hesse
9a89cd5407
global-functions: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:32:44 +02:00
Christian Hesse
99a8148d17
daily-psk: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:32:23 +02:00
Christian Hesse
2d30f4e462
check-lte-firmware-upgrade: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:32:11 +02:00
Christian Hesse
eae9a7b956
check-health: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:31:44 +02:00
Christian Hesse
3006e96598
backup-email: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:31:29 +02:00
Christian Hesse
073f432204
accesslist-duplicates: update initialization of empty array
...
Having the parenthesis here is important for valid syntax!
2022-07-13 11:30:06 +02:00
Christian Hesse
5b2ea9b1a4
... and another one
2022-07-11 17:18:18 +02:00
Christian Hesse
deacda8630
give a heart for contributions ❤️
2022-07-11 17:16:25 +02:00
Christian Hesse
f9442ceaa2
update list of contributors
2022-07-11 16:22:18 +02:00
Christian Hesse
876f8a0f82
netwatch-dns: properly check for disabled state
...
The property 'disabled' can be undefined, which evaluates to
enabled - but is not matched by 'disabled=no'.
2022-07-11 10:41:51 +02:00
Christian Hesse
cb20b8c380
daily-psk: properly check for disabled state
...
The property 'disabled' can be undefined, which evaluates to
enabled - but is not matched by 'disabled=no'.
2022-07-11 10:41:51 +02:00
Christian Hesse
0ed68824fd
check-routeros-update: drop check for package...
...
... as wireless package is bundled with the system with RouterOS 7.x.
2022-07-11 10:41:37 +02:00
Christian Hesse
61598c81e9
update list of contributors
2022-07-08 08:30:25 +02:00
Christian Hesse
bbe8c02b5b
README: show a sample news and changes notification
2022-07-07 14:21:41 +02:00
Christian Hesse
a1606402d1
global-config: new setting to disable news and change notifications...
...
... and also drop the version from global-config and
global-config-overlay.
2022-07-06 21:46:52 +02:00
Christian Hesse
68ae4fca0d
global-config-overlay: update wording
2022-07-06 12:26:58 +02:00
Christian Hesse
99feceda38
Merge branch 'netwatch' into next
2022-07-06 11:42:47 +02:00
Christian Hesse
447e1d99f9
netwatch-dns: break long lines
2022-07-06 11:37:02 +02:00
Christian Hesse
3a7bb1e239
netwatch-notify: break long lines
2022-07-06 11:37:02 +02:00
Christian Hesse
8e6eff30db
netwatch-notify: also support the name from property
2022-07-06 11:37:02 +02:00
Christian Hesse
5767fceb39
netwatch-notify: quote the host/service name
2022-07-06 11:37:02 +02:00
Christian Hesse
e8f5f9217c
netwatch-notify: properly handle services (http-get & tcp-conn)
2022-07-06 11:37:02 +02:00
Christian Hesse
f50d155500
netwatch-notify: $NetwatchNotifyHook: rename variable: $Type -> $State
2022-07-06 11:37:02 +02:00
Christian Hesse
a7c9444545
netwatch-notify: rename variable: $HostName -> $Name
2022-07-06 11:37:02 +02:00
Christian Hesse
19103cd345
netwatch-notify: rename parameter: hostname -> name
...
Starting with RouterOS 7.4 the netwatch tool has been extended, it can
now do tcp and http probes. Rename the parameter for reasonable naming
with services.
2022-07-06 11:37:02 +02:00
Christian Hesse
5a02c32d7d
netwatch-notify: properly check for disabled state
...
Looks like checking for 'disabled=no' fails with net netwatch
in RouterOS 7.4...
2022-07-06 11:37:02 +02:00
Christian Hesse
0a45e25562
doc/netwatch-dns: use default address for quad-nine
2022-07-05 13:29:39 +02:00
Christian Hesse
9853943a36
doc/netwatch-dns: giving hostname in comment is not required
2022-07-05 13:16:47 +02:00
Christian Hesse
597277dbe7
mod/ipcalc: use $PrettyPrint
2022-07-05 12:43:57 +02:00
Christian Hesse
150feac400
mod/inspectvar: use $PrettyPrint
2022-07-05 12:43:57 +02:00
Christian Hesse
eda75f0bbc
global-functions: introduce function $PrettyPrint
...
... to add trailing carriage return when printing to terminal:
[admin@MikroTik] > $PrettyPrint [ $DeviceInfo ]
Hostname: MikroTik
Board name: hAP ac^2
Architecture: arm
Model: RouterBOARD D52G-5HacD2HnD-TC
Serial number: 8A2A09A221A1
RouterOS:
Channel: testing
Installed: 7.4rc1
RouterOS-Scripts:
Current: 81
2022-07-05 12:43:57 +02:00
Christian Hesse
b0992da03d
mod/ipcalc: remove empty line
2022-07-05 12:28:50 +02:00
Christian Hesse
3434ea9d79
mod/bridge-port-to: re-enable interfaces by id
2022-06-30 08:59:27 +02:00
Christian Hesse
e27a0166ba
mod/bridge-port-vlan: re-enable interfaces by id
2022-06-30 08:59:08 +02:00
Christian Hesse
f26fb7c05f
mod/bridge-port-to: do not act on missing interface
...
Happens on broken configuration or early boot...
2022-06-29 12:53:50 +02:00
Christian Hesse
ba34ee5cda
mod/bridge-port-vlan: do not act on missing interface
...
Happens on broken configuration or early boot...
2022-06-29 12:53:02 +02:00
Christian Hesse
6fdf115dcf
README: How to remove a script...
2022-06-28 21:55:30 +02:00
Christian Hesse
fcd6e61849
global-functions: $ScriptInstallUpdate: remove script on failure when installing
2022-06-28 21:40:00 +02:00
Christian Hesse
8b6f830fe8
mod/notification-telegram: only flush queue if fully connected
...
The fetch command is not as reliable as it should be... Chances were that
notifications were sent multiple times if stuck in background.
Let's flush only if fully connected - and hope this fixes it.
2022-06-20 11:29:49 +02:00