Open-AudIT

What's on your network?
It is currently Wed Jan 24, 2018 7:25 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: Thu Feb 21, 2008 4:39 am 
Offline
Newbie

Joined: Thu Nov 02, 2006 3:23 am
Posts: 19
Location: Memphis
Pasted below is the setup for my currently working custom view. I'm trying to add the currently logged on user, type of monitor that is on the PC, name of primary optical drive... and I think that's it.

I'd also love it if there was a way to get FREE space on the entire hard disk... instead of just the value for each partition's free space... is this even possible?

The reason I need help is because I've been able to make it list the other items, but, for instance, if a laptop does not have a monitor attached, it doesn't even list the system AT ALL in this view... so I was doing something wrong. Any help would be greatly appreciated!


Code:
<?php

$query_array=array("headline"=>__("Custom Export"),
                   "sql"=>"SELECT * FROM `system`, `processor`, `hard_drive` WHERE system_uuid = hard_drive_uuid AND system_uuid = processor_uuid AND hard_drive_uuid = processor_uuid AND system_timestamp = processor_timestamp AND system_timestamp = hard_drive_timestamp AND processor_device_id = 'CPU0' AND hard_drive_index = 0",
                   "sort"=>"system_name",
                   "dir"=>"ASC",
                   "get"=>array("file"=>"system.php",
                                "title"=>__("Go to System"),
                                "var"=>array("pc"=>"%system_uuid",
                                             "view"=>"summary",
                                            ),
                               ),
                   "fields"=>array("10"=>array("name"=>"system_uuid",
                                               "head"=>__("UUID"),
                                               "show"=>"n",
                                              ),
                                   "20"=>array("name"=>"system_name",
                                               "head"=>__("Hostname"),
                                               "show"=>"y",
                                               "link"=>"y",
                                              ),
                                   "30"=>array("name"=>"net_ip_address",
                                               "head"=>__("IP"),
                                               "show"=>"y",
                                               "link"=>"y",
                                              ),
                                   "40"=>array("name"=>"system_system_type",
                                               "head"=>__("System Type"),
                                               "show"=>$show_type,
                                               "align"=>"center",
                                              ),
                                   "50"=>array("name"=>"processor_name",
                                               "head"=>__("CPU"),
                                               "show"=>"y",
                                              ),
                                   "60"=>array("name"=>"system_memory",
                                               "head"=>__("RAM"),
                                               "show"=>"y",
                                              ),
                                   "70"=>array("name"=>"hard_drive_size",
                                               "head"=>__("First Disk Space"),
                                               "show"=>"y",
                                              ),
                                   "90"=>array("name"=>"system_vendor",
                                               "head"=>__("Vendor"),
                                               "show"=>"y",
                                              ),
                                   "100"=>array("name"=>"system_model",
                                               "head"=>__("Model"),
                                               "show"=>"y",
                                              ),
                                   "110"=>array("name"=>"system_id_number",
                                               "head"=>__("Serial #"),
                                               "show"=>"y",
                                              ),
                                   "120"=>array("name"=>"system_os_name",
                                               "head"=>__("OS"),
                                               "show"=>$show_os,
                                              ),
     



                                  ),
                  );
?>


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2008 5:39 am 
Offline
Newbie

Joined: Thu Nov 02, 2006 3:23 am
Posts: 19
Location: Memphis
Can anyone offer me any PHP help for this? Is this the wrong sub-forum to ask in?


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2008 8:18 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
The request should really be in the support forum. Sorry I haven't had a chance to look at this. Been extremely busy.:(

_________________
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


Top
 Profile  
Reply with quote  
PostPosted: Sat Feb 23, 2008 8:19 am 
Offline
Moderator
User avatar

Joined: Tue Jan 25, 2005 3:09 am
Posts: 2140
Location: Scotland
The request should really be in the support forum. Sorry I haven't had a chance to look at this. Been extremely busy.:(

_________________
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


Top
 Profile  
Reply with quote  
PostPosted: Mon Feb 25, 2008 4:46 am 
Offline
Newbie

Joined: Thu Nov 02, 2006 3:23 am
Posts: 19
Location: Memphis
Thanks, I'll post it there!


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 3 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:  
Powered by phpBB® Forum Software © phpBB Group