Open-AudIT

What's on your network?
It is currently Wed Jan 24, 2018 9:34 pm

All times are UTC + 10 hours




Post new topic Reply to topic  [ 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 567 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: 1935
Location: Brisbane, Australia
Confirmed. Will post a patch ASAP.

_________________
Support and Development hours available from Opmantek.
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: 1935
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";

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";

_________________
Support and Development hours available from Opmantek.
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: 1935
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);

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");



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");


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");

_________________
Support and Development hours available from Opmantek.
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: 1935
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 Opmantek.
Please consider a purchase to help make Open-AudIT better for everyone.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC + 10 hours


Who is online

Users browsing this forum: No registered users and 5 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