nicloay / nginx-icinga-nagios-plugin Goto Github PK
View Code? Open in Web Editor NEWicinga, nagios check nginx process status
icinga, nagios check nginx process status
Please clarify license for this code. It seems like the original is GPL so I guess it is GPL too, but in order to be able to use it I really need a clear message.
Cheers,
/O
Hello
In this piece of code : https://github.com/nicloay/nginx-icinga-nagios-plugin/blob/master/check_nginx#L97-L102 :
if int(ActiveConn) >= int(critical):
print 'CRITICAL - %s|%s' % (output,perfdata)
sys.exit(1)
elif int(ActiveConn) >= int(warning):
print 'WARNING - %s|%s' % (output,perfdata)
sys.exit(2)
Critical and Warning exit codes are inverted.
Following https://nagios-plugins.org/doc/guidelines.html#AEN78, warning
return code should be 1 (not 2) and critical
return code should be 2 (not 1).
Thank you !
Hi,
I have got two error
import-im6.q16: unable to open X server `' @ error/import.c/ImportImageCommand/358.
./check_nginx: line 14: syntax error near unexpected token (' ./check_nginx: line 14:
def usage ():'
Python 2.7.15rc1
Ubuntu 18.0.4 LTS
I think needs something like this to have correct performance data output
perfdata = 'ActiveConn=%s reading=%s writing=%s waiting=%s' % (ActiveConn,reading,writing,waiting)
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.