Registrations to Open-AudIT forums are now closed. To ask any new questions please visit Opmantek Community Questions.

Open-AudIT

What's on your network?
It is currently Thu Mar 28, 2024 7:34 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 
Author Message
PostPosted: Wed Jun 28, 2017 6:41 pm 
Offline
Newbie

Joined: Thu Oct 15, 2015 9:15 pm
Posts: 19
On V2 I added a VMware esxi hypervisor through snmp, then I added a Centos virtual machine through audit script.
On hypervisor details if I go on Vm settings I can view the virtual machine added with correct guest system id but the machine name don't appear and the link on guest system id button is wrong and references the hypervisor (http://IP_ADDRESS/open-audit/index.php/devices/87#).
On attachment the screen shot.

Thank


Attachments:
vm.png
vm.png [ 27.51 KiB | Viewed 7100 times ]
Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 29, 2017 9:13 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
Confirmed. Will post a patch ASAP.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 29, 2017 9:18 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
The link on the page can be fixed by editing /open-audit/code_igniter/application/views/theme-bootstrap/v_devices_read.php
Line 1453. Change from:
[code] echo " <td class=\"text-center\"><a href=\"#\" class=\"btn btn-sm btn-success\">" . $value . "</a></td>\n";[/code]
to
[code] echo " <td class=\"text-center\"><a href=\"" . base_url() . "index.php/devices/" . $value . "\" class=\"btn btn-sm btn-success\">" . $value . "</a></td>\n";[/code]

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Thu Jun 29, 2017 9:27 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
To fix the name being populated, edit the file /open-audit/code_igniter/application/models/m_device.php and edit lines 648 -> 650 to go from:
[code] $sql = "UPDATE vm SET guest_system_id = ?, icon = ? WHERE id = ?";
$sql = $this->clean_sql($sql);
$data = array($details->id, "$details->icon", "$temp_vm_id);[/code]
to
[code] $sql = "UPDATE vm SET guest_system_id = ?, icon = ?, name = ? WHERE id = ?";
$sql = $this->clean_sql($sql);
$data = array($details->id, "$details->icon", "$details->name", "$temp_vm_id");[/code]


And edit lines 964 -> 966 to go from
[code] $sql = "UPDATE vm SET guest_system_id = ?, icon = ? WHERE id = ?";
$sql = $this->clean_sql($sql);
$data = array($details->id, "$details->icon", "$temp_vm_id");[/code]

to
[code] $sql = "UPDATE vm SET guest_system_id = ?, icon = ?, name = ? WHERE id = ?";
$sql = $this->clean_sql($sql);
$data = array($details->id, "$details->icon", "$details->name", "$temp_vm_id");[/code]

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
PostPosted: Fri Jun 30, 2017 11:06 am 
Offline
Site Admin
User avatar

Joined: Mon Jun 07, 2004 11:48 am
Posts: 1964
Location: Brisbane, Australia
2017-06-30, New build uploaded (same version number) containing this fix.
Download and install and you will have these fixed files.

_________________
Support and Development hours available from [url=https://opmantek.com]Opmantek[/url].
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group