How are you running the audit script?
Modify the audit_windows.vbs parameter org_id = "" Place the target computer Schedule audit_windows.vbs
manage --> list orgs view the created orgs
When you say Modify the audit_windows.vbs parameter org_id = "", how are you doing that? Editing the script? In the menu → Discover → Scripts → Audit Windows script options? And then how is it being run on the target? Using Discovery? By a command?
manage --> list orgs view the created orgs
Modify audit_windows.vbs parameter org_id = ""
Target computer Schedule execution audit.bat run audit_windows.vbs
View orgs list
No matter which item, all devices will be displayed
This looks like a bug in the Orgs List template. Edit the file /usr/local/open-audit/code_igniter/application/views/theme-bootstrap/v_orgs_collection.php
Change line 63 from:
<td class="text-center"><a role="button" class="btn btn-sm btn-success" href="devices?org_id=<?php echo intval($item->id); ?>"><?php echo $item->attributes->device_count?></a></td>
to
<td class="text-center"><a role="button" class="btn btn-sm btn-success" href="devices?system.org_id=<?php echo intval($item->id); ?>"><?php echo $item->attributes->device_count?></a></td>
This will be included in the next release.
Change line 63 Can’t find related string
The following is 3.4.0 v_orgs_collection.php
------------------------------------------------------------------
<?php
# Copyright 2003-2015 Opmantek Limited (www.opmantek.com)
#
# ALL CODE MODIFICATIONS MUST BE SENT TO CODE@OPMANTEK.COM
#
# This file is part of Open-AudIT.
#
# Open-AudIT is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published
# by the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# Open-AudIT is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with Open-AudIT (most likely in a file named LICENSE).
# If not, see <http://www.gnu.org/licenses/>
#
# For further information on Open-AudIT or for a license other than AGPL please see
# www.opmantek.com or email contact@opmantek.com
#
# *****************************************************************************
/**
* @category View
* @package Open-AudIT
* @author Mark Unwin <marku@opmantek.com>
* @copyright 2014 Opmantek
* @license http://www.gnu.org/licenses/agpl-3.0.html aGPL v3
* @version GIT: Open-AudIT_3.4.0
* @link http://www.open-audit.org
*/
?>
<div class="panel panel-default">
<div class="panel-heading">
<?php include('include_collection_panel_header.php'); ?>
</div>
<div class="panel-body">
<?php include('include_collection_panel_body_links.php'); ?>
<?php if (!empty($this->response->data)) { ?>
<table class="table table-striped table-hover">
<thead>
<tr>
<th class="sorter-false col-xs-1 text-center"><?php echo __('View')?></th>
<th class="sorter-false col-xs-1 text-center"><?php echo __('Details')?></th>
<th><?php echo __('Name')?></th>
<th><?php echo __('Organisation')?></th>
<th><?php echo __('Description')?></th>
<?php if ($this->m_users->get_user_permission('', 'groups', 'd')) { ?>
<th class="sorter-false col-xs-1 text-center"><?php echo __('Delete')?></th>
<?php } ?>
</tr>
</thead>
<tbody>
<?php foreach ($this->response->data as $item) : ?>
<tr>
<!--<td class="text-center"><a class="btn btn-sm btn-success" href="devices?sub_resource=group&sub_resource_id=<?php echo intval($item->id); ?>"><span class="glyphicon glyphicon-play" aria-hidden="true"></span></a></td>-->
<td class="text-center"><a class="btn btn-sm btn-success" href="groups/<?php echo intval($item->id); ?>?action=execute"><span class="glyphicon glyphicon-play" aria-hidden="true"></span></a></td>
<td class="text-center"><a class="btn btn-sm btn-primary" href="<?php echo $item->links->self; ?>"><span class="glyphicon glyphicon-eye-open" aria-hidden="true"></span></a></td>
<?php refine('groups.name',$item->attributes->name); ?>
<?php refine('groups.org_id',$item->attributes->org_id,$item->attributes->{'orgs.name'}); ?>
<?php refine('groups.description',$item->attributes->description); ?>
<?php if ($this->m_users->get_user_permission('', 'groups', 'd')) { ?>
<td class="text-center"><button type="button" class="btn btn-sm btn-danger delete_link" data-id="<?php echo htmlspecialchars($item->id, REPLACE_FLAGS, CHARSET); ?>" data-name="<?php echo htmlspecialchars($item->attributes->name, REPLACE_FLAGS, CHARSET); ?>" aria-label="Left Align" ><span class="glyphicon glyphicon-trash" aria-hidden="true"></span></button></td>
<?php } ?>
</tr>
<?php endforeach; ?>
</tbody>
</table>
<?php } ?>
</div>
</div>
<?php
if ($this->config->config['rss_enable'] == 'y') {
include "include_newsfeed.php";
}
?>
That looks like it is the v_groups_collection.php file.
Please recheck.
v_groups_collection.php Please check the upload file v_groups_collection.php
v_groups_collection.php is the wrong file. It should be v_orgs_collection.php.
Corrected
thank
I'm not sure I understand your problem.
Version 3.4.0 manage --> list orgs add office area, modify audit_windows.vbs parameter org_id = ""
view orgs devices are not classified according to orgs=x, the data still shows all devices
list orgs cannot be grouped according to ID code, still showing all drives
Script has an org ID that defines each area, and each area runs a different script