I'd like to monitor the rate of 404, 403, 500 etc errors in my Apache logs with Munin but I can't find a plugin to do this. Surely it exists?
Best plugin for tracking Apache response codes with Munin
apache-2.2munin
apache-2.2munin
I'd like to monitor the rate of 404, 403, 500 etc errors in my Apache logs with Munin but I can't find a plugin to do this. Surely it exists?
Best Answer
Here's a plugin that might help. It monitors various request codes by parsing the log files.
https://github.com/dc2447/munin-apache-error-rate/blob/master/apache_error_rate
Near the top you can set the codes you care about:
You can also configure how many recent log lines it looks at and what log file to parse.
To be honest you are probably better off writing your own plugin. It's really simple and you can customize it for your needs (for example, does your system use logrotate? etc.) – plus, you get to write your first munin plugin.