@@ -1,8 +1,8 @@
#!/bin/bash
# Inventory System
# Author: Carsten Schoene
-# $LastChangedDate: 2012-07-06 21:46:15 +0200 (Fri, 06 Jul 2012) $
-# $Rev: 1530 $
+# $LastChangedDate: 2012-07-10 13:23:44 +0200 (Tue, 10 Jul 2012) $
+# $Rev: 1540 $
#
# Default options (can be changed by inventory-system.conf)
DEBUG="yes"
@@ -35,6 +35,7 @@
ip
rpm
ls
+date
"
# mail alerts / debug messages
@@ -258,6 +259,15 @@
debug "SYSTEM-SOFTWARE: ${PACKAGES}"
echo ${PACKAGES}
}
+
+# get current date
+function get_system_date {
+ LANG=C
+ DATUM=`${DATE}`
+ debug "SYSTEM-DATE: ${DATE}"
+ echo ${DATE}
+}
+
# encode url parameters
rawurlencode() {
local string="${1}"
@@ -317,6 +327,7 @@
get_system_arch \
get_system_os \
get_system_software \
+ get_system_date \
${CUSTOM_FUNCTIONS} ; do
request="${request}${VAR}="`rawurlencode "\`${VAR}\`"`
request="${request}&"
|
@@ -1,6 +1,6 @@
<?php
-$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"]["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","get_system_date");
$config["isdf"]["custom_postvars"] = array();
|