AllStarLink / Allmon3

Allmon is the standard web-based montitoring and management for the AllStarLink application. Allmon3 is the next generation of the venerable Allmon2 that is rewritten for performance, scalability, and responsiveness.
GNU Affero General Public License v3.0
17 stars 11 forks source link

TLB Connections have unique xnode format #219

Open k6ian opened 3 months ago

k6ian commented 3 months ago

Please look into properly showing tlb private nodes. As you can see in the screenshot below, private node 1100 is a tlb connection and it doesn't properly show in either its own line, nor when it is connected to the hub.

image

Version Info Currently running Allmon v3 1.2.0

jxmx commented 3 months ago

@k6ian - Can you send me the output of rpt xnode 525250 and rpt stats 525250 when one of these chan_tlb devices is connected? I've never encountered someone using it before. I'll have to see if it's possible to differentiate between these and Echolink nodes.

k6ian commented 3 months ago

Cmd: rpt xnode 525250

image

Second half:

image

Cmd: rpt stats 525250

image

Threw in Cmd rpt xnode 1100

image

From: Jason McCormick @.> Sent: Monday, May 27, 2024 1:40 PM To: AllStarLink/Allmon3 @.> Cc: k6ian @.>; Mention @.> Subject: Re: [AllStarLink/Allmon3] Properly show tlb private nodes (Issue #219)

@k6ianhttps://github.com/k6ian - Can you send me the output of rpt xnode 525250 and rpt stats 525250 when one of these chan_tlb devices is connected? I've never encountered someone using it before. I'll have to see if it's possible to differentiate between these and Echolink nodes.

— Reply to this email directly, view it on GitHubhttps://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134027184, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AREEZR6YFVBNTYDHCUYBIVTZEOKZPAVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAZDOMJYGQ. You are receiving this because you were mentioned.Message ID: @.**@.>>

wd5m commented 3 months ago

I think you will find the connected tlb node simply shows up as a private node number. I work around this issue on Supermon by creating a privatenodes.txt file which is combined with astdb.txt by astdb.php.

David McAnally WD5M

On Mon, May 27, 2024 at 3:39 PM Jason McCormick @.***> wrote:

@k6ian https://github.com/k6ian - Can you send me the output of rpt xnode 525250 and rpt stats 525250 when one of these chan_tlb devices is connected? I've never encountered someone using it before. I'll have to see if it's possible to differentiate between these and Echolink nodes.

— Reply to this email directly, view it on GitHub https://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134027184, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXLYZMR24LN6ZKD3FLYKC3ZEOKZPAVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAZDOMJYGQ . You are receiving this because you are subscribed to this thread.Message ID: @.***>

k6ian commented 3 months ago

Yeah, I did add it to Allmon3 like a private node. It does show up. It’s just getting the “Last Recv”, “Conn Time”, “Direction”, and “Connect State” to register in the correct boxes.

Just wondering if there is a way on the back end to recognize that it is a “tlb” node and put the stuff in the right places.

Thanks, Ian – K6IAN

From: David McAnally @.> Sent: Monday, May 27, 2024 4:06 PM To: AllStarLink/Allmon3 @.> Cc: k6ian @.>; Mention @.> Subject: Re: [AllStarLink/Allmon3] Properly show tlb private nodes (Issue #219)

I think you will find the connected tlb node simply shows up as a private node number. I work around this issue on Supermon by creating a privatenodes.txt file which is combined with astdb.txt by astdb.php.

David McAnally WD5M

On Mon, May 27, 2024 at 3:39 PM Jason McCormick @.<mailto:@.>> wrote:

@k6ian https://github.com/k6ian - Can you send me the output of rpt xnode 525250 and rpt stats 525250 when one of these chan_tlb devices is connected? I've never encountered someone using it before. I'll have to see if it's possible to differentiate between these and Echolink nodes.

— Reply to this email directly, view it on GitHub https://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134027184, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXLYZMR24LN6ZKD3FLYKC3ZEOKZPAVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAZDOMJYGQ . You are receiving this because you are subscribed to this thread.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHubhttps://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134126191, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AREEZRZG42ZLQRTAMJ3L45DZEO347AVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGEZDMMJZGE. You are receiving this because you were mentioned.Message ID: @.**@.>>

wd5m commented 3 months ago

Yeah, I think that requires a variation on parsing the results from the Allstar manager service for tlb/private nodes, or EchoLink, versus Allstar nodes. It's been a while since I looked at those details. I might be mistaken about that.

David WD5M

On Mon, May 27, 2024 at 6:10 PM k6ian @.***> wrote:

Yeah, I did add it to Allmon3 like a private node. It does show up. It’s just getting the “Last Recv”, “Conn Time”, “Direction”, and “Connect State” to register in the correct boxes.

Just wondering if there is a way on the back end to recognize that it is a “tlb” node and put the stuff in the right places.

Thanks, Ian – K6IAN

From: David McAnally @.> Sent: Monday, May 27, 2024 4:06 PM To: AllStarLink/Allmon3 @.> Cc: k6ian @.>; Mention @.> Subject: Re: [AllStarLink/Allmon3] Properly show tlb private nodes (Issue

219)

I think you will find the connected tlb node simply shows up as a private node number. I work around this issue on Supermon by creating a privatenodes.txt file which is combined with astdb.txt by astdb.php.

David McAnally WD5M

On Mon, May 27, 2024 at 3:39 PM Jason McCormick @.<mailto:@.>>

wrote:

@k6ian https://github.com/k6ian - Can you send me the output of rpt xnode 525250 and rpt stats 525250 when one of these chan_tlb devices is connected? I've never encountered someone using it before. I'll have to see if it's possible to differentiate between these and Echolink nodes.

— Reply to this email directly, view it on GitHub < https://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134027184>,

or unsubscribe < https://github.com/notifications/unsubscribe-auth/ACXLYZMR24LN6ZKD3FLYKC3ZEOKZPAVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGAZDOMJYGQ>

. You are receiving this because you are subscribed to this thread.Message ID: @.<mailto:@.>>

— Reply to this email directly, view it on GitHub< https://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134126191>, or unsubscribe< https://github.com/notifications/unsubscribe-auth/AREEZRZG42ZLQRTAMJ3L45DZEO347AVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGEZDMMJZGE>.

You are receiving this because you were mentioned.Message ID: @.**@.>>

— Reply to this email directly, view it on GitHub https://github.com/AllStarLink/Allmon3/issues/219#issuecomment-2134128852, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACXLYZODMKT2ZY45BGIR4DDZEO4OLAVCNFSM6AAAAABILWMXBGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCMZUGEZDQOBVGI . You are receiving this because you commented.Message ID: @.***>

jxmx commented 3 months ago

There's no column separators in the data so every unique variant is a fun text processing problem. Can you please supply the output requested as text files so I can inspect the byte contents?

wd5m commented 3 months ago

Not sure this will help with Allmon3, but a while back I added this modification to my copy of Supermon server.php for parsing EchoLink nodes. I believe adding " || count($arr) < 6" to the if statement patched the parsing issue with tlb private nodes. It would be great if Allstar returned JSON or something formatted that we can parse reliably. :-)

// Parse 'rptStat Conn:' lines.
$lines = explode("\n", $rptStatus);
foreach ($lines as $line) {
    if (preg_match('/Conn: (.*)/', $line, $matches)) {
        $arr = preg_split("/\s+/", trim($matches[1]));
        if((is_numeric($arr[0]) && $arr[0] > 3000000) || count($arr) <

6) { // WD5M 09/2022 // no ip when echolink $conns[] = array($arr[0], "", $arr[1], $arr[2], $arr[3], $arr[4]); } else { $conns[] = $arr; } } (...)

David McAnally WD5M

k6ian commented 3 months ago

rpt-xnode-525250.txt

k6ian commented 3 months ago

rpt-xnode-525250-tlb-not-connected.txt

k6ian commented 3 months ago

Weirdness... If I connect HUB node to private tlb node it doesn't display right. See this picture.. image

If I connect private tlb node out to the HUB node, it displays correctly. image

rpt-xnode-525250-tlb-connected-via-1100-out.txt

k6ian commented 3 months ago

Nevermind, I can't link it that way. It doesn't connect to the tlb server. image

If I issue the command from the HUB node to connect to the tlb private node, it connects. image

k6ian commented 1 month ago

Is any more info needed to be able to troubleshoot this?

Here is a screenshot on ASL3 with Allmon3 running: image

jxmx commented 3 weeks ago

Can you send me the output (in text) of xstat 525240.