Open-AudIT
https://www.open-audit.org/phpBB3/

[help][solved] Unable to submit data to server
https://www.open-audit.org/phpBB3/viewtopic.php?f=20&t=6193
Page 1 of 2

Author:  Jacko197 [ Tue Aug 13, 2013 9:23 pm ]
Post subject:  [help][solved] Unable to submit data to server

Hi, ive got the scripts working fine but they will not submit data to the server. I am also unable to manually submit as it comes up with page cannot be displayed after hitting submit.

Ive checked all permissions and everything seems fine, can someone please help?

Thanks

Graham

Author:  jpa [ Wed Aug 14, 2013 12:58 am ]
Post subject:  Re: Unable to submit data to server

Check the php error logs for anything obvious.

Author:  Jacko197 [ Wed Aug 14, 2013 1:22 am ]
Post subject:  Re: Unable to submit data to server

Ive already checked the log under \var\log\httpd\error_log and cant see anything obvious, that is the correct log?

Ive also just done an import via Admin > Discovery > Scan ad and that brought everything back into the database fine so that appears to be ok

Author:  jpa [ Wed Aug 14, 2013 2:54 am ]
Post subject:  Re: Unable to submit data to server

When you do a scan to file and manual submit of the data does the blank page have anything on it? View the page source to see it you've got anything.

Author:  Jacko197 [ Wed Aug 14, 2013 6:34 pm ]
Post subject:  Re: Unable to submit data to server

No, nothing is displayed and it says the connection was reset

Ive just put the old one back on and started a scan and that is working fine

Author:  Jacko197 [ Fri Aug 16, 2013 1:38 am ]
Post subject:  Re: Unable to submit data to server

When running the script on my local machine the following error is generated;

D:\audit_windows.vbs(6161, 2) msxml3.dll: The server returned an invalid or unrecognized response

Author:  jpa [ Fri Aug 16, 2013 7:38 am ]
Post subject:  Re: Unable to submit data to server

If you're not worried too much about security you could PM me your data file and I could try to load it here and troubleshoot.

Author:  Jacko197 [ Fri Aug 16, 2013 6:44 pm ]
Post subject:  Re: Unable to submit data to server

Sorry which file do you mean and i will send it over?

Author:  jpa [ Sat Aug 17, 2013 1:17 am ]
Post subject:  Re: Unable to submit data to server

I meant the audit file (computername-date.xml) created by the following command:
[code]cscript audit_windows.vbs create_file=y submit_online=n[/code]

What happens if you go to the "Add a computer" link under the Admin->Devices menu and just click the Submit button without any data? You should get back a page with the following:
[code]Back to input page
Front Page
Failed loading XML [/code]If you don't get that then you've got something more fundamental wrong. How did you install OpenAudit? On what platform?

Author:  Jacko197 [ Mon Aug 19, 2013 9:05 pm ]
Post subject:  Re: Unable to submit data to server

I will send over to you.

If i try without submitting then i do get that info returned.

I installed it manually on Centos which is where i have always ran it from

Tried to send you the file but it said its too big and zip files are blocked, can you PM me an email address?

Thanks for your help

Author:  jpa [ Wed Aug 21, 2013 1:04 am ]
Post subject:  Re: Unable to submit data to server

The smaller file you sent over submitted to my OA instance without error. I don't know what is happening if the same file won't submit on your system. What happens if you remove everything from the xml file except for the "<sys>" section like the following?

[code]
<?xml version="1.0" encoding="UTF-8"?>
<system>
<sys>
<timestamp>2013-08-20 10:21:45</timestamp>
<uuid>XXXXXXXX-BBBE-XXXX-XXXX-xxxxxxxxxxxx</uuid>
<hostname>xp-test</hostname>
<domain>example.com</domain>
<description></description>
<type>computer</type>
<icon>windows_xp</icon>
<os_group>Windows</os_group>
<os_family>Windows XP</os_family>
<os_name>Microsoft Windows XP Professional</os_name>
<os_version>5.1.2600</os_version>
<serial>XXXXXXX</serial>
<model>Test Model</model>
<manufacturer>IBM</manufacturer>
<uptime>431099</uptime>
<form_factor>Other</form_factor>
<pc_os_bit>32</pc_os_bit>
<pc_memory>1048576</pc_memory>
<pc_num_processor>2</pc_num_processor>
<pc_date_os_installation>2011-06-14</pc_date_os_installation>
<man_org_id></man_org_id>
</sys>
</system>
[/code]

Author:  Jacko197 [ Thu Aug 22, 2013 1:46 am ]
Post subject:  Re: Unable to submit data to server

Exactly the same problem.

I have checked all the permissions, deleted and re-added the /var/www/html/oav2 and /usr/local/open-audit/code_igniter folders and recreated the database.

The only sections i then need to modify are below, is that correct?

' submit the audit to the OAv2 server
submit_online = "y"

' the address of the OAv2 server "submit" page
url = "http://194.70.137.50/oav2/index.php/system/"

Mind you, that still doesnt explain why i cant submit it manually

Thanks

Author:  jpa [ Thu Aug 22, 2013 2:00 am ]
Post subject:  Re: Unable to submit data to server

I'm out of ideas.

Author:  Mark [ Thu Aug 22, 2013 11:00 am ]
Post subject:  Re: Unable to submit data to server

This doesn't look like an audit script issue. It's something wrong on the server side. The fact that you cannot submit manually tells me this. And your audit result does work when used by JPA, so it's valid. It has to be server side. This means it could be a server config (apache, php) issue or a program config (Open-AudIT) issue. I'm not aware of any code that would "stop" you submitting an audit, so I'm thinking it's Apache or PHP related. What version of CentOS are you running?

In your PHP config file (on Ubuntu this is in /etc/php5/apache/php.ini on CentOS I think it's /etc/php.ini) alter the variables like below:
[code]error_reporting = E_ALL
display_errors = On
log_errors = On[/code]
This should help to reveal any errors.

Author:  Jacko197 [ Thu Aug 22, 2013 7:28 pm ]
Post subject:  Re: Unable to submit data to server

its running on 5.9 with all the latest updates

Found an error thats happening;

child pid XXXX exit signal Segmentation fault (11)” in apache error.log

So im having a look on google now as to whats causing it

Page 1 of 2 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/