This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/python3 | |
''' | |
Monitors error rates based on the Nginx access log. | |
By default triggers an warn alert at 2 req/s and critical for 4 req/s for each status code. | |
Some of the less common status codes have been commented out. Customize accordingly for yourself. | |
ALL FAME GOES HERE : https://gist.github.com/mipearson/1146151 | |
Install: | |
wget https://gist.github.com/Lusitaniae/fb8532294b1cfba7aceffa1e2dd2a264 -O /usr/share/munin/plugins/nginx_error_rate; |