File tree 4 files changed +12
-12
lines changed
4 files changed +12
-12
lines changed Original file line number Diff line number Diff line change @@ -24,7 +24,7 @@ requires 'Text::MicroTemplate';
24
24
requires ' Gearman::Client' , 1.10;
25
25
requires ' Gearman::Server' ;
26
26
requires ' Parallel::Prefork' , 0.08;
27
- requires ' YAML' , 0.71 ;
27
+ requires ' YAML::Syck ' , 1.10 ;
28
28
requires ' Starlet' , 0.08;
29
29
requires ' Filesys::Notify::Simple' ;
30
30
requires ' Proc::Daemon' ;
Original file line number Diff line number Diff line change 1
1
---
2
2
config :
3
- # gearman$B$rMxMQ$9$k>l9g!"(Benable$B$r(B1$B$K$7$F!"(Bgermand$B$N(Bhost$BL>$H(Bport$B$r;XDj$7$^$9(B
3
+ # gearmanを利用する場合、enableを1にして、germandのhost名とportを指定します
4
4
gearman_enable : 0
5
5
gearman_server :
6
6
host : localhost
7
7
port : 7003
8
- # rrd$B$N%U%!%$%k$r@_CV$9$k>l=j!#!V(B/$B!W$+$i;O$^$k$H@dBP%Q%9$H$J$j$^$9(B
8
+ # rrdのファイルを設置する場所。「/」から始まると絶対パスとなります
9
9
data_dir : data
10
- # $B4F;k9`L\$N@_Dj%U%!%$%k$r@_CV$9$k%G%#%l%/%H%j!#!V(B/$B!W$+$i;O$^$k$H@dBP%Q%9(B
10
+ # 監視項目の設定ファイルを設置するディレクトリ。「/」から始まると絶対パス
11
11
host_config_dir : host_config
12
12
13
13
component_config :
14
- # SNMP$B$G%G!<%?$r<hF@$9$k;~$N%*%W%7%g%s!#(Bcommunity$B$H(Bversion
14
+ # SNMPでデータを取得する時のオプション。communityとversion
15
15
SNMP :
16
16
community : public
17
17
version : 2
18
- # MySQL$B$r4F;k$9$k>l9g$N(Buser$BL>$H%Q%9%o!<%I(B
18
+ # MySQLを監視する場合のuser名とパスワード
19
19
MySQL :
20
20
user : root
21
21
password : " "
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ use strict;
4
4
use warnings;
5
5
use base qw/ Class::Accessor::Fast/ ;
6
6
use Path::Class qw/ / ;
7
- use YAML qw/ / ;
7
+ use YAML::Syck qw/ / ;
8
8
use Cwd;
9
9
use Filesys::Notify::Simple;
10
10
use CloudForecast::Log;
@@ -41,10 +41,10 @@ sub load_yaml {
41
41
my @data ;
42
42
eval {
43
43
if ( ref $file ) {
44
- @data = YAML::Load($$file );
44
+ @data = YAML::Syck:: Load($$file );
45
45
}
46
46
else {
47
- @data = YAML::LoadFile($file );
47
+ @data = YAML::Syck:: LoadFile($file );
48
48
}
49
49
die " no yaml data in $file " unless @data ;
50
50
};
Original file line number Diff line number Diff line change 1
1
--- # Dev
2
- # --- #Hoge$B$H=q$/$3$H$G%5!<%P0lMw$r6h@Z$k$3$H$,$G$-$^$9(B
3
- # config$B$O(Bhost_config$BFb$N4F;k9`L\$N@_Dj%U%!%$%kL>(B
4
- # hosts$B$O(B $B!V(BIP$B%"%I%l%9(B [space]$B%[%9%HL>(B[ space]$B%3%a%s%H!W$G$9!#%3%a%s%HFb$K$O%9%Z!<%9$,$"$C$F$b$+$^$$$^$;$s(B
2
+ # --- #Hogeと書くことでサーバ一覧を区切ることができます
3
+ # configはhost_config内の監視項目の設定ファイル名
4
+ # hostsは 「IPアドレス [space]ホスト名[ space]コメント」です。コメント内にはスペースがあってもかまいません
5
5
servers :
6
6
- config : basic.yaml
7
7
hosts :
You can’t perform that action at this time.
0 commit comments