opennetadmin / ona

OpenNetAdmin IP Address Management (IPAM) system
opennetadmin.com
GNU General Public License v2.0
137 stars 35 forks source link

VMWare plugin does not work with 5.x #52

Closed rdorman closed 6 years ago

rdorman commented 10 years ago

When pointing the vmware stats plugin at a 5.x vcenter I recieve the following (truncated) error

" PHP Fatal error: Uncaught SoapFault exception: [ServerFaultCode] Attribute name xsi:type uses an undefined namespace prefix xsi\n\nwhile parsing MoRef for ManagedObject of

rdorman commented 10 years ago

Apache Error Log

[Thu Sep 19 12:36:19 2013] [error] [client 10.x.x.x] PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/winc/list_records.inc.php on line 470, referer: http://ona.domain.net/
[Thu Sep 19 12:36:19 2013] [error] [client 10.x.x.x] PHP Warning:  strtotime(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/winc/list_records.inc.php on line 472, referer: http://ona.domain.net/
 [client 10.x.x.x] PHP Fatal error:  Uncaught SoapFault exception: [ServerFaultCode] Attribute name xsi:type uses an undefined namespace prefix xsi\n\nwhile parsing MoRef for ManagedObject of type vmodl.ManagedObject\nat line 2, column 314\n\nwhile parsing call information for method RetrieveServiceContent\nat line 2, column 286\n\nwhile parsing SOAP body\nat line 2, column 271\n\nwhile parsing SOAP envelope\nat line 2, column 0\n\nwhile parsing HTTP request for method retrieveContent\non object of type vim.ServiceInstance\nat line 1, column 0 in /usr/local/ona/www/local/plugins/vmware_stats/vmwaresdk.php:39\nStack trace:\n#0 /usr/local/ona/www/local/plugins/vmware_stats/vmwaresdk.php(39): SoapClient->__soapCall('RetrieveService...', Array)\n#1 /usr/local/ona/www/local/plugins/vmware_stats/vmwaresdk.php(27): vmware_sdk->retrieve_service_content()\n#2 /usr/local/ona/www/local/plugins/vmware_stats/wspl_item.inc.php(85): vmware_sdk->__construct('https://us-vcen...', 'US-VCENTER\\admi...', '$admin_password')\n#3 /usr/local/ona/www/include/xajax_webwin/webwin.inc.php(181): ws_d in /usr/local/ona/www/local/plugins/vmware_stats/vmwaresdk.php on line 39, referer: http://ona.domain.net/
: It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Warning:  date(): It is not safe to rely on the system's timezone settings. You are *required* to use the date.timezone setting or the date_default_timezone_set() function. In case you used any of those methods and you are still getting this warning, you most likely misspelled the timezone identifier. We selected 'America/New_York' for 'EDT/-4.0/DST' instead in /usr/local/ona/www/include/functions_general.inc.php on line 146, referer: http://ona.domain.net/
[Thu Sep 19 12:38:42 2013] [error] [client 10.x.x.x] PHP Notice:  Undefined index: log_to_db in /usr/local/ona/www/include/functions_general.inc.php on line 62, referer: http://ona.domain.net/
rdorman commented 10 years ago

ona debug log

Sep 19 12:35:58 UNKNOWN_SVR_NAME anonymous@10.x.x.x: [DEFAULT] DEBUG => db_get_record() Returning record 1 of 1
Sep 19 12:35:58 UNKNOWN_SVR_NAME anonymous@10.x.x.x: [DEFAULT] DEBUG => db_update_record($dbh, sessions, $where, $insert) called
Sep 19 12:35:58 UNKNOWN_SVR_NAME anonymous@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Running query: UPDATE sessions SET expiry = '1379781358' WHERE `sesskey` = 'vutpti98jtp03ib555gkig0uf0' AND `expiry` > 1379608558
Sep 19 12:35:58 UNKNOWN_SVR_NAME anonymous@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Query updated 1 rows
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => webwin_submit() Window: /local/plugins/vmware_stats/wspl_item.inc.php Function: display_stats Form: Array
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_insert_record($dbh, sessions, $insert) called
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_insert_record() Running query: INSERT INTO sessions ( sesskey, expiry, sessvalue ) VALUES ('vutpti98jtp03ib555gkig0uf0', '1379781358', 'ona|a:9:{s:10:\"work_space\";a:1:{s:7:\"history\";a:7:{i:0;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:93:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>172.21.0.0\', \'display\')\";}i:1;a:3:{s:5:\"title\";s:11:\"NYC-ROUTING\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>29\', \'display\')\";}i:2;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:95:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>10.x.x.x.0\', \'display\')\";}i:3;a:3:{s:5:\"title\";s:10:\"management\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>40\', \'display\')\";}i:4;a:3:{s:5:\"title\";s:11:\"NYC-4FLDATA\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>36\', \'display\')\";}i:5;a:3:{s:5:\"title\";s:10:\"NYC-LEGACY\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>28\', \'display\')\";}i:6;a:3:{s:5:\"title\";s:5:\"docs5\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>54\', \'display\')\";}}}s:22:\"list_hosts_filter_form\";a:2:{s:3:\"tab\";s:5:\"hosts\";s:5:\"hosts\";a:2:{s:4:\"page\";s:1:\"2\";s:6:\"filter\";s:0:\"\";}}s:26:\"search_results_filter_form\";a:5:{s:10:\"content_id\";s:19:\"search_results_list\";s:3:\"tab\";s:5:\"hosts\";s:11:\"vlan_campus\";a:3:{s:1:\"q\";a:2:{s:14:\"search_form_id\";s:23:\"vlan_campus_search_form\";s:8:\"all_flag\";s:1:\"1\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:7:\"subnets\";a:3:{s:1:\"q\";a:1:{s:14:\"search_form_id\";s:18:\"subnet_search_form\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:5:\"hosts\";a:3:{s:1:\"q\";a:15:{s:14:\"search_form_id\";s:16:\"host_search_form\";s:8:\"hostname\";s:0:\"\";s:6:\"domain\";s:0:\"\";s:3:\"mac\";s:0:\"\";s:2:\"ip\";s:0:\"\";s:7:\"ip_thru\";s:0:\"\";s:5:\"notes\";s:0:\"\";s:8:\"location\";s:0:\"\";s:21:\"custom_attribute_type\";s:0:\"\";s:8:\"ca_value\";s:0:\"\";s:5:\"model\";s:0:\"\";s:4:\"role\";s:16:\"baremetal-server\";s:12:\"manufacturer\";s:0:\"\";s:5:\"reset\";s:5:\"Clear\";s:6:\"search\";s:6:\"Search\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:22:\"list_vlans_filter_form\";a:2:{s:3:\"tab\";s:5:\"vlans\";s:5:\"vlans\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_subnets_filter_form\";a:2:{s:3:\"tab\";s:7:\"subnets\";s:7:\"subnets\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_records_filter_form\";a:2:{s:3:\"tab\";s:7:\"records\";s:7:\"records\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:27:\"list_interfaces_filter_form\";a:2:{s:3:\"tab\";s:10:\"interfaces\";s:10:\"interfaces\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:28:\"list_dhcp_server_filter_form\";a:2:{s:3:\"tab\";s:11:\"dhcp_server\";s:11:\"dhcp_server\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:4:\"auth\";a:2:{s:4:\"user\";a:7:{s:2:\"id\";s:1:\"2\";s:8:\"username\";s:5:\"$user\";s:8:\"password\";s:32:\"21232f297a57a5a743894a0e4a801fc3\";s:5:\"level\";s:2:\"99\";s:5:\"ctime\";s:19:\"2007-10-30 03:00:17\";s:5:\"atime\";s:19:\"2013-09-18 19:03:34\";s:4:\"grps\";a:1:{s:5:\"$user\";s:2:\"18\";}}s:5:\"perms\";a:24:{s:14:\"dns_record_add\";s:1:\"1\";s:17:\"dns_record_modify\";s:1:\"2\";s:14:\"dns_record_del\";s:1:\"3\";s:8:\"host_add\";s:1:\"4\";s:11:\"host_modify\";s:1:\"5\";s:8:\"host_del\";s:1:\"6\";s:10:\"user_admin\";s:1:\"7\";s:10:\"subnet_add\";s:1:\"8\";s:13:\"subnet_modify\";s:1:\"9\";s:10:\"subnet_del\";s:2:\"10\";s:16:\"interface_modify\";s:2:\"11\";s:13:\"interface_del\";s:2:\"12\";s:8:\"advanced\";s:2:\"13\";s:17:\"host_config_admin\";s:2:\"14\";s:14:\"template_admin\";s:2:\"15\";s:8:\"vlan_add\";s:2:\"16\";s:8:\"vlan_del\";s:2:\"17\";s:11:\"vlan_modify\";s:2:\"18\";s:12:\"location_del\";s:6:\"100019\";s:12:\"location_add\";s:6:\"100020\";s:7:\"ona_sql\";s:6:\"100021\";s:20:\"custom_attribute_add\";s:6:\"100022\";s:20:\"custom_attribute_del\";s:6:\"100023\";s:23:\"custom_attribute_modify\";s:6:\"100024\";}}}window_position|a:14:{s:13:\"edit_subnet_x\";s:3:\"360\";s:13:\"edit_subnet_y\";s:3:\"109\";s:23:\"app_device_model_list_x\";s:3:\"367\";s:23:\"app_device_model_list_y\";s:3:\"330\";s:22:\"app_device_type_edit_x\";s:3:\"366\";s:22:\"app_device_type_edit_y\";s:3:\"341\";s:13:\"edit_record_x\";s:3:\"584\";s:13:\"edit_record_y\";s:3:\"286\";s:19:\"rack_maint-master_x\";s:2:\"98\";s:19:\"rack_maint-master_y\";s:3:\"173\";s:17:\"app_plugin_list_x\";s:3:\"329\";s:17:\"app_plugin_list_y\";s:3:\"204\";s:23:\"app_device_model_edit_x\";s:3:\"176\";s:23:\"app_device_model_edit_y\";s:3:\"106\";}' )
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record($dbh, sessions, $where, $insert) called
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Running query: UPDATE sessions SET expiry = '1379781358', sessvalue = 'ona|a:9:{s:10:\"work_space\";a:1:{s:7:\"history\";a:7:{i:0;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:93:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>172.21.0.0\', \'display\')\";}i:1;a:3:{s:5:\"title\";s:11:\"NYC-ROUTING\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>29\', \'display\')\";}i:2;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:95:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>10.x.x.x.0\', \'display\')\";}i:3;a:3:{s:5:\"title\";s:10:\"management\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>40\', \'display\')\";}i:4;a:3:{s:5:\"title\";s:11:\"NYC-4FLDATA\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>36\', \'display\')\";}i:5;a:3:{s:5:\"title\";s:10:\"NYC-LEGACY\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>28\', \'display\')\";}i:6;a:3:{s:5:\"title\";s:5:\"docs5\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>54\', \'display\')\";}}}s:22:\"list_hosts_filter_form\";a:2:{s:3:\"tab\";s:5:\"hosts\";s:5:\"hosts\";a:2:{s:4:\"page\";s:1:\"2\";s:6:\"filter\";s:0:\"\";}}s:26:\"search_results_filter_form\";a:5:{s:10:\"content_id\";s:19:\"search_results_list\";s:3:\"tab\";s:5:\"hosts\";s:11:\"vlan_campus\";a:3:{s:1:\"q\";a:2:{s:14:\"search_form_id\";s:23:\"vlan_campus_search_form\";s:8:\"all_flag\";s:1:\"1\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:7:\"subnets\";a:3:{s:1:\"q\";a:1:{s:14:\"search_form_id\";s:18:\"subnet_search_form\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:5:\"hosts\";a:3:{s:1:\"q\";a:15:{s:14:\"search_form_id\";s:16:\"host_search_form\";s:8:\"hostname\";s:0:\"\";s:6:\"domain\";s:0:\"\";s:3:\"mac\";s:0:\"\";s:2:\"ip\";s:0:\"\";s:7:\"ip_thru\";s:0:\"\";s:5:\"notes\";s:0:\"\";s:8:\"location\";s:0:\"\";s:21:\"custom_attribute_type\";s:0:\"\";s:8:\"ca_value\";s:0:\"\";s:5:\"model\";s:0:\"\";s:4:\"role\";s:16:\"baremetal-server\";s:12:\"manufacturer\";s:0:\"\";s:5:\"reset\";s:5:\"Clear\";s:6:\"search\";s:6:\"Search\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:22:\"list_vlans_filter_form\";a:2:{s:3:\"tab\";s:5:\"vlans\";s:5:\"vlans\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_subnets_filter_form\";a:2:{s:3:\"tab\";s:7:\"subnets\";s:7:\"subnets\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_records_filter_form\";a:2:{s:3:\"tab\";s:7:\"records\";s:7:\"records\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:27:\"list_interfaces_filter_form\";a:2:{s:3:\"tab\";s:10:\"interfaces\";s:10:\"interfaces\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:28:\"list_dhcp_server_filter_form\";a:2:{s:3:\"tab\";s:11:\"dhcp_server\";s:11:\"dhcp_server\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:4:\"auth\";a:2:{s:4:\"user\";a:7:{s:2:\"id\";s:1:\"2\";s:8:\"username\";s:5:\"$user\";s:8:\"password\";s:32:\"21232f297a57a5a743894a0e4a801fc3\";s:5:\"level\";s:2:\"99\";s:5:\"ctime\";s:19:\"2007-10-30 03:00:17\";s:5:\"atime\";s:19:\"2013-09-18 19:03:34\";s:4:\"grps\";a:1:{s:5:\"$user\";s:2:\"18\";}}s:5:\"perms\";a:24:{s:14:\"dns_record_add\";s:1:\"1\";s:17:\"dns_record_modify\";s:1:\"2\";s:14:\"dns_record_del\";s:1:\"3\";s:8:\"host_add\";s:1:\"4\";s:11:\"host_modify\";s:1:\"5\";s:8:\"host_del\";s:1:\"6\";s:10:\"user_admin\";s:1:\"7\";s:10:\"subnet_add\";s:1:\"8\";s:13:\"subnet_modify\";s:1:\"9\";s:10:\"subnet_del\";s:2:\"10\";s:16:\"interface_modify\";s:2:\"11\";s:13:\"interface_del\";s:2:\"12\";s:8:\"advanced\";s:2:\"13\";s:17:\"host_config_admin\";s:2:\"14\";s:14:\"template_admin\";s:2:\"15\";s:8:\"vlan_add\";s:2:\"16\";s:8:\"vlan_del\";s:2:\"17\";s:11:\"vlan_modify\";s:2:\"18\";s:12:\"location_del\";s:6:\"100019\";s:12:\"location_add\";s:6:\"100020\";s:7:\"ona_sql\";s:6:\"100021\";s:20:\"custom_attribute_add\";s:6:\"100022\";s:20:\"custom_attribute_del\";s:6:\"100023\";s:23:\"custom_attribute_modify\";s:6:\"100024\";}}}window_position|a:14:{s:13:\"edit_subnet_x\";s:3:\"360\";s:13:\"edit_subnet_y\";s:3:\"109\";s:23:\"app_device_model_list_x\";s:3:\"367\";s:23:\"app_device_model_list_y\";s:3:\"330\";s:22:\"app_device_type_edit_x\";s:3:\"366\";s:22:\"app_device_type_edit_y\";s:3:\"341\";s:13:\"edit_record_x\";s:3:\"584\";s:13:\"edit_record_y\";s:3:\"286\";s:19:\"rack_maint-master_x\";s:2:\"98\";s:19:\"rack_maint-master_y\";s:3:\"173\";s:17:\"app_plugin_list_x\";s:3:\"329\";s:17:\"app_plugin_list_y\";s:3:\"204\";s:23:\"app_device_model_edit_x\";s:3:\"176\";s:23:\"app_device_model_edit_y\";s:3:\"106\";}' WHERE sesskey = 'vutpti98jtp03ib555gkig0uf0'
Sep 19 12:35:58 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Query updated 0 rows
[root@managment log]# tail ona.log
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_get_record() running query: SELECT * FROM domains WHERE id = '14'
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_get_record() Returning record 4 of 1
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => auth() User[$user] has the dns_record_modify permission
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => auth() User[$user] has the dns_record_modify permission
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => auth() User[$user] has the dns_record_del permission
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_insert_record($dbh, sessions, $insert) called
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_insert_record() Running query: INSERT INTO sessions ( sesskey, expiry, sessvalue ) VALUES ('vutpti98jtp03ib555gkig0uf0', '1379781379', 'ona|a:9:{s:10:\"work_space\";a:1:{s:7:\"history\";a:7:{i:0;a:3:{s:5:\"title\";s:11:\"NYC-ROUTING\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>29\', \'display\')\";}i:1;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:95:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>10.x.x.x.0\', \'display\')\";}i:2;a:3:{s:5:\"title\";s:10:\"management\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>40\', \'display\')\";}i:3;a:3:{s:5:\"title\";s:11:\"NYC-4FLDATA\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>36\', \'display\')\";}i:4;a:3:{s:5:\"title\";s:5:\"docs5\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>54\', \'display\')\";}i:5;a:3:{s:5:\"title\";s:10:\"NYC-LEGACY\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>28\', \'display\')\";}i:6;a:3:{s:5:\"title\";s:12:\"analytics-vm\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>50\', \'display\')\";}}}s:22:\"list_hosts_filter_form\";a:2:{s:3:\"tab\";s:5:\"hosts\";s:5:\"hosts\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:26:\"search_results_filter_form\";a:5:{s:10:\"content_id\";s:19:\"search_results_list\";s:3:\"tab\";s:5:\"hosts\";s:11:\"vlan_campus\";a:3:{s:1:\"q\";a:2:{s:14:\"search_form_id\";s:23:\"vlan_campus_search_form\";s:8:\"all_flag\";s:1:\"1\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:7:\"subnets\";a:3:{s:1:\"q\";a:1:{s:14:\"search_form_id\";s:18:\"subnet_search_form\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:5:\"hosts\";a:3:{s:1:\"q\";a:15:{s:14:\"search_form_id\";s:16:\"host_search_form\";s:8:\"hostname\";s:0:\"\";s:6:\"domain\";s:0:\"\";s:3:\"mac\";s:0:\"\";s:2:\"ip\";s:0:\"\";s:7:\"ip_thru\";s:0:\"\";s:5:\"notes\";s:0:\"\";s:8:\"location\";s:0:\"\";s:21:\"custom_attribute_type\";s:0:\"\";s:8:\"ca_value\";s:0:\"\";s:5:\"model\";s:0:\"\";s:4:\"role\";s:16:\"baremetal-server\";s:12:\"manufacturer\";s:0:\"\";s:5:\"reset\";s:5:\"Clear\";s:6:\"search\";s:6:\"Search\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:22:\"list_vlans_filter_form\";a:2:{s:3:\"tab\";s:5:\"vlans\";s:5:\"vlans\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_subnets_filter_form\";a:2:{s:3:\"tab\";s:7:\"subnets\";s:7:\"subnets\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_records_filter_form\";a:2:{s:3:\"tab\";s:7:\"records\";s:7:\"records\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:27:\"list_interfaces_filter_form\";a:2:{s:3:\"tab\";s:10:\"interfaces\";s:10:\"interfaces\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:28:\"list_dhcp_server_filter_form\";a:2:{s:3:\"tab\";s:11:\"dhcp_server\";s:11:\"dhcp_server\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:4:\"auth\";a:2:{s:4:\"user\";a:7:{s:2:\"id\";s:1:\"2\";s:8:\"username\";s:5:\"$user\";s:8:\"password\";s:32:\"21232f297a57a5a743894a0e4a801fc3\";s:5:\"level\";s:2:\"99\";s:5:\"ctime\";s:19:\"2007-10-30 03:00:17\";s:5:\"atime\";s:19:\"2013-09-18 19:03:34\";s:4:\"grps\";a:1:{s:5:\"$user\";s:2:\"18\";}}s:5:\"perms\";a:24:{s:14:\"dns_record_add\";s:1:\"1\";s:17:\"dns_record_modify\";s:1:\"2\";s:14:\"dns_record_del\";s:1:\"3\";s:8:\"host_add\";s:1:\"4\";s:11:\"host_modify\";s:1:\"5\";s:8:\"host_del\";s:1:\"6\";s:10:\"user_admin\";s:1:\"7\";s:10:\"subnet_add\";s:1:\"8\";s:13:\"subnet_modify\";s:1:\"9\";s:10:\"subnet_del\";s:2:\"10\";s:16:\"interface_modify\";s:2:\"11\";s:13:\"interface_del\";s:2:\"12\";s:8:\"advanced\";s:2:\"13\";s:17:\"host_config_admin\";s:2:\"14\";s:14:\"template_admin\";s:2:\"15\";s:8:\"vlan_add\";s:2:\"16\";s:8:\"vlan_del\";s:2:\"17\";s:11:\"vlan_modify\";s:2:\"18\";s:12:\"location_del\";s:6:\"100019\";s:12:\"location_add\";s:6:\"100020\";s:7:\"ona_sql\";s:6:\"100021\";s:20:\"custom_attribute_add\";s:6:\"100022\";s:20:\"custom_attribute_del\";s:6:\"100023\";s:23:\"custom_attribute_modify\";s:6:\"100024\";}}}window_position|a:14:{s:13:\"edit_subnet_x\";s:3:\"360\";s:13:\"edit_subnet_y\";s:3:\"109\";s:23:\"app_device_model_list_x\";s:3:\"367\";s:23:\"app_device_model_list_y\";s:3:\"330\";s:22:\"app_device_type_edit_x\";s:3:\"366\";s:22:\"app_device_type_edit_y\";s:3:\"341\";s:13:\"edit_record_x\";s:3:\"584\";s:13:\"edit_record_y\";s:3:\"286\";s:19:\"rack_maint-master_x\";s:2:\"98\";s:19:\"rack_maint-master_y\";s:3:\"173\";s:17:\"app_plugin_list_x\";s:3:\"329\";s:17:\"app_plugin_list_y\";s:3:\"204\";s:23:\"app_device_model_edit_x\";s:3:\"176\";s:23:\"app_device_model_edit_y\";s:3:\"106\";}' )
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record($dbh, sessions, $where, $insert) called
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Running query: UPDATE sessions SET expiry = '1379781379', sessvalue = 'ona|a:9:{s:10:\"work_space\";a:1:{s:7:\"history\";a:7:{i:0;a:3:{s:5:\"title\";s:11:\"NYC-ROUTING\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>29\', \'display\')\";}i:1;a:3:{s:5:\"title\";s:14:\"ona_nmap_scans\";s:4:\"type\";s:14:\"display_report\";s:3:\"url\";s:95:\"xajax_window_submit(\'display_report\', \'report=>ona_nmap_scans,subnet=>10.x.x.x.0\', \'display\')\";}i:2;a:3:{s:5:\"title\";s:10:\"management\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>40\', \'display\')\";}i:3;a:3:{s:5:\"title\";s:11:\"NYC-4FLDATA\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>36\', \'display\')\";}i:4;a:3:{s:5:\"title\";s:5:\"docs5\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>54\', \'display\')\";}i:5;a:3:{s:5:\"title\";s:10:\"NYC-LEGACY\";s:4:\"type\";s:14:\"display_subnet\";s:3:\"url\";s:65:\"xajax_window_submit(\'display_subnet\', \'subnet_id=>28\', \'display\')\";}i:6;a:3:{s:5:\"title\";s:12:\"analytics-vm\";s:4:\"type\";s:12:\"display_host\";s:3:\"url\";s:61:\"xajax_window_submit(\'display_host\', \'host_id=>50\', \'display\')\";}}}s:22:\"list_hosts_filter_form\";a:2:{s:3:\"tab\";s:5:\"hosts\";s:5:\"hosts\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:26:\"search_results_filter_form\";a:5:{s:10:\"content_id\";s:19:\"search_results_list\";s:3:\"tab\";s:5:\"hosts\";s:11:\"vlan_campus\";a:3:{s:1:\"q\";a:2:{s:14:\"search_form_id\";s:23:\"vlan_campus_search_form\";s:8:\"all_flag\";s:1:\"1\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:7:\"subnets\";a:3:{s:1:\"q\";a:1:{s:14:\"search_form_id\";s:18:\"subnet_search_form\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}s:5:\"hosts\";a:3:{s:1:\"q\";a:15:{s:14:\"search_form_id\";s:16:\"host_search_form\";s:8:\"hostname\";s:0:\"\";s:6:\"domain\";s:0:\"\";s:3:\"mac\";s:0:\"\";s:2:\"ip\";s:0:\"\";s:7:\"ip_thru\";s:0:\"\";s:5:\"notes\";s:0:\"\";s:8:\"location\";s:0:\"\";s:21:\"custom_attribute_type\";s:0:\"\";s:8:\"ca_value\";s:0:\"\";s:5:\"model\";s:0:\"\";s:4:\"role\";s:16:\"baremetal-server\";s:12:\"manufacturer\";s:0:\"\";s:5:\"reset\";s:5:\"Clear\";s:6:\"search\";s:6:\"Search\";}s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:22:\"list_vlans_filter_form\";a:2:{s:3:\"tab\";s:5:\"vlans\";s:5:\"vlans\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_subnets_filter_form\";a:2:{s:3:\"tab\";s:7:\"subnets\";s:7:\"subnets\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:24:\"list_records_filter_form\";a:2:{s:3:\"tab\";s:7:\"records\";s:7:\"records\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:27:\"list_interfaces_filter_form\";a:2:{s:3:\"tab\";s:10:\"interfaces\";s:10:\"interfaces\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:28:\"list_dhcp_server_filter_form\";a:2:{s:3:\"tab\";s:11:\"dhcp_server\";s:11:\"dhcp_server\";a:2:{s:4:\"page\";s:1:\"1\";s:6:\"filter\";s:0:\"\";}}s:4:\"auth\";a:2:{s:4:\"user\";a:7:{s:2:\"id\";s:1:\"2\";s:8:\"username\";s:5:\"$user\";s:8:\"password\";s:32:\"21232f297a57a5a743894a0e4a801fc3\";s:5:\"level\";s:2:\"99\";s:5:\"ctime\";s:19:\"2007-10-30 03:00:17\";s:5:\"atime\";s:19:\"2013-09-18 19:03:34\";s:4:\"grps\";a:1:{s:5:\"$user\";s:2:\"18\";}}s:5:\"perms\";a:24:{s:14:\"dns_record_add\";s:1:\"1\";s:17:\"dns_record_modify\";s:1:\"2\";s:14:\"dns_record_del\";s:1:\"3\";s:8:\"host_add\";s:1:\"4\";s:11:\"host_modify\";s:1:\"5\";s:8:\"host_del\";s:1:\"6\";s:10:\"user_admin\";s:1:\"7\";s:10:\"subnet_add\";s:1:\"8\";s:13:\"subnet_modify\";s:1:\"9\";s:10:\"subnet_del\";s:2:\"10\";s:16:\"interface_modify\";s:2:\"11\";s:13:\"interface_del\";s:2:\"12\";s:8:\"advanced\";s:2:\"13\";s:17:\"host_config_admin\";s:2:\"14\";s:14:\"template_admin\";s:2:\"15\";s:8:\"vlan_add\";s:2:\"16\";s:8:\"vlan_del\";s:2:\"17\";s:11:\"vlan_modify\";s:2:\"18\";s:12:\"location_del\";s:6:\"100019\";s:12:\"location_add\";s:6:\"100020\";s:7:\"ona_sql\";s:6:\"100021\";s:20:\"custom_attribute_add\";s:6:\"100022\";s:20:\"custom_attribute_del\";s:6:\"100023\";s:23:\"custom_attribute_modify\";s:6:\"100024\";}}}window_position|a:14:{s:13:\"edit_subnet_x\";s:3:\"360\";s:13:\"edit_subnet_y\";s:3:\"109\";s:23:\"app_device_model_list_x\";s:3:\"367\";s:23:\"app_device_model_list_y\";s:3:\"330\";s:22:\"app_device_type_edit_x\";s:3:\"366\";s:22:\"app_device_type_edit_y\";s:3:\"341\";s:13:\"edit_record_x\";s:3:\"584\";s:13:\"edit_record_y\";s:3:\"286\";s:19:\"rack_maint-master_x\";s:2:\"98\";s:19:\"rack_maint-master_y\";s:3:\"173\";s:17:\"app_plugin_list_x\";s:3:\"329\";s:17:\"app_plugin_list_y\";s:3:\"204\";s:23:\"app_device_model_edit_x\";s:3:\"176\";s:23:\"app_device_model_edit_y\";s:3:\"106\";}' WHERE sesskey = 'vutpti98jtp03ib555gkig0uf0'
Sep 19 12:36:19 UNKNOWN_SVR_NAME $user@10.x.x.x: [DEFAULT] DEBUG => db_update_record() Query updated 0 rows
mattpascoe commented 10 years ago

FYI I think I have this fixed.. just letting you know.. I recently have updated my vcenter to 5.x. I'll be polishing up the code a bit and releasing soon.

rdorman commented 10 years ago

Great! Thank you

SyBernot commented 9 years ago

I just hit this as well. Seems like the XML may be different. Is there an easy fix?

mattpascoe commented 9 years ago

I think I have this fixed.. I just checked in a vmware5 branch on the plugin opennetadmin/vmware_stats repo. Give that branch a try and see if it is functional for you. I'm currently using that on our vmware5 systems. its 'mostly' working for me :)

SyBernot commented 9 years ago

I can confirm this mostly works on VCenter 5.5

Broken stuff: console link is broken (but even from the vmware web client that is hit and miss for me) cluster doesn't populate IPs doesn't populate sometimes (I think it's just multi-homed vms )

All in all not a big deal for me.

mattpascoe commented 6 years ago

closing ticket as it is working.. there are a few items as mentioned that could be improved.. new tickets on this should be opened on the other repo.