会社のnagiosはnagiosml@example.comのようなアドレスで携帯をML登録して リブート依頼かけたとかわかるようにしているのだが qmailでSPFとかいれてないからなのか、DoCoMoの迷惑メール対策でDOMAIN解除 しているにもかかわらず携帯からMLに送ったメール(ezw…
初期状態ではこんな感じなので /usr/share/logwatch/default.conf/services/sendmail-largeboxes.conf Title = "sendmail-largeboxes (large mail spool files)" LogFile = NONE $sendmail_largeboxes_size = 40MB mailboxの容量をいじっているなら変更する …
Pentium4 Prescott 4Mhzの修理が終わりAOPENから帰ってきたのでDebian Etchを放り込んでXenで仮想サーバーを構築することに 必要なもの全てをaptで入れる # apt-get install xen-linux-system-2.6.18-5-xen-686 libc6-xen xen-tools bridge-utils grubも自動…
wget http://dag.wieers.com/rpm/packages/nagios/nagios-2.10-1.rh9.rf.i386.rpm rpm -Uvh nagios-2.10-1.rh9.rf.i386.rpm Preparing... ########################################### [100%] 1:nagios 警告: /etc/nagios/cgi.cfg created as /etc/nagios/c…
2.9からの変更点は下記 http://www.nagios.org/development/changelog.php#2x_branchとりあえず監視サーバーは # rpm -qa | grep nagios nagios-2.9-1.rh9.rf ということだったので DAGのRPMパッケージ待ち http://dag.wieers.com/rpm/packages/nagios/ ネッ…
元ネタはここからGeoIP面白そうということで http://blog.browncat.org/2007/07/postfixgeoippolicy.htmlGeoIP関連はaptでいれる。他はsrcより apt-get update apt-get install geoip-bin libgeoip-dev libgeoip1wget http://www.maxmind.com/download/geoip…
ドメイン詐称のメールを弾く smtpd_sender_restrictions = reject_unknown_sender_domain postfix 1でも2でも同様。これやってないとメールを転送するときに、きちんとチェックしてるドメインからは 450 4.1.8 : Sender address rejected: Domain not found …
check_munin.pl check_service_freshness=1 service_freshness_check_interval=60 が特殊だけど、NRPEとMunin-nodeを常駐させるよりもマシか… あくまでも、NagiosでいうところのLocalしかできなさげ。remote使いたいときには意味ないかな?該当サーバの /etc…
ip_conntrack_ftpを追加する /etc/sysconfig/iptable-config IPTABLES_MODULES="ip_conntrack_ftp" ネタ元はここから http://novus.exblog.jp/i2/ こんなのも公開された.iptablesでの制御Linux版ブルートフォース防御ルールセット一式、簡易マニュアル http:…
MYSQL全機能リファレンス http://www.amazon.co.jp/MySQL%E5%85%A8%E6%A9%9F%E8%83%BD%E3%83%AA%E3%83%95%E3%82%A1%E3%83%AC%E3%83%B3%E3%82%B9-%E9%88%B4%E6%9C%A8-%E5%95%93%E4%BF%AE/dp/477412169X チューニングのページがよい。内部構造について詳細に書…
ためしにmunin-nodeいれてみたら yum install munin-node Gathering header information file(s) from server(s) Server: Red Hat 9 - RPMforge.net - dag Finding updated packages Downloading needed headers Resolving dependencies ......Unable to sat…
まずyum install http://fedoraproject.org/wiki/Legacy/Yum9Detailed の通りだとファイルが無いので。国内ミラーよりとってくる wget http://ftp.kddilabs.jp/Linux/packages/fedora.legacy/redhat/9/updates/i386/gnupg-1.2.1-9.i386.rpm wget http://ftp.…
基本的にsmartctl入れているので /etc/munin/plugin-conf.d/munin-node 下記設定を付け足すだけ。 [hddtemp_smartctl] user root env.smartctl /usr/sbin/smartctl env.drives sda env.type_sda 3ware,0 env.args_sda --all -d ata もしくはhda [hddtemp_sma…
munin-node-configure --shell ではなくこちらがさらに細かい設定をしてくれる。 munin-node-configure --suggest --shell --families auto,manual,contrib必要なものはそのままコマンドをコピペ qmailとかpostgresqlとか足りないプラグインはmuninexchange…
パッケージがあるのは非常に楽。入れるのはmunin-nodeだけなので apt-get install munin-node vi /etc/munin/munin-node.conf とmunin-node.confを編集して /etc/init.d/munin-node restartするだけ
最近流行のmuninを入れてみました。(munin_1.2.5.tar.gz) redhat9はパッケージとかないのでsource install監視元と監視対象では入れるものが違う 監視サーバー(client) install-main 監視対象(ノード) install-node install-node-plugins 監視サーバー(clien…
Progeny終了してAftermathになったみたいですね。 http://www.clara.ad.jp/service/linux/ クララオンラインは、米Progeny Linux Systems社と提携して、セキュリティパッチをご提供して参りましたが、同社のサービス停止に伴い、同社従業員により立ち上げら…
ずっと apt-get -f install で直らなかった問題が直ったので挑戦してみました。 dpkg --force-overwrite -i /var/cache/apt/archives/libc6_2.3.2.ds1-22sarge6_i386.debhttp://www.linuxquestions.org/questions/showthread.php?t=565495 まずドキュメント…
オンラインで完結編 NHK http://www.nhk.or.jp/eigyo/ カード払い申し込み http://www.nhk.or.jp/eigyo/henko_kouza.html#card 東京ガス 東京ガス株式会社(モバイルサイト) カード払い申し込み 東京ガス株式会社(モバイルサイト) 申し込み用紙取り寄せ編 東京電力 http://w…
slow query logを見やすくしてくれるツール使い方は # mysqldumpslow /var/log/mysql/mysql-slow.log とかhttp://dev.mysql.com/doc/refman/5.1/ja/slow-query-log.htmlMySQL Server 5.0 管理監視ガイド http://h50146.www5.hp.com/products/software/oe/lin…
とあるサーバーで使っているnrpe.cfg。 監視元のパラメーターを変更するだけでいいように./configure --enable-command-argsとしている。dont_blame_nrpe=1も通常は0だが、--enable-command-argsと対で1に変更。 サーバーは 192.168.3.10 PHP 192.168.3.11 P…
RevreseProxyで使っているsquidがフリーズ。ping 100%ロスでnagios検地 squid-2.5.STABLE1-3.9.progeny.9 が固まった。かなり久しぶりに見た気がする。 そろそろ2.6に移行するべきか…
WZR-RS-G54HPファームウェア Ver.2.49(2007年3月1日掲載) 家から職場VPNに繋がらないと四苦八苦していましたが、2.43 => 2.49 にあげたら あっさり職場内のLANDISKに接続できるようになりました。#もっと早く気づくようにアンテナに追加しとかんと… OpenWR…
nagios pluginのconfigure時に--with-pgsql必要 ./configure --with-pgsql=/usr/local/pgsql そのままだと大概動かないので /etc/ld.so.confに下記追加 /usr/local/pgsql/lib # /sbin/ldconfig が必要。 nrpeで呼び出してcheck_pgsqlを使うので etc/nrpe.cfg…
Databseはmysql 3.23.58 => 4.0.24_Debian-10sarge2 にサーバーの都合上変更 移動元サーバーでコンテンツ固める。 tar czf ./public.tgz. ./public_html MySQL 抽出 mysqldump -uexample -pPassword mtdatabase > mt.sql これからは移動先サーバー tar xzf p…
NagiosでグローバルIPが振られていないサーバーや同一セグメントにないサーバーを監視する方法で nagios => nrpe => check_http nagios => nrpe => check_ping とやれるという情報はあるものの設定方法services.cfg commands.cfg nrpe.cfgの書き方を考えてわ…
tarは1.4.8がでているけど./configureでとまってわからないサーバーに結局rpmでいれることにした。 必要なモジュールは下記http://dag.wieers.com/rpm/packages/perl-Net-SNMP/perl-Net-SNMP-5.2.0-1.0.rh9.rf.noarch.rpm http://dag.wieers.com/rpm/package…
rpmでいれるのは依存関係の問題で結構めんどくさかったりしたのでメモrpmをまとめてダウンロード(CentOS 4.4用) http://dag.wieers.com/rpm/packages/nagios/nagios-2.9-1.el4.rf.i386.rpm http://dag.wieers.com/rpm/packages/nagios-plugins/nagios-plugin…
ftp://ftp.kaybee.org/pub/redhat/RPMS/noarch/logwatch-7.3.5-1.noarch.rpm New services bfd, zz-runtime, evtsystem, evtsecurity, and evtapplication.Default behavior is now to print output which means you will see the report if you run it from…
backup先のサーバーで/var/log/messages に延々とでまくり。 May 10 21:41:11 backup xinetd[8914]: execv( /usr/local/backup/server/bin/afserver ) failed: Permission denied (errno = 13) May 10 21:41:22 backup xinetd[8915]: execv( /usr/local/back…