最近、GT110bにログインすると、ttyに
Linux GT110b 2.6.32-31-server #61-Ubuntu SMP Fri Apr 8 19:44:42 UTC 2011 x86_64 GNU/Linuxというメッセージが出るようになった。
Ubuntu 10.04.2 LTS
Welcome to the Ubuntu Server!
* Documentation: http://www.ubuntu.com/server/doc
System information disabled due to load higher than 2.0
10 packages can be updated.
0 updates are security updates.
調べてみたところ、これはUbuntu 10.04.2でアップデートされた/etc/update-motd.d/50-landscape-sysinfoの仕業で、CPU負荷が高い時にlandscape-sysinfoを行わないように考慮したものらしい。
…のだが、以前は問題無かっただけになんとなく気持ち悪い。ウチのようにSETI@homeを走らせてる状態だと常時閾値を超えちゃうだけの問題なので、以前のように
#!/bin/shてな具合にloadavgのチェックを省略してlandscape-sysinfoが起動されるようにしといた。
#cores=$(grep -c ^processor /proc/cpuinfo 2>/dev/null)
#[ "$cores" -eq "0" ] && cores=1
#threshold="${cores:-1}.0"
#if [ $(echo "`cut -f1 -d ' ' /proc/loadavg` < $threshold" | bc) -eq 1 ]; then
echo
echo -n " System information as of "
/bin/date
echo
/usr/bin/landscape-sysinfo
#else
# echo
# echo " System information disabled due to load higher than $threshold"
#fi
Ubuntu 10.04.1時代のlandscape-sysinfoの残骸が出力されるようなら、
$ sudo rm /etc/motd.tailとかしとけばいいよ。