iPhone client

Addons for Cacti and discussion about those addons

Moderators: Developers, Moderators

Post Reply
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Re: Blank Screen

Post by gascione »

gascione wrote:Not sure what I am doing wrong. Even finally upgraded to 0.8.7e. Installed app just fine. Entered my URL, username and password. Press the instance to log on and the little icon spins, stops spinning and I get nothing. No error, blank screen. Is there something in cacti to enable or is it just using the regular browsing features?

GA

Here is what comes into the apache log file when I select the instance:

XX.XX.XX.XX - - [10/Jan/2010:13:04:33 -0500] "POST / HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php?action=tree&tree_id=10&select_first=true HTTP/1.1" 200 80572 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /host.php?host_status=-1&host_template_id=-1&host_rows=5000&filter= HTTP/1.1" 200 750 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
Any help with my post? It's not going to break the bank but I hate to think I spent $1.99 for nothing :( I would really love to be able to use this app.

Thanks
GA
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Re: Blank Screen

Post by gascione »

gascione wrote:
gascione wrote:Not sure what I am doing wrong. Even finally upgraded to 0.8.7e. Installed app just fine. Entered my URL, username and password. Press the instance to log on and the little icon spins, stops spinning and I get nothing. No error, blank screen. Is there something in cacti to enable or is it just using the regular browsing features?

GA

Here is what comes into the apache log file when I select the instance:

XX.XX.XX.XX - - [10/Jan/2010:13:04:33 -0500] "POST / HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php?action=tree&tree_id=10&select_first=true HTTP/1.1" 200 80572 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /host.php?host_status=-1&host_template_id=-1&host_rows=5000&filter= HTTP/1.1" 200 750 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
Any help with my post? It's not going to break the bank but I hate to think I spent $1.99 for nothing :( I would really love to be able to use this app.

Thanks
GA
Just in case anyone is listening out of frustration I set up Cacti on a Linux machine inside my home network. Same version, same Linux OS and rev, fairly identical machines. I added a few monitors to the new install of cacti and pointed Icacti to the home server and it gives me the menus and the graphs. Works like a charm

Same cacti installation at the work network, same rev and patches, just lots more monitors, nothing at all, no response from ICacti. No menus no graphs, no errors. Just connects and spins the wheel for about 10 seconds then shows a blank screen. Not a firewall issue either, VPN into the network so I am working on the same LAN. Am I missing some apache setting or something?
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

just my 2cents, but that sounds like a time-out issue where icacti is waiting for a response from the server and then ust silently fails ....
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Post by gascione »

Could be but no way of doing anything about it.
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Re: Blank Screen

Post by gascione »

gascione wrote:
gascione wrote:
gascione wrote:Not sure what I am doing wrong. Even finally upgraded to 0.8.7e. Installed app just fine. Entered my URL, username and password. Press the instance to log on and the little icon spins, stops spinning and I get nothing. No error, blank screen. Is there something in cacti to enable or is it just using the regular browsing features?

GA

Here is what comes into the apache log file when I select the instance:

XX.XX.XX.XX - - [10/Jan/2010:13:04:33 -0500] "POST / HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php HTTP/1.1" 302 - "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /graph_view.php?action=tree&tree_id=10&select_first=true HTTP/1.1" 200 80572 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
XX.XX.XX.XX - - [10/Jan/2010:13:04:34 -0500] "GET /host.php?host_status=-1&host_template_id=-1&host_rows=5000&filter= HTTP/1.1" 200 750 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_US)"
Any help with my post? It's not going to break the bank but I hate to think I spent $1.99 for nothing :( I would really love to be able to use this app.

Thanks
GA
Just in case anyone is listening out of frustration I set up Cacti on a Linux machine inside my home network. Same version, same Linux OS and rev, fairly identical machines. I added a few monitors to the new install of cacti and pointed Icacti to the home server and it gives me the menus and the graphs. Works like a charm

Same cacti installation at the work network, same rev and patches, just lots more monitors, nothing at all, no response from ICacti. No menus no graphs, no errors. Just connects and spins the wheel for about 10 seconds then shows a blank screen. Not a firewall issue either, VPN into the network so I am working on the same LAN. Am I missing some apache setting or something?
In case the developers read this here is some information that may help debug the app. There has to be a problem with it, it just doesn't work. The installation of Cacti that produces nothing has:

A total of 45 Graph Trees
14 Primary trees
31 Sub Trees (only 1 level deep)
56 Devices Active on the system
191 Data Sources
113 Total active graphs

Running on CentOS, Dell 1750 Server. Only site on the server is Cacti. Polls all devices in less than 6 seconds. Error logs completely clean. Here is one of the polling messages:

01/11/2010 07:15:07 PM - SYSTEM STATS: Time:5.7113 Method:cmd.php Processes:15 Threads:N/A Hosts:56 HostsPerProcess:4 DataSources:191 RRDsProcessed:132

Web based interface works fine, no errors all graphs display perfectly. Works in IPhone Safari browser if you have a magnifying glass or the patience to play with the screen.

Both Cacti installations are identical except for the number of devices. The second system that works, from the logs:

01/11/2010 07:15:05 PM - SYSTEM STATS: Time:4.1438 Method:cmd.php Processes:1 Threads:N/A Hosts:4 HostsPerProcess:4 DataSources:9 RRDsProcessed:7

This one only has three graph trees and only a few graphs.

I'm done beating my head against the wall. Please let me know if anything else is needed to figure this out, until then its $2 for a dead app. No big deal, won't break me but seriously sad, :( really wanted this app to work. I'm not an Iphone developer so sorry I can't help out any further.

GA
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

I feel your frustration. However, I don't own one of these things. So, I can't help.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
User avatar
TheWitness
Developer
Posts: 17059
Joined: Tue May 14, 2002 5:08 pm
Location: MI, USA
Contact:

Post by TheWitness »

IMHO, the developer should require a Cacti Plugin to coincide with the Application. That would make this "much" easier.

TheWitness
True understanding begins only when we realize how little we truly understand...

Life is an adventure, let yours begin with Cacti!

Author of dozens of Cacti plugins and customization's. Advocate of LAMP, MariaDB, IBM Spectrum LSF and the world of batch. Creator of IBM Spectrum RTM, author of quite a bit of unpublished work and most of Cacti's bugs.
_________________
Official Cacti Documentation
GitHub Repository with Supported Plugins
Percona Device Packages (no support)
Interesting Device Packages


For those wondering, I'm still here, but lost in the shadows. Yearning for less bugs. Who want's a Cacti 1.3/2.0? Streams anyone?
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Post by gascione »

It's a young app, hopefully it will grow and mature.
User avatar
Howie
Cacti Guru User
Posts: 5508
Joined: Thu Sep 16, 2004 5:53 am
Location: United Kingdom
Contact:

Post by Howie »

TheWitness wrote:IMHO, the developer should require a Cacti Plugin to coincide with the Application. That would make this "much" easier.

TheWitness
Agreed. I did volunteer for that part, but actually it looks like nmidWebServer would do it.
Weathermap 0.98a is out! & QuickTree 1.0. Superlinks is over there now (and built-in to Cacti 1.x).
Some Other Cacti tweaks, including strip-graphs, icons and snmp/netflow stuff.
(Let me know if you have UK DevOps or Network Ops opportunities, too!)
User avatar
phalek
Developer
Posts: 2838
Joined: Thu Jan 31, 2008 6:39 am
Location: Kressbronn, Germany
Contact:

Post by phalek »

Hi guys,

I just published a development release for playing around with the webservice stuff. It's a long way until production release, but will show the possibilities of a webservice.

http://forums.cacti.net/viewtopic.php?p=180283#180283
Greetings,
Phalek
---
Need more help ? Read the Cacti documentation or my new Cacti 1.x Book
Need on-site support ? Look here Cacti Workshop
Need professional Cacti support ? Look here CereusService
---
Plugins : CereusReporting
waverate
Posts: 4
Joined: Tue Jan 12, 2010 4:48 pm

Re: Blank Screen

Post by waverate »

gascione,

I feel your pain. I have the same problem.

I noticed in my access_log:

10.2.1.1 - - [12/Jan/2010:16:43:21 -0500] "POST / HTTP/1.1" 200 750 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_CA)"
10.2.1.1 - - [12/Jan/2010:16:43:21 -0500] "GET /host.php?host_status=-1&host_template_id=-1&host_rows=5000&filter= HTTP/1.1" 200 750 "-" "iCacti 1.2 (iPhone; iPhone OS 3.1.2; en_CA)"

There are no errors in the error_log.

When I put the GET request into the address line for my Cacti installation, I notice that it brings up the devices (host.php) page filtered on the term HTTP/1.1. For my installation, this returns a table of no devices.

I wonder if this is the problem?

So, I tried to be smarter than the average bear and added HTTP /1.1 to the description of my devices. Sure enough, the URL now returns a list of devices.

BUT .. still no response from the iPhone App.

I am not monitoring as many devices as you:

Date Tue, 12 Jan 2010 17:10:29 -0500
Cacti Version 0.8.7e
Cacti OS unix
SNMP Version NET-SNMP version: 5.3.2.2
RRDTool Version RRDTool 1.3.x
Hosts 7
Graphs 19
Data Sources Script/Command: 16
SNMP Query: 2
Script Query: 2
Total: 20

Finally, like you I am behind a work firewall. I took a look at the firewall logs and I could not find any other packets that were part of the stream that were being dropped.

Considering that there is no documentation about what we need to do to get this to work, I am assuming that it works out of the box.

I give up.
waverate
Posts: 4
Joined: Tue Jan 12, 2010 4:48 pm

Re: Blank Screen

Post by waverate »

SUCCESS!

I tried using my admin user and password and it works. It looks like it has something to do with the permissions. My guess is that the user that I was using only has permissions to view graphs. After looking at the GET request, I think I may have to give him permissions for the devices table.

Getting closer.
waverate
Posts: 4
Joined: Tue Jan 12, 2010 4:48 pm

Re: Blank Screen

Post by waverate »

Solved!

The final step for my non-admin user to gain access to the graphs was to give him the following permissions:

- console access,
- view graphs,
- update data sources,
- update graphs,
- and graph level permissions

This is from the iCacti page in the Apple Apps Store. I never noticed it before.

Everything looks great. The only issue I have is that there is no text on the on the bottom of the graphs showing the values. It would be nice to see current, min, max depending what the graph template says.
gascione
Posts: 15
Joined: Mon Jun 02, 2003 5:04 pm
Location: Princeton
Contact:

Re: Blank Screen

Post by gascione »

waverate wrote:Solved!

The final step for my non-admin user to gain access to the graphs was to give him the following permissions:

- console access,
- view graphs,
- update data sources,
- update graphs,
- and graph level permissions

This is from the iCacti page in the Apple Apps Store. I never noticed it before.

Everything looks great. The only issue I have is that there is no text on the on the bottom of the graphs showing the values. It would be nice to see current, min, max depending what the graph template says.
!!! Thank you, very much. I gave up on responses because I didn't get an Email that I requested to notify me whan a post came in. By chance I logged in today and saw your solution. And yes, that made it work!!

Nice to get my buck 99 working. I agree, would like to see the data at the bottom of the graph. But what I see is still nice.

GA
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

How's development going?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Post Reply

Who is online

Users browsing this forum: No registered users and 4 guests