Tinydns_down.php - error messages in system log



  • I am not sure if this is the right area for this topic (versus the "packages" forum), but here goes…

    For the past few months the system log fills up with this nonsense:

    Apr 25 15:26:43 PingMonitor[25382]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:22:41 PingMonitor[31238]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:18:39 PingMonitor[53362]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:14:36 PingMonitor[68126]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:10:34 PingMonitor[33355]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:06:32 PingMonitor[73413]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 15:02:29 PingMonitor[35244]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:58:26 PingMonitor[76632]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:54:24 PingMonitor[81474]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:50:22 PingMonitor[95635]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:46:20 PingMonitor[37531]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:42:16 PingMonitor[49891]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:38:13 PingMonitor[68430]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:34:11 PingMonitor[80512]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:30:09 PingMonitor[92767]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:26:06 PingMonitor[6604]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:22:04 PingMonitor[2159]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:18:02 PingMonitor[20428]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    Apr 25 14:14:00 PingMonitor[24317]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php

    It triggers every 4:02 minutes so I thought maybe it was some Cron job but I don't see one that matches.  The file "/usr/local/pkg/tinydns_down.php" does not exist so I don't know how it could say it is running it.

    Months ago I did try installing tinydns and it was a disaster (that is another post for another time) so I uninstalled it.  I thought maybe some tinydns scrap did not get uninstalled, so I re-installed and uninstalled without success.

    Does anybody know where this originates and how to suppress this message?



  • I've got same problem here, does anyone know about this??

    My PF is latest v2.1.2.

    Thanks~



  • Exactly the same here, however, it started after the upgrade to 2.1.1. Tiny DNS was installed, however, removed long time ago. I've tried to install/setup tinydns again, didn't helped. The error is there even if the gateway is online or disabled. All gateway settings are default, all other packages has been reinstalled after the update to 2.1.2. I am almost sure it is a tinydns leftover (it is trying to trigger tinydns for whatever reason), just don't know where to look for it, therefore, any help/guess/clue will be appreciated.



  • Same problem here. Messages started appearing after updating to 2.1.2.
    Anyone got a fix/workaround for this problem yet?



  • I think I MAY have found the problem, but I cannot test my theory until after 5:00 PM today.
    My plan:

    1. backup the pfsense
    2. select Diagnostics/Edit File
    3. Open conf/config.xml
    4. search for "tinydns" and delete this snippet of code:
    		 <tinydns><config><temp><ipaddress>127.0.0.1</ipaddress>
    				<enableforwarding>on</enableforwarding>
    				<interface>lan,opt1,opt3,opt4,opt5</interface>
    				<dnscache_listen>192.168</dnscache_listen>
    				<regdhcpstatic>on</regdhcpstatic>
    				<regdhcp>on</regdhcp>
    				 <enableipmonitoring><refreshinterval><syncxmlrpc><row><ztipaddress></ztipaddress></row></syncxmlrpc></refreshinterval></enableipmonitoring></temp></config></tinydns> 
    
    1. reboot.

    It appears that during tinydns uninstall this did not get deleted.  It might totally hose the pfSense box (I do that a lot) hence the backup, but maybe deleting this code MIGHT fix the issue.  Further down there is a second (smaller) tinydns entry I will also delete.



  • Sounds like a plausible conclusion. Although I never installed the tinydns package and I'm also seeing the same system messages.
    I'm waiting for your results. It might just work.

    Good luck!  8)



  • @SkyNET:

    Sounds like a plausible conclusion. Although I never installed the tinydns package and I'm also seeing the same system messages.
    I'm waiting for your results. It might just work.

    Good luck!  8)

    Well, I'm sorry to say that I FAILED.  I deleted the sections of the xml file, rebooted, still have the problem.  At least I did not hose the pfSense.

    The fact that those code snippets exist tell me that the TinyDNS uninstall is incomplete.  I tried searching for other files that contain the words "tinydns", "tiny_dns" or "PingMonitor" and could not find anything.

    If someone here wants to give it a shot try running the commands:
    grep tinydns *
    grep tiny_dns *
    grep PingMonitor *

    I don't know what else to look for.  This is beyond the ability of this noob.



  • As expected issue still there in 2.1.3

    $ grep tinydns *
    help.php: 'tinydns.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
    help.php: 'tinydns_domains.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',
    help.php: 'tinydns_sync.xml' => 'https://doc.pfsense.org/index.php/Tinydns_package',

    grep tiny_dns * - nothing
    grep PingMonitor * - nothing

    Tinydns section

    <tinydns><config><temp><ipaddress>127.0.0.1</ipaddress>
    <enableforwarding>on</enableforwarding>
    <interface>lan,wan,lo0</interface>
    <dnscache_listen>192.168.2 10</dnscache_listen>
    <regdhcpstatic>on</regdhcpstatic>
    <regdhcp>on</regdhcp>
    <enableipmonitoring><refreshinterval><syncxmlrpc><row><ztipaddress></ztipaddress></row></syncxmlrpc></refreshinterval></enableipmonitoring></temp></config></tinydns>

    removed from the config.xml, however, same error as before after the restart even when monitor is down. Any other thoughts where to dig further  :o ?

    This is beyond the abilities of this noob too



  • I spent a few more hours this morning trying to sort this out without success.  It turns out the grep command is not recursing through the subdirectories as it should be (even with the -r switch or the -d recurse switch) so the results cannot be trusted.  Basically I am looking for any file that contains the words tinydns, tiny_dns or pingmonitor.

    My lack of success most likely has more to do with my lack of Linux skills.

    My last attempts this morning involved variations on the following commands:
    grep -d recurse -i -s pingmonitor /.
    grep -r -i -s pingmonitor /.

    These never worked, it would go one directory deep, find stuff and then terminate.  I verified this when I ran this command:
    grep -r -i the /.

    So then I decided to try specifying the directory each time, like so:
    grep -r -i -s pingmonitor /etc/.

    Finally I realized the futility of this.  So, people who KNOW Linux, how is this done?  How do we recursively search through the entire pfSense directory structure to (hopefully) locate the file that is causing this issue?

    What baffles me is SkyNET claims to have never installed TinyDNS yet he still has this problem.



  • Don't know why but I don't receive the thinydns messages anymore. I just upgraded to 2.1.3.

    What baffles me is SkyNET claims to have never installed TinyDNS yet he still has this problem.

    In response, I might have installed tunydns once for testing on my first pfsense box a long time ago.
    But I used the same config on my second box where the messages did not show up.

    Anyway.. no more system- or syslog messages regarding tinydns for me.. Cheers!



  • Well, I upgraded to 2.1.3 yesterday and this is my current system log:

    
    May 3 21:20:18	PingMonitor[85407]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 21:16:15	PingMonitor[73885]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 21:12:13	PingMonitor[68062]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 21:08:11	PingMonitor[63013]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 21:04:08	PingMonitor[57246]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 21:00:06	PingMonitor[52366]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:56:04	PingMonitor[42580]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:52:01	PingMonitor[31987]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:47:59	PingMonitor[27585]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:43:57	PingMonitor[19427]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:39:55	PingMonitor[14145]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:35:52	PingMonitor[7688]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:31:50	PingMonitor[2121]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:27:48	PingMonitor[96916]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:23:46	PingMonitor[8735]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:19:43	PingMonitor[9184]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:15:41	PingMonitor[1501]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:11:39	PingMonitor[96525]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:07:37	PingMonitor[93542]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 20:03:34	PingMonitor[82721]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:59:32	PingMonitor[73384]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:55:30	PingMonitor[67955]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:51:28	PingMonitor[63591]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:47:25	PingMonitor[59850]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:43:23	PingMonitor[48230]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:39:21	PingMonitor[43821]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:35:19	PingMonitor[37274]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:31:16	PingMonitor[28361]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:27:14	PingMonitor[22147]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:23:12	PingMonitor[14490]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:19:10	PingMonitor[9828]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:15:07	PingMonitor[3091]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:11:05	PingMonitor[97216]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:07:03	PingMonitor[90969]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 19:03:00	PingMonitor[81577]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:58:58	PingMonitor[73676]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:54:56	PingMonitor[86736]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:50:54	PingMonitor[81240]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:46:50	PingMonitor[74112]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:42:48	PingMonitor[61890]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:38:46	PingMonitor[56128]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:34:43	PingMonitor[51565]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:30:40	PingMonitor[45812]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:26:38	PingMonitor[38134]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:22:36	PingMonitor[33420]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:18:34	PingMonitor[27538]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:14:31	PingMonitor[19573]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:10:29	PingMonitor[16853]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:06:27	PingMonitor[12765]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 18:02:24	PingMonitor[2399]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:58:22	PingMonitor[93196]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:54:20	PingMonitor[89548]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:50:18	PingMonitor[89244]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:46:12	PingMonitor[82103]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:42:10	PingMonitor[72057]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:38:08	PingMonitor[67590]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:34:06	PingMonitor[58746]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:30:02	PingMonitor[55917]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:26:00	PingMonitor[44683]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:21:56	PingMonitor[36749]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:17:54	PingMonitor[32298]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:13:52	PingMonitor[24903]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:09:49	PingMonitor[38603]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:05:47	PingMonitor[32899]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 17:01:45	PingMonitor[27208]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:57:43	PingMonitor[18561]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:53:40	PingMonitor[9440]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:49:38	PingMonitor[888]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:45:36	PingMonitor[95167]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:41:34	PingMonitor[89598]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:37:31	PingMonitor[81755]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:33:29	PingMonitor[73738]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:29:27	PingMonitor[65641]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:25:24	PingMonitor[58342]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:21:22	PingMonitor[55112]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:17:20	PingMonitor[52513]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:13:18	PingMonitor[46934]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:09:14	PingMonitor[37539]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:05:12	PingMonitor[29664]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 16:01:07	PingMonitor[24842]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:57:05	PingMonitor[10929]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:53:03	PingMonitor[6656]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:49:01	PingMonitor[1618]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:44:58	PingMonitor[95298]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:40:56	PingMonitor[92006]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:36:54	PingMonitor[1122]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:32:52	PingMonitor[97949]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:28:49	PingMonitor[94154]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:24:47	PingMonitor[92766]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:20:45	PingMonitor[89899]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:16:43	PingMonitor[84124]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:12:40	PingMonitor[79058]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:08:38	PingMonitor[75909]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:04:36	PingMonitor[71500]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 15:00:32	PingMonitor[69678]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:56:30	PingMonitor[56496]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:52:26	PingMonitor[47062]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:48:24	PingMonitor[43528]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:44:21	PingMonitor[39344]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:40:19	PingMonitor[33843]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:36:17	PingMonitor[24506]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:32:15	PingMonitor[18194]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:28:12	PingMonitor[9147]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:24:10	PingMonitor[5423]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:20:08	PingMonitor[3110]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:16:05	PingMonitor[94796]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:12:03	PingMonitor[87278]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:08:01	PingMonitor[83460]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 14:03:59	PingMonitor[75720]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:59:56	PingMonitor[92004]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:55:54	PingMonitor[87714]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:51:52	PingMonitor[84459]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:47:50	PingMonitor[77491]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:43:46	PingMonitor[71754]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:39:44	PingMonitor[66806]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:35:41	PingMonitor[63054]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:31:39	PingMonitor[54225]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:27:37	PingMonitor[47318]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:23:35	PingMonitor[40247]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:19:32	PingMonitor[35337]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:15:30	PingMonitor[32681]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:11:28	PingMonitor[26064]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:07:26	PingMonitor[19752]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 13:03:23	PingMonitor[9252]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:59:21	PingMonitor[98386]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:55:19	PingMonitor[90237]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:51:16	PingMonitor[83225]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:47:14	PingMonitor[81056]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:43:12	PingMonitor[76920]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:39:10	PingMonitor[71260]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:35:07	PingMonitor[72437]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:31:04	PingMonitor[68603]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:27:02	PingMonitor[79844]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:23:00	PingMonitor[76325]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:18:58	PingMonitor[70701]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:14:55	PingMonitor[63845]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:10:53	PingMonitor[58575]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:06:51	PingMonitor[7854]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 12:02:48	PingMonitor[4994]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:58:46	PingMonitor[25217]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:54:44	PingMonitor[18530]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:50:42	PingMonitor[10433]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:46:39	PingMonitor[4086]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:42:37	PingMonitor[99296]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:38:35	PingMonitor[67591]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:34:32	PingMonitor[86810]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:30:30	PingMonitor[6953]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:26:28	PingMonitor[30448]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:22:26	PingMonitor[51574]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:18:23	PingMonitor[65455]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:14:20	PingMonitor[82616]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:10:18	PingMonitor[92249]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:06:16	PingMonitor[12074]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 11:02:14	PingMonitor[31230]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 10:58:11	PingMonitor[68294]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 10:54:09	PingMonitor[81580]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    May 3 10:50:07	PingMonitor[96706]: is DOWN, previous state was UP .. Running /usr/local/pkg/tinydns_down.php
    
    


  • The messages came back after I made some changes to the config.
    Changes where made in the DHCP section & rule section.
    After these changes the syslog/system-messages came back..

    To be continued..



  • @SkyNET:

    The messages came back after I made some changes to the config.
    Changes where made in the DHCP section & rule section.
    After these changes the syslog/system-messages came back..

    To be continued..

    Welcome back, SkyNET, you were missed…



  • I'm having the same problem. :-[



  • I've been having the same problem, and I've tracked it down as far as /usr/local/bin/ping_hosts.sh, or more accurately, /tmp/tmpHOSTS which ping_hosts reads.

    I've got one line with a blank ip address in the second pipe delimited column, and when I manually remove that line those log lines go away for a while (but eventually return).

    The tmpHOSTS file is generated by catting a few files together (bin/ping_hosts.sh:cat $PKGHOSTS $HOSTS $IPSECHOSTS >/tmp/tmpHOSTS) so that's the next direction I'm looking…



  • I think that makes six people so far.  Welcome to the club, wlm2048 and iyanchev.  So have you two installed/uninstalled the tinydns package and this created the problem?  I believe that is what started it for me.

    I am starting to think the only way to fix this is to format the hard drive and start over again…



  • Nope, just upgraded to the newest version.



  • OK, I fixed it.

    Around line 431 of /usr/local/pkg/tinydns.inc, there's a line that looks like:

    if(!in_array($monitorip, $processed)) {
    

    and it needs to be:

    if(!empty($monitorip) && !in_array($monitorip, $processed)) {
    

    Additionally, around line 444, there's one that's:

    if(!in_array($row['failoverip'], $processed)) {
    

    and it also needs to check to make sure that variable is set:

    if(!empty($row['failoverip']) && !in_array($row['failoverip'], $processed)) {
    

    Really, all the places that file is written to needs a check for a null/empty value, but this worked for me. Note that I've made edits to the file, so the line numbers may be off a bit.



  • As long as you're in there, I had to make the following change in order for it to not start axfrdns (even though my zone xfer fields were blank). Same sort of thing - it's checking to see if it's an array without checking to see if it actually contains something. Around line 300 this function needed some work (again, the file has been modified, but it should be close):

    
    function populate_zt_array() {
            global $g, $config;
            /* Populate Zone Transfer array */
            if($config['installedpackages']['tinydns']['config'][0]['row']) {
                    $ztipaddress = array();
                    foreach($config['installedpackages']['tinydns']['config'][0]['row'] as $zt) {
                            if ( !empty($zt['ztipaddress']) && !empty($zt['dnszone']) ) {
                                    $tmp = array();
                                    $tmp['ztipaddress'] = $zt['ztipaddress'];
                                    $tmp['dnszone'] = $zt['dnszone'];
                                    $ztipaddress[] = $tmp;
                            }
                    }
                    if (!empty($ztipaddress)) {
                            log_error("ztipaddress is not empty");
                    }
                    else {
                            log_error("ztipaddress is empty");
                            unset($ztipaddress);
                    }
            }
            return $ztipaddress;
    }
    
    

    And yes, this is horrible code, but I just wanted it to work and stop killing my DNS server  :D



  • @wlm2048:

    OK, I fixed it.

    Around line 431 of /usr/local/pkg/tinydns.inc, there's a line that looks like:

    OK, I wish I had the pfSense skills to do this, especially because I don't have that file.  As with others on this thread we actually do not have tinyDNS installed.  At one point I installed it, but it was a disaster and I since uninstalled it months ago.

    This is what makes this so frustrating for us - somewhere there is a code remnant that causes this issue and we don't know where it is.

    Maybe if we create this file but make it empty it will solve the problem?



  • See if you have "/var/db/pkgpinghosts", and if so, delete the lines in it that say anything about tinydns, and then delete the "/tmp/tmpHOSTS" file. The latter will be recreated.



  • @wlm2048:

    See if you have "/var/db/pkgpinghosts", and if so, delete the lines in it that say anything about tinydns, and then delete the "/tmp/tmpHOSTS" file. The latter will be recreated.

    THAT FIXED IT!!!  THANK YOU!  It was like the pfSense box was possessed and this exorcised the demons.

    The lines that were in the files were:

    192.168.4.15|ns.admin.internal.|1|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php
    192.168.4.15||1|/usr/local/pkg/tinydns_down.php|/usr/local/pkg/tinydns_up.php|



  • You're welcome, glad I could help!



  • Logging in to my box via ssh and opened /var/db/pkgpinghosts with vi.
    There were only 3 entries in there all about tinydns. (my old outside ip address)
    Tried to remove the lines with vi but was not able to save the file. Permissions denied.

    trying su, sudo or chmod does not work. any suggestions??


  • Moderator

    Make sure you SSH with the "account" that has admin rights. Look at the User Manager to see the accounts that are configured. You can run "whoami" in the shell and it should report "root".



  • Thanks! I had disabled the default admin account and created a new (non-default) admin account. That one did not have sufficient privileges via ssh.
    It did the trick for me! Everything is working like it should now. Thanks everyone!  8)



  • @wlm2048:

    See if you have "/var/db/pkgpinghosts", and if so, delete the lines in it that say anything about tinydns, and then delete the "/tmp/tmpHOSTS" file. The latter will be recreated.

    Thank you, You made my day/week!


Log in to reply