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 8:32 pm

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Mon Feb 25, 2008 4:47 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 workstation 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,
),




),
);
?>
[/code]


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.  [ 1 post ] 

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