Open-AudIT
https://www.open-audit.org/phpBB3/

Need help with a custom view!
https://www.open-audit.org/phpBB3/viewtopic.php?f=5&t=2647
Page 1 of 1

Author:  thebeaz [ Thu Feb 21, 2008 4:39 am ]
Post subject:  Need help with a custom view!

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,
),




),
);
?>
[/code]

Author:  thebeaz [ Sat Feb 23, 2008 5:39 am ]
Post subject:  Re: Need help with a custom view!

Can anyone offer me any PHP help for this? Is this the wrong sub-forum to ask in?

Author:  A_Hull [ Sat Feb 23, 2008 8:18 am ]
Post subject:  Re: Need help with a custom view!

The request should really be in the support forum. Sorry I haven't had a chance to look at this. Been extremely busy.:(

Author:  A_Hull [ Sat Feb 23, 2008 8:19 am ]
Post subject:  Re: Need help with a custom view!

The request should really be in the support forum. Sorry I haven't had a chance to look at this. Been extremely busy.:(

Author:  thebeaz [ Mon Feb 25, 2008 4:46 am ]
Post subject:  Re: Need help with a custom view!

Thanks, I'll post it there!

Page 1 of 1 All times are UTC + 10 hours
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/