What's new

scMerlin scMerlin v2 - Service and script control menu for AsusWRT-Merlin

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Oh....one thing to note, I did the update to the 2.2.4 and didn't reboot the router, just went to the web page, and it was trying to display the addons, but not actually doing it. I reboot, and from the reboot on it's not listing anything about the addons.
 
Make sure to clear caches in browser.

The service event calls should dynamically generate and update the files for addons and cron. If they appear in the CLI they should appear in WebUI.

Process log I've realised might not work after a reboot, try running /jffs/addons/scmerlin.d/S99tailtop start

And check the WebUI again
 
Make sure to clear caches in browser.

The service event calls should dynamically generate and update the files for addons and cron. If they appear in the CLI they should appear in WebUI.

Process log I've realised might not work after a reboot, try running /jffs/addons/scmerlin.d/S99tailtop start

And check the WebUI again
Thanks. My previous test was done with fresh browsers (Firefox & Chrome) private and normal tabs, after fresh Laptop SO install. Tried CTRL+F5 too.
In the meantime I did a new restart with unplug during restart. The situation in my case is the same like previous post.

Could be unbound related?

Much appreciation for your work,
Thank you!
 
Another fix just pushed, should fix process list
Got it down. In my case is working (screenshot attached). After update I did only:
/jffs/addons/scmerlin.d/S99tailtop restart

And is looking cool. Thank you so much.


Much appreciation to your work,
amplatfus
 

Attachments

  • Screenshot 2021-05-19 at 11-29-38 scMerlin.png
    Screenshot 2021-05-19 at 11-29-38 scMerlin.png
    39 KB · Views: 145
Just did the latest update, cleared cache and everything looks great. Process list came up fine despite me not running that script you suggested. Thanks Jack!
 
Early access testing can be carried out by running
Code:
scmerlin develop
While I have done some testing, I expect some issues to come out with the upgrade so please be forthcoming with bug reports!

Loaded the develop version, seems to be running fine. No issues so far.

Question, will a U (update) search in AMTM pick up an upgrade to develop version when new release version comes out, or will I need to uninstall develop and install new release?
 
Loaded the develop version, seems to be running fine. No issues so far.

Question, will a U (update) search in AMTM pick up an upgrade to develop version when new release version comes out, or will I need to uninstall develop and install new release?
you'll be migrated back to master/stable automagically
 
v2.3.0 is now available
Changelog:

  • NEW: Option to install an NTP boot watchdog script, which will aggressively force NTP to sync after a reboot. This is useful if you see NTP sync timeouts from Addons after 5 or 10 minutes.
  • NEW: Cron jobs can now be displayed in the CLI and WebUI
  • CHANGED: USB is no longer required for Process List, so prompt to enable USB features is no longer required
  • CHANGED: WebUI layout has been shuffled and some sections now form part of a "Router" section
  • FIXED: Process List in WebUI may fail to parse processes that have a "niceness"
 
v2.3.0 is now available
Changelog:

  • NEW: Option to install an NTP boot watchdog script, which will aggressively force NTP to sync after a reboot. This is useful if you see NTP sync timeouts from Addons after 5 or 10 minutes.
  • NEW: Cron jobs can now be displayed in the CLI and WebUI
  • CHANGED: USB is no longer required for Process List, so prompt to enable USB features is no longer required
  • CHANGED: WebUI layout has been shuffled and some sections now form part of a "Router" section
  • FIXED: Process List in WebUI may fail to parse processes that have a "niceness"
So I tried turning NTP boot watchdog script on and some of my other scripts did not work

With NTP script on

Jadmin@RT-AC86U-07F8:/tmp/home/root# cru l
25 13 * * * sh /jffs/scripts/firewall banmalware #Skynet_banmalware#
6 1 * * Mon sh /jffs/scripts/firewall update #Skynet_autoupdate#
0 * * * * sh /jffs/scripts/firewall save #Skynet_save#
*/10 * * * * /jffs/scripts/ntpmerlin generate #ntpMerlin#
12,42 * * * * /jffs/scripts/spdmerlin generate #spdMerlin#
5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1 #logrotate#

With NTP script off

Jadmin@RT-AC86U-07F8:/tmp/home/root# cru l
*/3 * * * * /jffs/scripts/CameraBlock.sh #camerablock#
30 3 * * * /jffs/addons/flexqos/flexqos.sh -check #flexqos#
*/2 * * * * /etc/openvpn/server1/vpn-watchdog1.sh #CheckVPNServer1#
*/5 * * * * /jffs/scripts/dn-vnstat generate #dn-vnstat_generate#
59 23 * * * /jffs/scripts/dn-vnstat summary #dn-vnstat_summary#
25 1 * * * sh /jffs/scripts/firewall banmalware #Skynet_banmalware#
18 1 * * Mon sh /jffs/scripts/firewall update #Skynet_autoupdate#
0 * * * * sh /jffs/scripts/firewall save #Skynet_save#
*/10 * * * * /jffs/scripts/ntpmerlin generate #ntpMerlin#
5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1 #logrotate#
12,42 * * * * /jffs/scripts/spdmerlin generate #spdMerlin#
18 15 31 05 Mon /jffs/addons/flexqos/flexqos.sh -check #flexqos_5min#
*/59 * * * * service restart_letsencrypt #LetsEncrypt#
 
So I tried turning NTP boot watchdog script on and some of my other scripts did not work

With NTP script on

Jadmin@RT-AC86U-07F8:/tmp/home/root# cru l
25 13 * * * sh /jffs/scripts/firewall banmalware #Skynet_banmalware#
6 1 * * Mon sh /jffs/scripts/firewall update #Skynet_autoupdate#
0 * * * * sh /jffs/scripts/firewall save #Skynet_save#
*/10 * * * * /jffs/scripts/ntpmerlin generate #ntpMerlin#
12,42 * * * * /jffs/scripts/spdmerlin generate #spdMerlin#
5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1 #logrotate#

With NTP script off

Jadmin@RT-AC86U-07F8:/tmp/home/root# cru l
*/3 * * * * /jffs/scripts/CameraBlock.sh #camerablock#
30 3 * * * /jffs/addons/flexqos/flexqos.sh -check #flexqos#
*/2 * * * * /etc/openvpn/server1/vpn-watchdog1.sh #CheckVPNServer1#
*/5 * * * * /jffs/scripts/dn-vnstat generate #dn-vnstat_generate#
59 23 * * * /jffs/scripts/dn-vnstat summary #dn-vnstat_summary#
25 1 * * * sh /jffs/scripts/firewall banmalware #Skynet_banmalware#
18 1 * * Mon sh /jffs/scripts/firewall update #Skynet_autoupdate#
0 * * * * sh /jffs/scripts/firewall save #Skynet_save#
*/10 * * * * /jffs/scripts/ntpmerlin generate #ntpMerlin#
5 0 * * * /opt/sbin/logrotate /opt/etc/logrotate.conf >> /opt/tmp/logrotate.daily 2>&1 #logrotate#
12,42 * * * * /jffs/scripts/spdmerlin generate #spdMerlin#
18 15 31 05 Mon /jffs/addons/flexqos/flexqos.sh -check #flexqos_5min#
*/59 * * * * service restart_letsencrypt #LetsEncrypt#
the watchdog doesn't affect cron at all, it adds a hook into /jffs/scripts/init-start

Have you checked syslog for any errors regarding NTP?
 
the watchdog doesn't affect cron at all, it adds a hook into /jffs/scripts/init-start

Have you checked syslog for any errors regarding NTP?

I just set watchdog on again and rebooted. Now a different set of cron jobs are loaded (not all of them) I checked the log file and there was nothing with NTP in the log. So, something is interfering with other scripts loading when watchdog is on.
 
I just set watchdog on again and rebooted. Now a different set of cron jobs are loaded (not all of them) I checked the log file and there was nothing with NTP in the log. So, something is interfering with other scripts loading when watchdog is on.
can you share a complete copy of syslog and a list of the cron jobs that appeared?
 
Here is the syslog, I didn't copy the cron jobs

Code:
May 31 16:17:12 wlceventd: wlceventd_proc_event(527): eth6: Auth 68:27:37:44:43:62, status: Successful (0), rssi:0
May 31 16:17:12 wlceventd: wlceventd_proc_event(556): eth6: Assoc 68:27:37:44:43:62, status: Successful (0), rssi:0
May 31 16:17:13 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24519 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:13 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24520 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:13 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=45.135.232.22 DST=73.61.143.6 LEN=40 TOS=0x00 PREC=0x20 TTL=241 ID=13810 PROTO=TCP SPT=45638 DPT=42863 SEQ=811998619 ACK=0 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
May 31 16:17:13 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24521 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:14 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24522 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:16 kernel: [Mon May 31 16:17:16 DST 2021]
May 31 16:17:16 kernel: Getting webroot for domain='all.dnsomatic.com'
May 31 16:17:16 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24523 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:16 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=124.93.18.64 DST=73.61.143.6 LEN=40 TOS=0x00 PREC=0x20 TTL=229 ID=29388 PROTO=TCP SPT=52066 DPT=2376 SEQ=1655960706 ACK=0 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
May 31 16:17:17 kernel: [Mon May 31 16:17:17 DST 2021]
May 31 16:17:17 kernel: Verifying: all.dnsomatic.com
May 31 16:17:17 kernel: [Mon May 31 16:17:17 DST 2021]
May 31 16:17:17 kernel: Standalone mode server
May 31 16:17:20 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=52.119.196.87 DST=73.61.143.6 LEN=86 TOS=0x00 PREC=0x20 TTL=222 ID=24524 DF PROTO=TCP SPT=443 DPT=55880 SEQ=3598282695 ACK=666862786 WINDOW=3060 RES=0x00 ACK PSH URGP=0 MARK=0x8000000
May 31 16:17:21 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=3.20.50.106 DST=73.61.143.6 LEN=48 TOS=0x00 PREC=0x20 TTL=31 ID=18368 DF PROTO=UDP SPT=32099 DPT=20840 LEN=28 MARK=0x8000000
May 31 16:17:21 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=3.20.50.106 DST=73.61.143.6 LEN=32 TOS=0x00 PREC=0x20 TTL=31 ID=18370 DF PROTO=UDP SPT=32099 DPT=20840 LEN=12 MARK=0x8000000
May 31 16:17:22 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=3.208.229.240 DST=73.61.143.6 LEN=32 TOS=0x00 PREC=0x20 TTL=37 ID=26994 DF PROTO=UDP SPT=32099 DPT=20840 LEN=12 MARK=0x8000000
May 31 16:17:23 kernel: [Mon May 31 16:17:23 DST 2021]
May 31 16:17:23 kernel: all.dnsomatic.com:Verify error:DNS problem: NXDOMAIN looking up A for all.dnsomatic.com - check that a DNS record exists for this domain
May 31 16:17:23 kernel: DROP IN=eth0 OUT= MAC=2c:fd:a1:a2:07:f8:18:8b:9d:d4:58:22:08:00 SRC=45.135.232.21 DST=73.61.143.6 LEN=40 TOS=0x00 PREC=0x20 TTL=240 ID=44471 PROTO=TCP SPT=45585 DPT=30639 SEQ=4228666654 ACK=0 WINDOW=1024 RES=0x00 SYN URGP=0 MARK=0x8000000
May 31 16:17:23 kernel: [Mon May 31 16:17:23 DST 2021]
May 31 16:17:23 kernel: Please add '--debug' or '--log' to check more details.
May 31 16:17:23 kernel: [Mon May 31 16:17:23 DST 2021]
May 31 16:17:23 kernel: See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
May 31 16:17:33 wlceventd: wlceventd_proc_event(527): eth6: Auth D4:3B:04:CE:04:32, status: Successful (0), rssi:0
May 31 16:17:33 wlceventd: wlceventd_proc_event(556): eth6: Assoc D4:3B:04:CE:04:32, status: Successful (0), rssi:0
May 31 16:18:02 kernel: [Mon May 31 16:18:02 DST 2021]
May 31 16:18:02 kernel: Standalone mode.
May 31 16:18:03 kernel: [Mon May 31 16:18:03 DST 2021]
May 31 16:18:03 kernel: Registering account
May 31 16:18:04 kernel: [Mon May 31 16:18:04 DST 2021]
May 31 16:18:04 kernel: Already registered
May 31 16:18:04 kernel: [Mon May 31 16:18:04 DST 2021]
May 31 16:18:04 kernel: ACCOUNT_THUMBPRINT='aaDEPVhl9Lct8EGy08iNcNxPjNsV7fWCEsa1jKLK4aE'
May 31 16:18:04 kernel: [Mon May 31 16:18:04 DST 2021]
May 31 16:18:04 kernel: Creating domain key
May 31 16:18:05 kernel: [Mon May 31 16:18:05 DST 2021]
May 31 16:18:05 kernel: The domain key is here: /jffs/.le/all.dnsomatic.com/all.dnsomatic.com.key
May 31 16:18:05 kernel: [Mon May 31 16:18:05 DST 2021]
May 31 16:18:05 kernel: Single domain='all.dnsomatic.com'
May 31 16:18:05 kernel: [Mon May 31 16:18:05 DST 2021]
May 31 16:18:05 kernel: Getting domain auth token for each domain
May 31 16:18:07 kernel: [Mon May 31 16:18:07 DST 2021]
May 31 16:18:07 kernel: Getting webroot for domain='all.dnsomatic.com'
May 31 16:18:07 kernel: [Mon May 31 16:18:07 DST 2021]
May 31 16:18:07 kernel: Verifying: all.dnsomatic.com
May 31 16:18:08 kernel: [Mon May 31 16:18:08 DST 2021]
May 31 16:18:08 kernel: Standalone mode server
May 31 16:18:13 kernel: [Mon May 31 16:18:13 DST 2021]
May 31 16:18:13 kernel: all.dnsomatic.com:Verify error:DNS problem: NXDOMAIN looking up A for all.dnsomatic.com - check that a DNS record exists for this domain
May 31 16:18:13 kernel: [Mon May 31 16:18:13 DST 2021]
May 31 16:18:13 kernel: Please add '--debug' or '--log' to check more details.
May 31 16:18:13 kernel: [Mon May 31 16:18:13 DST 2021]
May 31 16:18:13 kernel: See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
May 31 16:20:02 kernel: [Mon May 31 16:20:02 DST 2021]
May 31 16:20:02 kernel: Standalone mode.
May 31 16:20:03 wlceventd: wlceventd_proc_event(527): eth6: Auth 8C:45:00:33:69:68, status: Successful (0), rssi:0
May 31 16:20:03 wlceventd: wlceventd_proc_event(556): eth6: Assoc 8C:45:00:33:69:68, status: Successful (0), rssi:0
May 31 16:20:03 kernel: [Mon May 31 16:20:03 DST 2021]
May 31 16:20:03 kernel: Registering account
May 31 16:20:04 kernel: [Mon May 31 16:20:04 DST 2021]
May 31 16:20:04 kernel: Already registered
May 31 16:20:04 kernel: [Mon May 31 16:20:04 DST 2021]
May 31 16:20:04 kernel: ACCOUNT_THUMBPRINT='aaDEPVhl9Lct8EGy08iNcNxPjNsV7fWCEsa1jKLK4aE'
May 31 16:20:04 kernel: [Mon May 31 16:20:04 DST 2021]
May 31 16:20:04 kernel: Creating domain key
May 31 16:20:05 kernel: [Mon May 31 16:20:05 DST 2021]
May 31 16:20:05 kernel: The domain key is here: /jffs/.le/all.dnsomatic.com/all.dnsomatic.com.key
May 31 16:20:05 kernel: [Mon May 31 16:20:05 DST 2021]
May 31 16:20:05 kernel: Single domain='all.dnsomatic.com'
May 31 16:20:05 kernel: [Mon May 31 16:20:05 DST 2021]
May 31 16:20:05 kernel: Getting domain auth token for each domain
May 31 16:20:08 kernel: [Mon May 31 16:20:08 DST 2021]
May 31 16:20:08 kernel: Getting webroot for domain='all.dnsomatic.com'
May 31 16:20:08 kernel: [Mon May 31 16:20:08 DST 2021]
May 31 16:20:08 kernel: Verifying: all.dnsomatic.com
May 31 16:20:08 kernel: [Mon May 31 16:20:08 DST 2021]
May 31 16:20:08 kernel: Standalone mode server
May 31 16:20:13 kernel: [Mon May 31 16:20:13 DST 2021]
May 31 16:20:13 kernel: all.dnsomatic.com:Verify error:DNS problem: NXDOMAIN looking up A for all.dnsomatic.com - check that a DNS record exists for this domain
May 31 16:20:13 kernel: [Mon May 31 16:20:13 DST 2021]
May 31 16:20:13 kernel: Please add '--debug' or '--log' to check more details.
May 31 16:20:13 kernel: [Mon May 31 16:20:13 DST 2021]
May 31 16:20:13 kernel: See: https://github.com/Neilpang/acme.sh/wiki/How-to-debug-acme.sh
that looks like after NTP synced and is mostly about your DNS failing to resolve when updating DDNS
 
that looks like after NTP synced and is mostly about your DNS failing to resolve when updating DDNS

Well, it doesn't boot correctly when the watchdog script is set, but if fine when it is not. I've shut it off, maybe others can comment if it is working OK for them.
 
NEW: Option to install an NTP boot watchdog script

Hi @Jack Yaz, just wanted advice on how to upgrade to this version if I already have your "old" ntpbootwatchdog.sh running via init-start?

Edit: Think I answered my own question - I went ahead and played around, looks like what you've added to scMerlin is identical to the old "manual" ntpwatchdog script anyway, so I'm up and running on v2.3.0, thanks!
 
Last edited:
v2.3.0 is now available
Changelog:

  • NEW: Option to install an NTP boot watchdog script, which will aggressively force NTP to sync after a reboot. This is useful if you see NTP sync timeouts from Addons after 5 or 10 minutes.
  • NEW: Cron jobs can now be displayed in the CLI and WebUI
  • CHANGED: USB is no longer required for Process List, so prompt to enable USB features is no longer required
  • CHANGED: WebUI layout has been shuffled and some sections now form part of a "Router" section
  • FIXED: Process List in WebUI may fail to parse processes that have a "niceness"
Jack- you have done it again... :cool::cool::cool::cool::):D
 

Latest threads

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Top