[-]
[+]
|
Changed |
_service:set_version:inventory-system.spec
|
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev1518.tar.bz2/client/inventory-system.sh
^
|
@@ -34,6 +34,7 @@
hostname
ip
rpm
+ls
"
# mail alerts / debug messages
|
[-]
[+]
|
Added |
_service:recompress:tar_scm:inventory-system-0.0.rev1518.tar.bz2/client/ix-functions.sh
^
|
@@ -0,0 +1,8 @@
+# get internetx setup type
+function get_system_type_ix {
+ if [ -f /etc/ix-system-image.conf ] ; then
+ . /etc/ix-system-image.conf
+ fi
+ debug "IX-SYSTEM-TYPE: ${IX_SYSTEM_TYPE}"
+ echo ${IX_SYSTEM_TYPE}
+}
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev1518.tar.bz2/server/config.inc.php
^
|
@@ -2,9 +2,7 @@
$config["isdf"]["postvars"] = array("get_system_uuid","get_system_serial","get_system_cpu","get_system_memory","get_system_manufacturer","get_system_productname","get_system_biosversion","get_system_net_info","get_system_default_ip","get_system_ipv4","get_system_ipv6","get_system_hostname","get_system_type","get_system_kernelversion","get_system_arch","get_system_os","get_system_software");
-$config["isdf"]["get_system_ipv4"]["action"] = "serialize";
-$config["isdf"]["get_system_ipv6"]["action"] = "serialize";
-$config["isdf"]["get_system_software"]["action"] = "serialize";
+$config["isdf"]["custom_postvars"] = array();
$config["isdf"]["db"]['phptype'] = "mysql";
$config["isdf"]["db"]['protocol'] = "tcp";
|
[-]
[+]
|
Changed |
_service:recompress:tar_scm:inventory-system-0.0.rev1518.tar.bz2/server/isdf.php
^
|
@@ -40,6 +40,15 @@
$request_complete=0;
}
}
+
+ // for custom postvars
+ foreach ( $config["isdf"]["custom_postvars"] as $POSTVAR ) {
+ if ( isset($_POST[$POSTVAR]) ) {
+ $value = urldecode($_POST[$POSTVAR]);
+ $data[$POSTVAR] = $value;
+ syslog(LOG_INFO, $POSTVAR . ": ". $value);
+ }
+ }
}
// last check before connecting to database
|