Glen Pitt-Pladdy :: Blogopendkim on Cacti via SNMP | |||
With having switched to opendkim with Postfix, I've also created Cacti scripts and templates to match. Like before I'm keeping with using SNMP as the transport for all my templates and using my Universal Log Analyser framework. I've been distracted recently so this set of Cacti templates has been sitting around unpublished for some time since the article on configuring opendkim. If you're unfamiliar with my work on the above then please read the articles above before starting. This article assumes you have the basics in place that are described above. Universal Log Analyser PluginIn the tarball (see below) you will find the opendkim.pm plugin for uloganalyser. Add this to the plugin directory (typically /etc/snmp/uloganalyser-plugin/) and update the SNMP cronjob created previously for Postfix or create a new one to include the opendkim plugin. My Postfix cronjob section now looks like this: # run postfix & dovecot stats Verify that after sufficient time to find some opendkim log lines that stats get generated and stored in the stats file. Extend smnpdAdd the opendkim-stats script (making it executable if needed) to a suitable place (typically /etc/snmp/) and add the extension configuration to /etc/snmp/snmpd.conf like: extend opendkim /etc/snmp/opendkim-stats Restart snmpd to enable the configuration. Cacti TemplatesSimply import this template, and add the graphs you want to the appropriate device graphs in Cacti. It should just work if your SNMP is working correctly for that device (ensure other SNMP parameters are working for that device). Download: opendkim Universal Log Analyser plugin and Cacti Template are on GitHub Graph Screenshot
|
|||
Disclaimer: This is a load of random thoughts, ideas and other nonsense and is not intended to be taken seriously. I have no idea what I am doing with most of this so if you are stupid and naive enough to believe any of it, it is your own fault and you can live with the consequences. More importantly this blog may contain substances such as humor which have not yet been approved for human (or machine) consumption and could seriously damage your health if taken seriously. If you still feel the need to litigate (or whatever other legal nonsense people have dreamed up now), then please address all complaints and other stupidity to yourself as you clearly "don't get it".
Copyright Glen Pitt-Pladdy 2008-2023
|
Comments: