This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# $Id: nagios.spec 9310 2010-11-19 07:32:09Z cmr $ | |
# Authority: dag | |
# Modify: snicker_jp | |
# Upstream: Ethan Galstad <nagios$nagios,org> | |
### FIXME: TODO: Add sysv script based on template. (remove cmd-file on start-up) | |
%define logmsg logger -t %{name}/rpm | |
%define logdir %{_localstatedir}/log/nagios | |
Summary: Open Source host, service and network monitoring program |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
--- /root/tmp/nagios.spec 2012-01-31 13:20:21.000000000 +0900 | |
+++ nagios-ja.spec 2012-01-31 14:22:46.000000000 +0900 | |
@@ -1,5 +1,6 @@ | |
# $Id: nagios.spec 9310 2010-11-19 07:32:09Z cmr $ | |
# Authority: dag | |
+# Modify: snicker_jp | |
# Upstream: Ethan Galstad <nagios$nagios,org> | |
### FIXME: TODO: Add sysv script based on template. (remove cmd-file on start-up) | |
@@ -9,7 +10,7 @@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cat /etc/nagios/nrpe.cfg.`date '+%Y%m%d'` |perl -e 'foreach(<>){ if(!/^#/ && /check_disk/){ s/check_disk -w \$ARG1\$ -c \$ARG2\$/check_disk -w \$ARG1\$ -c \$ARG2\$ -W \$ARG1\$ -K \$ARG2\$/; } print;}' > /etc/nagios/nrpe.cfg |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select SID,SERIAL#,USERNAME,MODULE,OSUSER,PROGRAM,MACHINE from v$session where OSUSER = 'ユーザ名'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
CREATE TABLE data as | |
select | |
ID, | |
sum(PAY_MONEY) as PAY_MONEY | |
from | |
SALES | |
where | |
ID in ( | |
'AAAA', | |
'BBBB', |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Copyright © y-kawaz氏 | |
# 15分でOK!ServersMan@VPSにSL6(≒CentOS6)を入れる方法 | |
# URL:http://d.hatena.ne.jp/y-kawaz/20110722/1311275547 | |
# Mod:snicker_jp | |
# 作業のジャマなので不要なプロセスを停止 | |
/etc/init.d/ajaxterm stop | |
/etc/init.d/crond stop | |
/etc/init.d/httpd stop | |
/etc/init.d/saslauthd stop |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#ルートディレクトリ内に1GBのファイル「swap」を作成 | |
dd if=/dev/zero of=/swap bs=1G count=1 | |
↓ 修正!メモリが少ない環境だと作れないから | |
dd if=/dev/zero of=/swap bs=10M count=100 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
select | |
IF(FLAG=1,'OK','NG') | |
from | |
DATA | |
where | |
ID = 001 | |
INTO OUTFILE "/tmp/test.csv" FIELDS TERMINATED BY ',' OPTIONALLY ENCLOSED BY '"' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
INSERT INTO user (Host,User,Password) VALUES('localhost','wordpress',PASSWORD('xxxxx')); | |
CREATE DATABASE wordpress; | |
GRANT ALL ON wordpress.* to wordpress@localhost; | |
FLUSH PRIVILEGES; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ ldd netExtender | |
linux-vdso.so.1 => (0x00007fff1bbff000) | |
libssl.so.6 => not found | |
libcrypto.so.6 => not found | |
libutil.so.1 => /lib/x86_64-linux-gnu/libutil.so.1 (0x00007f3ad922a000) | |
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f3ad900d000) | |
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f3ad8c50000) | |
/lib64/ld-linux-x86-64.so.2 (0x00007f3ad9448000) |
OlderNewer