introduction

We ran into a problem with gathering data from pinger.pern.edu.pk using the getdata.pl script (that in turn uses wget) at SLAC. However, we were able to use http://pinger.pern.edu.pk/cgi-bin/ping_data.pl? successfully from a browser.

Possible cause

On december 14, the node pinger.pern.edu.pk was shifted from LAN to core router. This change was communicated to Amber and she was asked to monitor this node for any issues.

regards,
Anjum

Web server works from browser but not from wget on the command line

Has anyone any ideas on the following problem gathering data from pinger.pern.edu.pk (it also appears to be true for http://pingerisl-fjwu.pern.edu.pk, http://pingerisl-qau.pern.edu.pk, http://pingermtn.pern.edu.pk (this host was found to again be working on 1/12/2012), http://nuisb.seecs.edu.pk).

http://www-iepm.slac.stanford.edu/monitoring/checkdata/index.html reports that we have been unable to gather data from the above hosts since 12/12/2011 for pinger.pern, and 12/7/2011 for pingerisl-fjwu, pingerisl-qau, nuisb.

Further the above hosts are not pingable from SLAC and also one cannot ping from them to SLAC. The pinging is also reported here.

However, their web servers work, for example:

pinger.pern.edu.pk is working

i.e. if one submits: URL =

in_form=1
&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y

from the browser it works.

The following also works from the command line at SLAC:

13cottrell@pinger:~>wget 'http://pinger.seecs.edu.pk/cgi-bin/ping_data.pl'
--20:08:14--  http://pinger.seecs.edu.pk/cgi-bin/ping_data.pl
           => `ping_data.pl.2'
Resolving pinger.seecs.edu.pk... 115.186.131.81
Connecting to pinger.seecs.edu.pk|115.186.131.81|:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: unspecified [text/html]

    [ <=>                                 ] 15,190        --.--K/s

However, if one does the following from the command line at SLAC:

26cottrell@pinger:~>wget 'http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?
in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y'
--12:15:36--  http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y
           => `ping_data.pl?in_form=1&begin_hour=0&begin_min=00&begin_sec=00
&begin_day=23&begin_month=12&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y'
Resolving pinger.pern.edu.pk... 111.68.96.158 Connecting to pinger.pern.edu.pk|111.68.96.158|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
12:18:06 ERROR 503: Service Unavailable.

Exit 1

Or the default used in getdata.pl

25cottrell@pinger:~>/usr/bin/wget --no-check-certificate --no-verbose --tries=1 --quiet -O -  --timeout=60
'http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?
in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y'
Exit 1
26cottrell@pinger:~>

Or

23cottrell@pinger:~>/usr/bin/wget --no-check-certificate --tries=1 -O - --timeout=600
'http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?
in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y'
--11:55:24--  http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?
in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y
           => `-'
Resolving pinger.pern.edu.pk... 111.68.96.158 Connecting to pinger.pern.edu.pk|111.68.96.158|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
11:57:54 ERROR 503: Service Unavailable.

Exit 1

Or

24cottrell@pinger:~>/usr/bin/wget  --tries=1 -O - --timeout=600
'http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y'
--12:09:13--  http://pinger.pern.edu.pk/cgi-bin/ping_data.pl?
in_form=1&begin_hour=0&begin_min=00&begin_sec=00&begin_day=23&begin_month=12
&begin_year=2011&begin_offset=&begin_point=y
&end_hour=7&end_min=59&end_sec=59&end_day=23&end_month=12&end_year=2011&end_offset=&end_point=y
           => `-'
Resolving pinger.pern.edu.pk... 111.68.96.158 Connecting to pinger.pern.edu.pk|111.68.96.158|:80... connected.
HTTP request sent, awaiting response... 503 Service Unavailable
12:11:43 ERROR 503: Service Unavailable.

Exit 1

I have diff'ed the URLs and they are the same.

  • No labels