aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:26:50 +0000
committerPetter Reinholdtsen <pere@hungry.com>2006-08-24 08:26:50 +0000
commitab5d2e601de9e5e963d672809148012ceb0933d6 (patch)
tree6b5907bd6e26cd369aceec4d2479cd86fae87561 /collect.d
parent40de5c4a4c57b98b131e474a8c37400bb386db10 (diff)
downloadsitesummary-ab5d2e601de9e5e963d672809148012ceb0933d6.tar.gz
sitesummary-ab5d2e601de9e5e963d672809148012ceb0933d6.tar.bz2
sitesummary-ab5d2e601de9e5e963d672809148012ceb0933d6.tar.xz
Make sure the client work on systems without dmidecode and pciutils. Report the hostname as well.
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system14
1 files changed, 10 insertions, 4 deletions
diff --git a/collect.d/system b/collect.d/system
index 4ed132b..8ccfc58 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -2,11 +2,17 @@
set -e
-mkdir hardware && cd hardware
+mkdir system && cd system
-dmidecode > dmidecode
+if type dmidecode 2>/dev/null; then
+ dmidecode > dmidecode
+fi
+
+if type lspci 2>/dev/null; then
+ lspci > lspci
+ lspci -n > lspci-n
+fi
-lspci > lspci
-lspci -n > lspci-n
uname -smr > uname-smr
+uname -n > hostname
ifconfig -a > ifconfig-a