What's new
  • 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!

How to get Unbound Manager to display logs in Scribe?

Davidncali001

Regular Contributor
I had at one time Unbound showing up as Scribe system log but i did something and it disappeared. I wasn't getting any data in the Unbound log so i was messing with it now its gone, the log that it. Everything else works. RT-AX86U PRO using firmware version: 3006.102.5.0

I have the following and running correctly:
Unbound
Skynet
Diversion
Scribe
MerlinAU
 

Attachments

  • 1.jpg
    1.jpg
    173.3 KB · Views: 18
ok
There is supposed to be a menu option in Unbound Manager to enable scribe logging.
maybe there was when i installed it, but i don't see the Scribe Unbound Manager Logging option any longer in Unbound Manager. Anything I can do short of reinstalling unbound manager to get back the Scribe Unbound Log? I already reinstalled Scribe and Scribe UI but didn't work.
 
ok

maybe there was when i installed it, but i don't see the Scribe Unbound Manager Logging option any longer in Unbound Manager. Anything I can do short of reinstalling unbound manager to get back the Scribe Unbound Log? I already reinstalled Scribe and Scribe UI but didn't work.
I think there’s a goofy advanced menu that hides the more techie options. Check the readme.

 
Unbound_manager is a great piece of work. My one minor issue is the need to remember that the advanced mode requires a command line option.
It would be nice to have the ability to switch to advanced mode from the normal mode menu.
 
Unbound_manager is a great piece of work. My one minor issue is the need to remember that the advanced mode requires a command line option.
It would be nice to have the ability to switch to advanced mode from the normal mode menu.
According to the README, you can switch at the Options prompt.
Code:
e  = Exit Script

E:Option ==> [ easy | advanced ]
 
According to the README, you can switch at the Options prompt.
Code:
e  = Exit Script

E:Option ==> [ easy | advanced ]
Hmm, maybe never made it to the actual release?

E:Option ==> advanced

Invalid Option "advanced" Please enter a valid option
 
Cheat Mode: (Also known as ... My solution to the unbound menu problem)

Add to the file '/jffs/configs/profile.add' the following lines:

alias uma="clear ; sh /jffs/addons/unbound/unbound_manager.sh advanced" # unbound_manager Advanced Mode

alias ums="clear ; sh /jffs/addons/unbound/unbound_manager.sh" # unbound_manager Standard Mode

Each 'new' shell started will now know 2 new aliases (Restart your existing shell to get the following):
(I like a new empty screen when running unbound_manager ... if you don't care remove the leading 'clear ;' in each alias definition)

uma <==> Starts unbound manager in the advanced menu
ums <==> Starts unbound manager in the standard menu
 
Hmm, maybe never made it to the actual release?
It's there, but there is more goofy code that checks the router MAC address before enabling the Advanced menu. Way too weird for me. No wonder I never ran this.

If you want to try, get the last 4 chars of your mac address from:
Code:
nvram get et0macaddr | tr -d ':\n' | tail -c 4
and then enter advanced <mac> at the prompt where <mac> is those same 4 characters from above. Martineau hated his users and resented having to write unbound_manager at Rgnldo's request. The bad old days.
Code:
easy|adv*)                                          # v2.07
    # v2.07 When unbound_manager invoked from amtm, 'easy' mode is the default.
    #       Allow user to save their preferred mode e.g. 'advanced' as the default across amtm sessions
    # @kernol finds it too taxing to type in 8-chars, so add 'adv' as a 3-char alternative
    #       https://github.com/RMerl/asuswrt-merlin/wiki/Addons-API#custom-settings
    case "$menu1" in                                        # v2.07
        easy)
            EASYMENU="Y"
            [ $FIRMWARE  -ge 38415 ] && am_settings_set unbound_mode "Easy"      # v2.07 Save mode across amtm sessions
            echo -en $cRESET"\nEasy Menu mode ${cBGRE}ENABLED"$cRESET
        ;;
        adv*)
            local ARG
            if [ "$(echo "$menu1" | wc -w)" -ge 2 ];then
                local ARG="$(printf "%s" "$menu1" | cut -d' ' -f2-)"

                if [ "$(nvram get et0macaddr | tr -d ':\n' | tail -c 4)" == "$ARG" ];then
                    EASYMENU="N"
                    [ $FIRMWARE  -ge 38415 ] && am_settings_set unbound_mode "Advanced"  # v2.07 Save mode across amtm sessions
                    echo -en $cRESET"\nAdvanced Menu mode ${cBGRE}ENABLED"$cRESET
                    MENU_Z=
                    touch ${CONFIG_DIR}Read.me
                fi
            else
                printf '\n\a\t%bInvalid Option%b "%s"%b Please enter a valid option\n' "$cBRED" "$cRESET" "$menu1" "$cBRED"
            fi
        ;;
    esac
 
Last edited:
Hence the reason why I defined my aliases, I could never get the 'advanced' option to work from the menu.
 
Out of curiosity, is putting unbound logging into scribe any more than a trivial triplet for syslog-ng? EDIT: At one level, yes.

I tried "advanced" and advanced mode didn't seem to open any different menu options. Unbound_manager describes logging as not recommended when the option is presented. Not sure why.
 
Last edited:
This should help make Advanced mode sticky I think:
Code:
touch /opt/var/lib/unbound/Read.me
source /usr/sbin/helper.sh
am_settings_set unbound_mode "Advanced"
Worked like a charm. Thanks
 
Out of curiosity, is putting unbound logging into scribe any more than a trivial triplet for syslog-ng?

I tried "advanced" and advanced mode didn't seem to open any different menu options. Unbound_manager describes logging as not recommended when the option is presented. Not sure why.
In the unbound_manager menu when run as 'advanced' you get:

unbound-m1.jpg


Select option 3

unbound-m2.jpg



'scribe' will install the necessary files to enable logging in scribe and then re-start scribe.
 

Similar threads

Latest threads

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

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