carbios 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +60 -1
- data/lib/carbios/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -1,4 +1,63 @@
|
|
1
1
|
carbios
|
2
2
|
=======
|
3
3
|
|
4
|
-
Nagios perfdata to
|
4
|
+
Carbios sends Nagios perfdata to graphite and serves as a replacement for pnp4nagios.
|
5
|
+
|
6
|
+
install
|
7
|
+
-------
|
8
|
+
|
9
|
+
RubyGems:
|
10
|
+
|
11
|
+
```sh
|
12
|
+
gem install carbios
|
13
|
+
```
|
14
|
+
|
15
|
+
or source:
|
16
|
+
|
17
|
+
```sh
|
18
|
+
gem install bundler
|
19
|
+
git clone git://github.com/ideeli/carbios.git
|
20
|
+
cd carbios
|
21
|
+
bundle install
|
22
|
+
```
|
23
|
+
|
24
|
+
nagios integration
|
25
|
+
------------------
|
26
|
+
|
27
|
+
in nagios.cfg
|
28
|
+
```
|
29
|
+
perfdata_timeout=5
|
30
|
+
host_perfdata_file=/var/spool/nagios/host-perfdata
|
31
|
+
service_perfdata_file=/var/spool/nagios/service-perfdata
|
32
|
+
|
33
|
+
host_perfdata_file_template=TIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$
|
34
|
+
service_perfdata_file_template=TIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$
|
35
|
+
|
36
|
+
host_perfdata_file_mode=a
|
37
|
+
service_perfdata_file_mode=a
|
38
|
+
|
39
|
+
host_perfdata_file_processing_interval=60
|
40
|
+
service_perfdata_file_processing_interval=60
|
41
|
+
|
42
|
+
host_perfdata_file_processing_command=carbios-bulk-host
|
43
|
+
service_perfdata_file_processing_command=carbios-bulk-service
|
44
|
+
|
45
|
+
define command{
|
46
|
+
command_name carbios-bulk-service
|
47
|
+
command_line carbios -c /etc/carbios.yaml /var/spool/pnp4nagios/nagios/service-perfdata
|
48
|
+
}
|
49
|
+
|
50
|
+
define command{
|
51
|
+
command_name carbios-bulk-host
|
52
|
+
command_line carbios -c /etc/carbios.yaml /var/spool/pnp4nagios/nagios/host-perfdata
|
53
|
+
}
|
54
|
+
```
|
55
|
+
|
56
|
+
gotchas
|
57
|
+
-------
|
58
|
+
* You may have to create the /var/spool/nagios directory and make sure that
|
59
|
+
it is owned by the nagios user.
|
60
|
+
* command_line in the carbios-bulk-host and carbios-bulk-service commands may
|
61
|
+
need to include the fully qualfied path to where the carbios binary is installed. If
|
62
|
+
installed from source, it should be `bundle exec carbios` to make sure that the proper
|
63
|
+
gems are used
|
data/lib/carbios/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: carbios
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 27
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 2
|
10
|
+
version: 0.0.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Aaron Brown
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2012-10-
|
18
|
+
date: 2012-10-10 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: graphite
|