What's new

NTP Daemon 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!

So it ran for a couple of days, then I noticed this morning the date was 16th Feb 2017! The graph shows no line for the last couple of days so the process obviously hasn't been running.
Not sure what went wrong yet, I have done 1 or 2 reboots (via the Asus App) over the last few days so I guess one of those foobar'd it.

I just ran this and it started up and set the time OK again;
./S77ntpd-custom restart

However, the graphs were still not updating. I did an rrd dump of the stats db file and it's definitely getting sensible 5 min data in there, but the png's (which are definitely being produced every 5 mins) were not displaying a blip on the end of the graph (like it did 10 mins after I first installed it).

I did a reboot via the web GUI but still no joy!

Eventually, I worked out I needed to clear the cache on my browser - but it seems odd that it wasn't noticing the png file had been updated!? I'm using Safari and it seems the only way to get it to refresh every 5 mins is to clear the cache, no amount of Cmd-R will do it!
I see the ASP already has this line so maybe Safari is just being naughty and ignoring it!?
<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">

I found this to suggest maybe Safari needs further nudging!
https://stackoverflow.com/questions/3384935/safari-browser-ignoring-my-no-cache

I will see if I can work out the source of it originally dying and report back!
 
I tried changing this;
<body onload="initial();" onunLoad="return unload_body();">

To this;
<body onload="initial();" onunLoad="">

But it made no difference :(
 
Have found the refresh button at the bottom! Helps a lot - just have to remember to press it every time I go on the page!

Maybe move this to the top for easier access?

I've added this table to mine for now;

HTML:
<div style="margin-left:5px;margin-top:10px;margin-bottom:10px"><img src="/images/New_ui/export/line_export.png"></div>
<table width="100%" align="center">
<tr class="apply_gen" valign="top" height="50px">
<td>
<input type="button" onClick=reload() value="Refresh" class="button_gen">
</td>
</tr>
</table>
 
Last edited:
@JDB

If you're interested & with time, you may take over the update & enhancement of this page for ASUSWRT/MERLIN. I can offer you necessary support.

Personally I've migrated out of ASUSWRT & run NTP daemon on my ER-X. Snap metrics through SNMP & graph using MRTG/rddtool like below:
Screen Shot 2017-11-30 at 1.53.12 PM.png
 
Have found the refresh button at the bottom! Helps a lot - just have to remember to press it every time I go on the page!

Maybe move this to the top for easier access?

I've added this table to mine for now;

HTML:
<div style="margin-left:5px;margin-top:10px;margin-bottom:10px"><img src="/images/New_ui/export/line_export.png"></div>
<table width="100%" align="center">
<tr class="apply_gen" valign="top" height="50px">
<td>
<input type="button" onClick=reload() value="Refresh" class="button_gen">
</td>
</tr>
</table>
You could probably set a timeout (or equivalent) to run the reload() every X seconds via the body onload event.
 
You could probably set a timeout (or equivalent) to run the reload() every X seconds via the body onload event.

I actually also already tried that but it didn't work, and as I then found the refresh button and added it to the top of the page figured it was less of a worry! Pending @kvic suggestion that I take this project on I may well look at it in more detail though.
 
I actually also already tried that but it didn't work, and as I then found the refresh button and added it to the top of the page figured it was less of a worry! Pending @kvic suggestion that I take this project on I may well look at it in more detail though.
Weird, the refresh is just calling onClick=reload() so calling reload on a timeout should do the same thing. Don't have this installed myself so can't debug it!
 
Weird, the refresh is just calling onClick=reload() so calling reload on a timeout should do the same thing. Don't have this installed myself so can't debug it!

Just realised you edited your reply (I read the original in email RE calling reload() in onload and hit reply from there). I tried your original suggestion, but not a timeout. Anyway, I'll take a proper look again in the next few days.
 
Not sure if this is still used by anyone, but does it work in 382.XX and 384.XX?

It’s working on 382.x for me.


Sent from my iPhone using Tapatalk
 
Do I need a flash drive to insall this to for logs and things
 
Can anybody post libpng12.so so I can get the rddtool to work.

Thanks
How is it not working? The rrdtool in /opt/bin/ should just work...
Can you explain a bit more about the root of your problem and what you are trying to do?
 
All is working fine but the graphs are just blank,

I completely uninstalled and reinstalled and everything is working, except for the graphs which do not update, they are blank
 
All is working fine but the graphs are just blank,

I completely uninstalled and reinstalled and everything is working, except for the graphs which do not update, they are blank
I just noticed the same problem. /opt/bin/rrdtool doesn't exist any longer. Tried reinstalling rrdtool and libpng but it doesn't fix this.

EDIT: Okies, weird. I reinstalled rrdtool once gain and now it works. Try and see if it works for you too.
 
What firmware are you guys running? Not that I think it should make any difference as we are referring to entware installed packages.
Best guess is something entware repo related was temporarily wrong.
 
What firmware are you guys running? Not that I think it should make any difference as we are referring to entware installed packages.
Best guess is something entware repo related was temporarily wrong.
380.67
 

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