sensu-plugins-filemaker 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 999cec271faee61e83ac35f2616a3746343dc576
4
+ data.tar.gz: 4b80a9504e21b589656d0fd4fe5372a6e7a0fe5d
5
+ SHA512:
6
+ metadata.gz: be0a873b5ee9e9ff2163c01783d63c4eb9d3a49d7b705076bc4ee1c23b77fdb57d92d2abdf401132d102f0e21ad4945b34b991a5aa8a907a8a0a40ca4d0fc1fa
7
+ data.tar.gz: 9767fbf279b7f008d12a7240a2f16030f569b25fbdda4ccf3c307ac7e6e4fa919a5cc60f1aa9cfb7a0832913a72605bb274afedbb3c32e0c20452b124ec2bce5
data/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2017 Benjamin Nørgaard
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,26 @@
1
+ # SensuPluginsFilemaker
2
+
3
+ Sensu plugin for filemaker checks.
4
+
5
+ ## Checks
6
+
7
+ ### check-filemaker.rb
8
+
9
+ This checks does the following checks.
10
+
11
+ - Check filemaker server process is running
12
+ - Check filemaker custom web publishing process is running
13
+ - Check filemaker admin server process is running
14
+
15
+ ## Installation
16
+ [Installation and setup](http://sensu-plugins.io/docs/installation_instructions.html)
17
+
18
+ ## Contributing
19
+
20
+ Ideas for additional checks/metrics would be very much appreciated.
21
+
22
+ Bug reports and pull requests are welcome on GitHub at https://github.com/blacksails/sensu-plugins-filemaker.
23
+
24
+ ## License
25
+
26
+ The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
@@ -0,0 +1,19 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ require 'sensu-plugin/check/cli'
4
+ require 'sensu-plugins-filemaker'
5
+
6
+ class CheckFilemaker < Sensu::Plugin::Check::CLI
7
+ def run
8
+ unless SensuPluginsFilemaker.Server.server_running?
9
+ critical "Filemaker server is not running"
10
+ end
11
+ unless SensuPluginsFilemaker.Server.cwp_running?
12
+ critical "Filemaker CWP is not running"
13
+ end
14
+ unless SensuPluginsFilemaker.Server.admin_server_running?
15
+ warning "Filemaker admin server is not running"
16
+ end
17
+ ok "Filemaker and it's services are running"
18
+ end
19
+ end
@@ -0,0 +1,18 @@
1
+ module SensuPluginsFilemaker
2
+ class Server
3
+ def self.server_running?
4
+ %(ps aux | grep [f]mserverd)
5
+ $?.exitcode == 0
6
+ end
7
+
8
+ def self.cwp_running?
9
+ %(ps aux | grep [f]mscwpc)
10
+ $?.exitcode == 0
11
+ end
12
+
13
+ def self.admin_server_running?
14
+ %(ps aux | grep [f]msased)
15
+ $?.exitcode == 0
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,3 @@
1
+ module SensuPluginsFilemaker
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1 @@
1
+ require "sensu-plugins-filemaker/server"
metadata ADDED
@@ -0,0 +1,79 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: sensu-plugins-filemaker
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Benjamin Nørgaard
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-02-23 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: sensu-plugin
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.4'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.4'
27
+ - !ruby/object:Gem::Dependency
28
+ name: bundler
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '1.14'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '1.14'
41
+ description: Sensu plugin for filemaker
42
+ email:
43
+ - b@noergaard.dk
44
+ executables:
45
+ - check-filemaker.rb
46
+ extensions: []
47
+ extra_rdoc_files: []
48
+ files:
49
+ - LICENSE
50
+ - README.md
51
+ - bin/check-filemaker.rb
52
+ - lib/sensu-plugins-filemaker.rb
53
+ - lib/sensu-plugins-filemaker/server.rb
54
+ - lib/sensu-plugins-filemaker/version.rb
55
+ homepage: https://github.com/blacksails/sensu-plugins-filemaker
56
+ licenses:
57
+ - MIT
58
+ metadata: {}
59
+ post_install_message:
60
+ rdoc_options: []
61
+ require_paths:
62
+ - lib
63
+ required_ruby_version: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - ">="
66
+ - !ruby/object:Gem::Version
67
+ version: '0'
68
+ required_rubygems_version: !ruby/object:Gem::Requirement
69
+ requirements:
70
+ - - ">="
71
+ - !ruby/object:Gem::Version
72
+ version: '0'
73
+ requirements: []
74
+ rubyforge_project:
75
+ rubygems_version: 2.4.8
76
+ signing_key:
77
+ specification_version: 4
78
+ summary: Sensu plugin for filemaker
79
+ test_files: []