[hobbit] Hobbit to IPPhone Beta

Josh Luthman josh at imaginenetworksllc.com
Thu Mar 27 23:43:24 CET 2008


 * See if you can telnet from your bb server to port 80 of your phone (in
this case 172.16.0.152)
-> telnet 172.16.0.152 80
Trying 172.16.0.152...
Connected to 172.16.0.152 (172.16.0.152).
Escape character is '^]'.
get / http/1.1

HTTP/1.1 405 Method Not Allowed
Allow: GET, HEAD, POST
Content-Length: 0
Server: Allegro-Software-RomPager/3.12

Connection closed by foreign host.

Does this look the same as yours?

* Make sure that the apache user can execute the bb command (in this case
/home/shire/server/bin/bb)
-rwxrwxrwx 1 hobbuzer hobbituzer 216177 Nov 23 09:56 bb

* Make sure that the hobbit.cgi is accessible, and that its working properly
(from your browser go to http://74.218.x.x/perl/hobbit.cgi and you should
get some XML code back in your browser window)
Here is probably my problem, all I get is a white page.  I have nothing in
error_log but I get a (I believe it to be) normal access_log entry:
172.16.0.153 - - [27/Mar/2008:18:21:25 -0400] "GET /perl/hobbit.cgi
HTTP/1.1" 200 - "-" "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:
1.8.1.13) Gecko/20080311 Firefox/2.0.0.13"

* do a tail -f of your apache access_log, and see if you get a hit from the
IPPhone when you run hobbit.cgi, you should see something like this:
10.216.100.54 - - [23/Mar/2008:04:21:36 -0700] "GET
/perl/hobbit.cgi?action=execute_push HTTP/1.1" 200 260 "-"
"Allegro-Software-WebClient/3.12"
-> /var/www/perl/hobbit.cgi && grep 172\.16\.0\.152 access_log
->
Is empty =(

>From what I can understand is that the hobbit.cgi is not telling the phone
to access the page.  Is this right?


On Thu, Mar 27, 2008 at 3:40 PM, Charles Jones <jonescr at cisco.com> wrote:

>  Josh Luthman wrote:
>
> our $IPPHONE = "172.16.0.152";
> our $USER = '9375522343';
> our $PASSWORD = 'joshisthebestpersonintheworld';
> our $display_colors="yellow,red";
> our $showgreen=1;
> our $BBDISPLAY="bbserver.imaginenetworksllc.com";
> our $BB="/home/shire/server/bin/bb";
> our $CGI_HOST="74.218.x.x";
> our $CGI_URL="http://$CGI_HOST/perl/hobbit.cgi"<http://$CGI_HOST/perl/hobbit.cgi>
> ;
> our $refresh_timer=0;
> our $alert_sound="ring6.raw";
> our $play_alert=1;
>
> Does this configuration look right?  I execute it at the prompt as the
> cron job would and I don't get anything on my phone =(
>
> That looks fine to me. Things you should double-check:
> * See if you can telnet from your bb server to port 80 of your phone (in
> this case 172.16.0.152)
> * Make sure that the apache user can execute the bb command (in this case
> /home/shire/server/bin/bb)
> * Make sure that the hobbit.cgi is accessible, and that its working
> properly (from your browser go to http://74.218.x.x/perl/hobbit.cgi and
> you should get some XML code back in your browser window)
> * do a tail -f of your apache access_log, and see if you get a hit from
> the IPPhone when you run hobbit.cgi, you should see something like this:
> 10.216.100.54 - - [23/Mar/2008:04:21:36 -0700] "GET
> /perl/hobbit.cgi?action=execute_push HTTP/1.1" 200 260 "-"
> "Allegro-Software-WebClient/3.12"
>
> -Charles
>
>


-- 
Josh Luthman
Office: 937-552-2340
Direct: 937-552-2343
1100 Wayne St
Suite 1337
Troy, OH 45373

Those who don't understand UNIX are condemned to reinvent it, poorly.
--- Henry Spencer
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.xymon.com/pipermail/xymon/attachments/20080327/ba7ecdfa/attachment.html>


More information about the Xymon mailing list