pyr / check-graphite Goto Github PK
View Code? Open in Web Editor NEWnagios check for graphite metrics
License: Other
nagios check for graphite metrics
License: Other
I installed it using sudo gen install check_graphite
, but when I try and run the command I get the following syntax error:
/usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require': /var/lib/gems/1.8/gems/nagios_check-0.3.0/lib/nagios_check/range.rb:23: syntax error, unexpected kNOT (SyntaxError)
@inverse ? not(result) : result
^
/var/lib/gems/1.8/gems/nagios_check-0.3.0/lib/nagios_check/range.rb:23: syntax error, unexpected ':', expecting kEND
@inverse ? not(result) : result
^
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/nagios_check-0.3.0/lib/nagios_check.rb:6
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/check_graphite-0.2.5/lib/check_graphite.rb:1
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `gem_original_require'
from /usr/lib/ruby/vendor_ruby/1.8/rubygems/custom_require.rb:36:in `require'
from /var/lib/gems/1.8/gems/check_graphite-0.2.5/bin/check_graphite:3
from /usr/local/bin/check_graphite:19:in `load'
from /usr/local/bin/check_graphite:19
I don't know ruby very well, how do I go about fixing this?
Nagios shows UNKNOWN
when no data is returned for the target metrics, however this could be OK if, for example, an exception hasn't yet been raised and the metric doesn't exist yet in Graphite.
How about an option to the script, e.g. --ignore-missing
, which will make it return 0
exit status in the event that no data is returned (no news is good news)?
The script has the options:
-A, --dropfirst N
-Z, --droplast N
These aren't explained in the project README.md
file. I would open a pull request but I'm not sure what they do...
We are seeing this error from this plugin intermittently. The graphite shows data being plotted however the plugin fails with this exit code. Any pointers how to troubleshoot this?
INTERNAL ERROR: EOFError: end of file reached
can you please add License information in Readme or repo
./bin/check_graphite
/usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require': cannot load such file -- check_graphite (LoadError)
from /usr/lib/ruby/1.9.1/rubygems/custom_require.rb:36:in `require'
from ./bin/check_graphite:3:in `<main>'
is that ok?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.