Allmon Missing Node Information

If your Allmon has blanks under the Node Information column you need to make a simple change. In your Allmon directory change the astdb.php file $url= line as follows…

/var/www/html/astdb.php
$url = "https://www.allstarlink.org/allmondb.php";

The Allmon directory varies according to your particular installation.

There was a change in the AllStar database last night. If you have blank Node information please run your Allmon update manually. It’s generally /var/www/html/astdb.php but may vary on your installation.

Hello Tim. I’m running DIAL and have had Allmon running stable for a couple of years.
We run with Private Nodes. A few days ago I added a node to privatenodes.txt.
After the ./astdb.php command all the Nodes Information went away.
Any ideas on how to troubleshoot what happened? Tnx Mark WB2ERS

Mark,

See this New URL for Allmon Database. Update astdb.php

Tim, We did that a couple of weeks ago and the private nodes showed up fine after that.
A few days ago the Allmon stopped functioning and all we get when going to the server address is:
Redirecting to about.php

Any ideas where to start troubleshooting?
Tnx, Mark WB2ERS

Mark,

I just tested http://allmondb.allstarlink.org from my browser. It worked fine so it appears the server is working and the URL is still good.

Have you tried to ping allmondb.allstarlink.org?

What happens if you go to your allmon directory and run ./astdb.php?

Tim, Hello. I finally am getting back to this project.
I am running DIAL in this instance. Allmon was showing the privatenodes.txt
with no problem and then it just went away.
I did the $url change you suggested back then and the node information came back.
Some weeks after that they went away again.
Recently I installed Allmon2 on the same DIAL platform.
I also added the privatenodes.txt file into the Allmon2 directory.
Now I still have nothing in the Nodes Information and my Voter display is gone.
Can you direct me with some troubleshooting suggestions and possible fix?

Tnx,

Mark

Hi Mark,

The format of allmon.ini.php changed between Allmon and Allmon2. Check the sample ini included with Allmon2 for the new format. Let me know if you still have trouble.

Tim, I don’t see a sample. This is the list of files I have in allmon2:
root@GARASRV:/var/www/html/allmon2# ls
about.php controlserver.php jquery-ui.css README
allmon.css favicon.ico jquery-ui.js server.php
allmon.inc.php footer.inc jquery-ui.min.css session.inc
allmon.ini.php header.inc jquery-ui.min.js voter.ini.php
allstarLogo.png images link.php voter.php
astdb.php index.html login.php voterserver.php
connect.php index.php logout.php
controlpanel.ini.php jquery-3.3.1.min.js menu.inc
controlpanel.php jquery.min.js privatenodes.txt

This is the privatenodes.txt file:
NODE|CALL|INFO|LOCATION
;1000|WD6AWP|Private Hub|Huntington Beach
1400|WB2ERS-CI|TEST_BENCH|CI
1401|WB2ERS-CI|TEST_BENCH|CI
1431|W2RGM|147.675 110.9 rx|Hauppauge
1432|W2RGM|223.96 110.9 rx|Hauppauge
1444|WB2ERS-LI|444.75 110.9|LI-NY Region
1448|WB2ERS|VHF Remote|LI-NY
1449|WB2ERS|440 Remote|LI-NY
1480|W2RGM|443.50 Rpt|Dix Hills LI
1481|W2RGM|147.075 100.0|Dix Hills LI
1482|W2RGM|224.56 136.5|Dix Hills LI
1483|W2RGM|222.96 Rx 110.9|Hauppauge
1490|42805 N1NDN|449.775 114.8|Glens Falls
1500|W2TUP|VHF Frequency Agile omni|Morris
1501|W2TUP|147.33 +.6 100.0|Tupper Lake
1503|N2MNT|147.075 71.9|UHF SE Freq Agile
1502|KA2FWN|UHF Omni F Agile|Old Forge NY
1504|W2TUP|444.70 + 110.9|Tupper Lake
1506|WB2ERS|444.75 + 110.9|Saratoga NY
1507|W2WCR|146.73 +.6 via Hub|Glens Falls
1510|N2MMV|449.825 - 110.9|Plattsburgh NY
1512|N2MMV|449.575 -5 110.9|Malone-Perry NY
1515|KC2KVE|147.79 +1 110.9|Ogdensburg
1516|KC2KVE|Freq Agile 2M |Ogdensburg NY
1518|KC2KVE|VHF Freq Agile|Ogdensburg
1517|KC2KVE|448.775 -5 110.9|Ogdensburg
1540|K2WW|147.39 +.6 100.0|Parishville
1541|K2WW|444.75 +5 110.9|Parishville
1520|W2SLV|444.75 + 110.9|Hopkinton NY
1521|W2SLV|147.39 + 110.9|Hopkinton NY
1530|K2WW|444.75 + 110.9|Watertown/Balmat
1550|W1ABI|NEFMRA Link|Killington VT
1992|K2WW|444.75 + 110.9|Potsdam NY
1996|NR2C|442.025 + 110.9|Medina NY
41764|N1NDN|449.775 - 114.8|Queensbury
42279|WB2ERS|Allstar|Network Node
42805|N1NDN|Allstar|tied to 1490
40269|KE2EMS|ADK-DMR|Bridge
;446.125 +5 110.9|Port Rptr

This is the astdb.php (first part:

$dir = “/var/www/html/allmon2/”;
$db = $dir . “astdb.txt”;
$privatefile = $dir . “privatenodes.txt”;

$retries = 0;
$Pcontents = ‘’;
$private = getenv(‘PRIVATE_NODE’);
$contents = ‘’;
$contents2 = ‘’;

#$url = “https://allstarlink.org/cgi-bin/allmondb.pl”;
$url2 = “https://nodelist.hamvoip.org/getASLdb.php”;
//$url = “http://allmondb.allstarlink.org/”;
$url = “https://www.allstarlink.org/allmondb.php”;
// Load private nodes if any
// Private nodes are less than 2000 and loaded first
// to ensure proper order of file
if (file_exists($privatefile)) {
$Pcontents .= file_get_contents($privatefile);
}

// Check if ONLY private nodes
// In that case do not read Allstar database
// Maintains compatibility with pre 1.3 versions
// assumes empty environment variable
if (is_null($private) || !$private) { // If not a private node…
// If called by cron wait between 0 and 30 min
if (isset($argv[1]) && $argv[1] == ‘cron’) {
$seconds = mt_rand(0, 1800);
print “Waiting for $seconds seconds…\n”;
while ($seconds > 0) {
if ($seconds > 60) {
print “Sleeping for $seconds seconds…\n”;
sleep(60);
$seconds = $seconds - 60;
} else {
print “Sleeping for $seconds seconds…\n”;
sleep($seconds);

Let me know your thoughts.

Tnx

Mark

Let’s back up. First read this you haven’t:

Then try a simple config to be sure the basics are working something like:

file: allmon.ini.php

#change to your node, ID, password... etc
[2531]
system=AWP
host=0.0.0.0:1234
user=<userid>
passwd=<secret>
nomenu=yes
[2531 Santiago 440]
system=AWP
nodes=2531
[2531 RTCM]
system=AWP
rtcmnode=2531

Tim,

Could you send ma a a sample of what the first 10 lines of what astdb.php looks like?
I still see no node information and the Allstar Public Node shows this:
42279 - Node not in database

Mark

Sure Mark, Here’s the whole file. Clip what you need. But it might be easier to copy the whole thing. Hope this helps.

https://raw.githubusercontent.com/tsawyer/allmon2/master/astdb.php

Tim,
Thanks in advance for all the help.
I installed allmon2 on my dial server.
All the nodes and voter show up at garanet.org/allmon2 however
each one displays this including my public Allstar node 42279:
42279 - Node not in database
Also, no Bubble-Chart link

Interestingly though the original allmon at garanet.org/link.php shows
42279 properly and has the Bubble-Chart link

Neither allmon shows the privatenodes.txt “Node Information” which is my original problem.

Best Regards,
Mark

You maybe overlooking something very simple. Really, you’re going to kick yourself when you find it :slight_smile: Double check the IP address, user ID, password, and permissions. Make sure to use the local IP if on the same network.

Tim,

I agree, I will be kicking myself.
As for the IP address, I log in locally or I log in from the public and same result.
The IP address internal non routable is what is used in the manager.conf bindaddr
The person that set up my password died a year ago so I have no help in this area.
I log in as root.
I see that there are commands like htpasswd but I don’t know how to use them.
Where do I find the permissions you refer to?

Tnx

Tim,

I think I’m getting closer.
When I run ./astdb.php: Permission denied
Where is this permission set?
I’m logged into root.

Mark

Mark,

Do a chmod +x astdb.php to make it executable`.

Mark, Did you solve this?

Hi Tim, how do you add info on privatenodes? Does privatenodes.txt resides on allmon2. I followed the privatenodes.sample.txt on allmon2 and updated astdb.php but nothing happens.

Did I do the right thing?

Anthony

I’m not sure what to say… that’s all there is to it. Double check your work is all I’ve got.