How do I check that system time is configured OR not correctly on the web host server? I need to check its sync with twitter server time. How do I do that? I checked by running "strftime('%c')" on web server that its time is either -7 hours OR +5 different hours my systemtime.
EDIT
OK, I checked time zone as Piskvor mentioned & Web server has 'UTC/GMT -5 hours' while my system is in 'UTC/GMT +2 hours'. my problem is that I need to sure the clock on the server is properly synced with NTP. How do I do that ?
I am using Windows XP.
ntpq -p
You should see a list of your configured clock sources, with "*" indicating a clock source selected as the source for synchronisation.
Related
I have a OpenWRT router running chrony (chronyd). The hardware doesn't have RTC, so after a power loss, the system clock goes crazy.
I want to have a LAN NTP server, but if somehow have no internet connection and the clock is wrong because a power loss, the NTP server passes the wrong time to the clients. Consider I'm using 'cheap' NTP clients (Android/Arduino/other routers/cameras) that have no way to prevent a big clock slew.
I would like to disable chrony NTP server on reboot and wait to a first sync to enable it. I thought this was a common setting, but couldn't find anywhere.
I've also tried ntpd and I'm open to alternatives (but it must run on OpenWRT).
Note: I'm already trying to use a USB GPS as a more reliable clock source even without internet connection.
My solution so far:
On chrony.conf, set to be disabled on startup.
deny all
Then, I created a script to check every minute if clock is sync (using chronyc) and then enable it again.
until ! chronyc tracking | grep "Reference ID" | grep -q "()"
do sleep 60
done
chronyc allow all
Finally, set to run script on startup.
Seems this in only possible with chrony (not ntpd), as it have a client to change settings on the fly.
We have a requirement to measure unix server downtime for a month using geneos . We explored some of the plug ins available available in geneos but we were not able to find .
Requirement is geneos sampler should add the total time the unix server went down in month and display result. Thanks in advance.
There is no sampler to check the server downtime.
Considering you have a script (written in bash/perl or any other language for that matter) which is able to generate the required output, you could use such a script in the 'toolkit' plugin in Geneos.
Remember that the script should produce comma separated values as an output along with a header (title) record.
I would implement Gateway monitoring using the "Gateway-probeData" plugin.
This will check that the Gateway can communicate with the Netprobe.
Additionally I have set up a crontab job to check the Netprobe is running
# Check and restart Netprobes
0,15,30,45 * * * * /script/to/check/all/probes.sh
Subsequently I would set up dbLogging in the GSE and the Gateway can store the historic data of the connectivity of the Server (via the Netprobe)
I have setup WampServer with a LIVE IP on WIndows 8, but after few minutes of usage it stop responding to requests, the browser shows connecting progress bar and it goes on.
While on the same machine, when i access the apache server via Localhost, it works fine.
Any quick help to figure out this issue will highly be appreciated. More info can be provided on request.
You could try adding these 2 command to your httpd.conf file, doing so has fixed similiar issues in the past.
httpd.conf File
Add this section
# AcceptFilter: On Windows, none uses accept() rather than AcceptEx() and
# will not recycle sockets between connections. This is useful for network
# adapters with broken driver support, as well as some virtual network
# providers such as vpn drivers, or spam, virus or spyware filters.
AcceptFilter http none
AcceptFilter https none
Just before this line ( approx line 480 )
# Supplemental configuration
It is also worth noting that Windows 8 has a maximum external connection limit, as do all Windows Desktop OS's. The W8 limit is 20 connections, and in earlier versions the limit is smaller.
Basically if you are trying to run a server i.e. Apache on a desktop OS, it works just great for a single developer situation. It does not however work well under any kind of multi user loading, as Windows Desktop OS's are not configured like a Windows Server. Maybe you should put WAMPServer on a proper Server OS in order to test multi user loads.
I'm using TIdFTP (Indy 10.2) in Delphi XE2; the method 'connect' (to create a connection...) is very slow; it takes 7 - 8 seconds to accomplish task.
I have tried with different configurations: Passive true or false, AutoLogin true or false, but more or less the same situation.
Is there any particular configuration to consider ?
First, 10.2 is a VERY OLD and OUTDATED version. The current version is 10.6. You should seriously consider upgrading.
Second, Connect() does a lot of work. It always sends a SYST command at a minimum, but depending on the values of the following properties, it may send a lot of additional commands as well:
UseHOST=True
HOST
AutoLogin=True
AUTH 1-4 times (only if UseTLS is utUseRequireTLS or utUseExplicitTLS)
XAUT (only if ProxySettings.ProxyType is fpcmNone)
USER
PASS
ACCT
OPEN (only if ProxySettings.ProxyType is fpcmOpen)
EPSV ALL (only if EPSV is supported)
SITE ZONE (only if SITE ZONE is supported)
TYPE
AutoIssueFEAT=True
FEAT
CLNT
So taking 7-8 seconds to complete is not unreasonable depending on how many commands it has to send and how much bandwidth you have available. To make Connect() return as soon as possible, turn off all of the auto features, and then call Login() and IssueFEAT() manually when ready.
Firstly I'd verify if the issue is with Indy, have you tried connecting using a different ftp client (ftp at a command prompt, Filezilla, etc.), as it could be the server that is slow. I remember an issue I had where the FTP server was attempting to do a reverse DNS lookup and stalling the connection.
I have created a Datasnap service, using Bob Swart's white paper as a guide. I have been debugging and deployed succesfully using the VCL Forms application as a server. But when I try to deploy the service version, it installs ok, I then try to start the service and it immediately stops. The error in the event log would suggest that the port set is already in use, I have tried different port numbers for both the TCPServerTransport and the HTTPService without any joy. The DSServer is not set to Autostart as I want to set the Port number from a configuration file. The error message displayed in the event log is:
Service failed on start: Could not bind socket. Address and port are already in use..
I have also tried writing to a log file on start up and execute but it looks as if it is not getting this far.
Solution needed asap, before I have to revert back to a thick client which I do not really want to do.
Thanks
Firstly get a copy of TCPView from the Sysinternals suite (now run by Microsoft) and use it to monitor which app is using the port you want to use.
I would hazard a guess that if the app works fine as a stand alone (as you say it does) and you are trying to use the same port in the service then perhaps the service app is opening up the port at startup without you realizing it and then when you try to open the port manually the app finds it already in use. Or somehow the app is trying to open the port twice. The first time is successful but, maybe due to an event or an unexpected code path, the app tries to open it a second time and fails. TCPView will help spot this.
If you are sure that the port you have configured is actually free and not in use by any other software on the machine, then there might be some anti-virus / security software running that is blocking all software from listening on either specific ports or on any port except a few configured ones. The message you are getting could be one of the symptoms of how the anti-virus / security software handles attempts by apps to start listening on a port.