Cheshire Cat Computing

Software support and information
It is currently Sat May 25, 2013 12:34 pm

All times are UTC + 12 hours [ DST ]




Post new topic Reply to topic  [ 2 posts ] 
Author Message
PostPosted: Tue Dec 22, 2009 5:00 am 
Offline
User

Joined: Tue Dec 22, 2009 4:41 am
Posts: 1
W2k3; Perl 5.10.1 (GD,CGI,Win32-PingICMP installed);IIS6 (.cgi=C:\Perl\bin\perl.exe "%s" %s; GET,HEAD,POST)

content of updown.html:

"<IMG src=/cgi-bin/updown.cgi?host=10.12.0.9>"

When I try to run this script with one accessible machine (Succesfully ping IP from command line of this machine) always got red picture with "down" text. Script "think" about 3 seconds, than show me down status. I am try to capture ICMP packets while I clicking to page by "windump -i %eth0% -n host 10.12.0.9" but no packets are captured for this host.

Is there any way to debug if script itself work? Seems like script with IIS work correctly (show status picture) but the cgi, perl and/or network layer cooperation does not did their job properly. Again, I can ping the host 10.12.0.9 sucesfully by windows ping command from this machine. Any ideas??

L.


Top
 Profile  
 
PostPosted: Tue Dec 22, 2009 9:11 am 
Offline
Site Admin

Joined: Tue Jul 29, 2003 11:42 am
Posts: 2921
Location: Auckland, New Zealand
The updown.cgi script uses a ping to determine state; sometimes this requires a higher level of system access that is given to the web server and so it fails. In the script are options to allow you to use a ICMP, UDP or TCP ping depending on your system, possibly this is the issue? Let me know what OS you are using, and try to run the CGI as a non-admin user and see if it works,also check your web server's error logs for any clues

_________________
Steve Shipway
UNIX Systems, ITSS, University of Auckland, NZ
Woe unto them that rise up early in the morning... -- Isaiah 5:11


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 2 posts ] 

All times are UTC + 12 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group