Open-AudIT

main page not working properly

Questions on setup and running Open-AudIT

main page not working properly

Postby dougsalah » Tue Jan 19, 2010 10:01 am

I have OpenAudit installed on a couple test machines. One of the machines (Ubuntu Server 9.10) seems to have a problem. The main page never shows totals for Systems Discovered in the last 3 Days, Other Items Discovered in the last 3 Days, etc.. and the titles are not click-able. The site collects data and I am able to use the side menus to see data. It seems to be a dependency or PHP setting problem but I am not sure.

Any help would be appreciated.

Doug
dougsalah
Newbie
 
Posts: 10
Joined: Tue Jan 19, 2010 9:49 am

Re: main page not working properly

Postby A_Hull » Tue Jan 19, 2010 7:42 pm

Very Odd!

I am using Ubuntu 9.10 for my development machine (binned XP on the same machine as it was annoyingly slow and prone to crash in a typically Windoze way) I installed the Workstation version rather than the Server version, 'cos I also use the machine as a development/editing box, so I installed a whole lot of other toys.

Ubunto works perfectly for me, I presume you used the stanard repos for apache, MySQL PHP etc.
Andrew

OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory
User avatar
A_Hull
Moderator
 
Posts: 2400
Joined: Tue Jan 25, 2005 3:09 am
Location: Scotland

Re: main page not working properly

Postby dougsalah » Sat Jan 23, 2010 8:49 am

Some more info to add here and I hope someone can start me in the right direction.

Rebuilt the server:
1-Ubuntu Server 9.10 using LAMP and OpenSSH options
2-Installed OA SVN trunk
3-used audit.vbs to audit domain

AT THIS POINT EVERYTHING WORKS :)

4-installed phpMyAdmin to backup mySQL and other SQL tasks not much of a DBA
5-ran NMAP_LINUX.sh script
6-no errors
7-modified NAMP script
8-ran with errors

Went to main page and the links and totals don't work again???? :(
Wish I had checked the main page between steps 4 &5 and after step 6. Now I am not sure what broke things.

new script
________________________________________
#!/bin/bash

for ((a=1; a <= 254 ; a++))
do
echo "$1$a"
nmap_file="nmap_file.txt"
nmap -v -O -oN $nmap_file $1$a
nmap_output='cat $nmap_file'
wget -q --post-data="submit=submit&add=$nmap_output" http://172.20.221.21/admin$
rm "$nmap_file"
rm "admin_nmap_input.php"
done
___________________________________________

tried to make it use a command line variable for the subnet.

any ideas?

Doug



Wish I had checked
dougsalah
Newbie
 
Posts: 10
Joined: Tue Jan 19, 2010 9:49 am

Re: main page not working properly

Postby A_Hull » Sat Jan 23, 2010 9:23 pm

What browser are you using, and are you using a proxy? Sounds like something is caching the pages (badly)
Andrew

OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory
User avatar
A_Hull
Moderator
 
Posts: 2400
Joined: Tue Jan 25, 2005 3:09 am
Location: Scotland

Re: main page not working properly

Postby dougsalah » Sat Jan 23, 2010 10:15 pm

i have tried both IE and Firefox from multiple machines. No proxy. It really seems like something on the backend got messed up???

Doug
dougsalah
Newbie
 
Posts: 10
Joined: Tue Jan 19, 2010 9:49 am

Re: main page not working properly

Postby A_Hull » Sun Jan 24, 2010 11:56 am

Do you see any errors on the page? How is Apache configured? What happens if you restart Apache?
What do you see if you look at http://{youroaserver}/openaudit/php.php
Can you see the page displayed correctly when you view it from the local host?
i.e. on the web server box, view http://localhost/openaudit

Are you using http or https?

Post back the result of php.php if you are unsure what you are looking for.
Andrew

OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory
User avatar
A_Hull
Moderator
 
Posts: 2400
Joined: Tue Jan 25, 2005 3:09 am
Location: Scotland

Re: main page not working properly

Postby hsmalley » Thu Mar 11, 2010 1:16 am

I am getting the same kind of problems. I just had to redo my OA server. I installed Ubuntu Server 9.10 LAMP role. It's a fresh install and I updated OA from SVN and imported my database backup into it. Although it was doing things very similar to this before I had to redo my box. I've attached the output from my php.php.
Attachments
phpinfo.7z
php.php file
(21.91 KiB) Downloaded 8 times
hsmalley
Newbie
 
Posts: 24
Joined: Wed Jan 30, 2008 6:17 am

Re: main page not working properly

Postby hsmalley » Thu Mar 11, 2010 1:42 am

Here is the output from IE errors too.

Code: Select all
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3)
Timestamp: Wed, 10 Mar 2010 15:39:57 UTC


Message: 'HttpRequestor' is undefined
Line: 136
Char: 1
Code: 0
URI: http://openaudit/


Message: 'DiscoveredSystemsXml' is null or not an object
Line: 171
Char: 1
Code: 0
URI: http://openaudit/


Message: Object expected
Line: 19
Char: 1
Code: 0
URI: http://openaudit/

Code: Select all
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3)
Timestamp: Wed, 10 Mar 2010 15:41:02 UTC


Message: 'HttpRequestor' is undefined
Line: 136
Char: 1
Code: 0
URI: http://openaudit/


Message: 'DiscoveredSystemsXml' is null or not an object
Line: 171
Char: 1
Code: 0
URI: http://openaudit/


Message: Object expected
Line: 19
Char: 1
Code: 0
URI: http://openaudit/


Code: Select all
Webpage error details

User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; WOW64; Trident/4.0; User-agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; http://bsalsa.com) ; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; OfficeLiveConnector.1.4; OfficeLivePatch.1.3; InfoPath.3)
Timestamp: Wed, 10 Mar 2010 15:41:25 UTC


Message: 'HttpRequestor' is undefined
Line: 136
Char: 1
Code: 0
URI: http://openaudit/


Message: 'DiscoveredSystemsXml' is null or not an object
Line: 171
Char: 1
Code: 0
URI: http://openaudit/


Message: Object expected
Line: 19
Char: 1
Code: 0
URI: http://openaudit/

hsmalley
Newbie
 
Posts: 24
Joined: Wed Jan 30, 2008 6:17 am

Re: main page not working properly

Postby A_Hull » Thu Mar 11, 2010 12:19 pm

Andrew

OA Server: Windows XP/ XAMPP, Mandriva/Apache, Ubuntu
Auditing: 300+ Wstns, 20+ Srvrs, Thin clients, Linux boxes, Routers, etc
OS's: Windows XP , W2K Srvr, W2K3 Srvr, W2K8, Vista, Windows 7, Linuxes (and a Mac at home)
LDAP: Active Directory
User avatar
A_Hull
Moderator
 
Posts: 2400
Joined: Tue Jan 25, 2005 3:09 am
Location: Scotland

Re: main page not working properly

Postby hsmalley » Sat Mar 13, 2010 3:14 am

It could be. I wasn't getting updates before I had to redo the server.

Although I do not know if this helps but when I go into Admin -> Config. I can not get to any of the other settings. I can only get to the general page.
hsmalley
Newbie
 
Posts: 24
Joined: Wed Jan 30, 2008 6:17 am

Re: main page not working properly

Postby hsmalley » Wed Mar 17, 2010 4:51 am

Looks like it was phpmyadmin causing the problem. Once I purged it off of the system everything started working just like it should. Very werid.....
hsmalley
Newbie
 
Posts: 24
Joined: Wed Jan 30, 2008 6:17 am


Return to Support

Who is online

Users browsing this forum: No registered users and 1 guest