Add virtual memory settings to monitoring

This commit is contained in:
ThomasKaiser 2018-09-27 16:14:40 +02:00
parent 95ae09470f
commit b283ddb7f9
1 changed files with 2 additions and 0 deletions

View File

@ -81,6 +81,8 @@ log_hardware_info() {
cat /proc/cpuinfo >>${Log}
echo -e "\n### meminfo:\n" >>${Log}
cat /proc/meminfo >>${Log}
echo -e "\n###virtual memory:\n" >>${Log}
for sysfsnode in /proc/sys/vm/* ; do sysctl $(echo ${sysfsnode} | sed 's|/proc/sys/vm/|vm.|'); done >>${Log}
if [ -x /sbin/ip ]; then
echo -e "\n### ip addr:\n" >>${Log}
/sbin/ip r s >>${Log} ; /sbin/ip a >>${Log}