aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d/system
diff options
context:
space:
mode:
Diffstat (limited to 'collect.d/system')
-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