aboutsummaryrefslogtreecommitdiffstats
path: root/collect.d
diff options
context:
space:
mode:
authorPetter Reinholdtsen <pere@hungry.com>2008-07-04 07:38:36 +0000
committerPetter Reinholdtsen <pere@hungry.com>2008-07-04 07:38:36 +0000
commit68d73aa3dd382c01a906e0e23ff27a13c9690c4e (patch)
tree9719a2538c72313c9301d9780581b7b96ea8656d /collect.d
parente1e6b1dd39c60ea24988df73c8c54f2319d68ff2 (diff)
downloadsitesummary-68d73aa3dd382c01a906e0e23ff27a13c9690c4e.tar.gz
sitesummary-68d73aa3dd382c01a906e0e23ff27a13c9690c4e.tar.bz2
sitesummary-68d73aa3dd382c01a906e0e23ff27a13c9690c4e.tar.xz
* Collect the current route table and if the host is a laptop.
Diffstat (limited to 'collect.d')
-rw-r--r--collect.d/system5
1 files changed, 5 insertions, 0 deletions
diff --git a/collect.d/system b/collect.d/system
index 3465216..24590d3 100644
--- a/collect.d/system
+++ b/collect.d/system
@@ -33,6 +33,7 @@ fi
uname -smr > uname-smr
uname -n > hostname
ifconfig -a > ifconfig-a
+route -n > route-n
cat /proc/cpuinfo > cpuinfo
# Collect mount points, for nagios configuration
@@ -42,3 +43,7 @@ cat /proc/mounts > procmounts
# Document current runlevel, useful to differenciate LTSP
# thin clients from diskless workstations.
runlevel > runlevel
+
+if [ -x /usr/sbin/laptop-detect ] && /usr/sbin/laptop-detect; then
+ touch laptop
+fi