Open-AudIT

What's on your network?
It is currently Tue Jul 17, 2018 6:28 am

All times are UTC + 10 hours




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
PostPosted: Fri Sep 25, 2009 2:20 am 
Offline
Newbie

Joined: Tue Sep 08, 2009 10:52 pm
Posts: 11
I am getting a error in the function ConvertSpecialField.

It looks like the error is from

Code:
case "net_speed":
return number_format($myrow[$field["name"]])." Mbps";


This is happening when I access hardware for an audited machine and look at the network adapters

The error is

Quote:
Warning: number_format() expects parameter 1 to be double, string given in C:\xampp\htdocs\openaudit\include_functions.php on line 216 Warning: number_format() expects parameter 1 to be double, string given in C:\xampp\htdocs\openaudit\include_functions.php on line 216


Here are the records in the database in CSV format

Code:
"net_id","net_mac_address","net_uuid","net_ip_enabled","net_index","net_service_name","net_description","net_dhcp_enabled","net_dhcp_server","net_dhcp_lease_obtained","net_dhcp_lease_expires","net_dns_host_name","net_dns_server","net_dns_server_2","net_dns_server_3","net_dns_domain","net_dns_domain_suffix","net_dns_domain_suffix_2","net_dns_domain_suffix_3","net_dns_domain_reg_enabled","net_dns_domain_full_reg_enabled","net_ip_address","net_ip_subnet","net_ip_address_2","net_ip_subnet_2","net_ip_address_3","net_ip_subnet_3","net_wins_primary","net_wins_secondary","net_wins_lmhosts_enabled","net_netbios_options","net_adapter_type","net_manufacturer","net_connection_id","net_connection_status","net_speed","net_gateway","net_gateway_metric","net_gateway_2","net_gateway_metric_2","net_gateway_3","net_gateway_metric_3","net_ip_metric","net_driver_provider","net_driver_version","net_driver_date","net_timestamp","net_first_timestamp"
"335","00:24:2C:7B:4C:D4","4C4C4544-004D-3110-8052-C8C04F314B31","True","1","BCM43XX","Dell Wireless 1397 WLAN Mini-Card - Packet Scheduler Miniport","True","10.203.63.254","20090710124250","20090710130250","crowsc67315","none","none","none","none","afi-ftsd.lan","ampf.com","ad.ampf.com","False","True","none","none","none","none","none","none","none","none","True","defaults","Ethernet 802.3","Broadcom","Wireless Network Connection","Media disconnected","unknown","none","none","none","none","none","none","1","Broadcom","4.170.77.3","20080321","20090924113123","20090909075139"
"337","00:24:E8:9B:4A:29","4C4C4544-004D-3110-8052-C8C04F314B31","True","12","e1yexpress","Intel(R) 82567LM Gigabit Network Connection - Packet Scheduler Miniport","True","10.147.13.200","20090924094356","20091002094356","crowsc67315","10.147.13.200","none","none","ampf.com","afi-ftsd.lan","ampf.com","ad.ampf.com","False","True","010.147.014.053","255.255.255.0","none","none","none","none","10.147.13.200","none","True","defaults","Ethernet 802.3","Intel","Local Area Connection","Connected","100","10.147.14.1","20","none","none","none","none","20","Intel","9.50.14.2","20080404","20090924113123","20090909075139"
"344","00:24:2B:FB:A1:B9","4C4C4544-004D-3110-8052-C8C04F314B31","True","26","BTWDNDIS","Bluetooth LAN Access Server Driver - Packet Scheduler Miniport","True","none","","","crowsc67315","none","none","none","none","afi-ftsd.lan","ampf.com","ad.ampf.com","False","True","none","none","none","none","none","none","none","none","True","defaults","Ethernet 802.3","Broadcom","Local Area Connection 4","Media disconnected","0","none","none","none","none","none","none","1","Broadcom","5.5.0.2300","20080227","20090924113123","20090909075139"
"346","08:00:27:00:40:B9","4C4C4544-004D-3110-8052-C8C04F314B31","True","38","VBoxNetAdp","VirtualBox Host-Only Ethernet Adapter - Packet Scheduler Miniport","False","none","","","crowsc67315","none","none","none","none","afi-ftsd.lan","ampf.com","ad.ampf.com","False","True","192.168.056.001","255.255.255.0","none","none","none","none","none","none","True","enabled","Ethernet 802.3","Sun Microsystems, Inc.","VirtualBox Host-Only Network","Connected","100","none","none","none","none","none","none","20","Sun Microsystems, Inc.","3.0.2.0","20090710","20090924113123","20090909075139"


Top
 Profile  
Reply with quote  
PostPosted: Wed Mar 17, 2010 8:46 am 
Offline
Newbie

Joined: Thu Feb 11, 2010 2:41 am
Posts: 19
change
return number_format($myrow[$field["name"]])." Mbps";

to
return number_format((double)$myrow[$field["name"]])." Mbps";

in file include_functions.php

This only affects php versions 5.3>

I upgraded to 5.3 today and noticed the same thing I was using 5.29 before and didn't have a problem. Anyhow if you see this error msg outside of network simply cast with type double. I had to change it under a video also haven't seen it anywhere else.


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.  [ 2 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:  
cron
Powered by phpBB® Forum Software © phpBB Group