You just have reached a small collection of netdata external plugins for daemontools data monitoring gathering, qmail, qmail-scanner and parser (proprietary tool for processing of logs of qmail and qmail-scanner) together with several defined allarms for specific metrics collected.
parser.plugin is a netdata external plugin for monitoring output of parser cronjob. parser is used for processing of scannerd and qmail-send logs and loading processed logs into database. It detects parser presence by locating all directories with scannerd substring in its name inside /var/log directory and prepares a data collector for each one of them. The plugin is deactivated if there is no such directory.
It collects:
- Failed connection to DB marked as
conn_failed - Successfull and failed updates of scanner and delivery tables marked as
scanner_success,scanner_failed,delivery_successanddelivery_failed. - Successfull and failed updates of unknown tables marked as
unknown_successandunknown_failed - Unknown log lines marked as
other
This plugin is currently Linux specific.
svstat.plugin is a netdata external plugin. It detects presence of a daemontools by changing working directory to /service. The plugin collects uptime and downtime in seconds since last change of the service and up/down state. The information is gathered from supervise/status file in similar manner as svstat does, however, the file is accessible only for root by default (This is feature of supervise program), therefore svstat.plugin has to have suid flag set or CAP_DAC_READ_SEARCH capability on linux.
The plugin skips all subdirectories starting with . character.
qmail.plugin is a netdata external plugin. It detects qmail presence by checking /var/log/qmail directory existence and there it locates all subdirectories containing smtp or send in theirs name and prepares data collector for each one of them.
It skips all directories starting with . character.
For smtp it collects:
- connection with status
okordeny, - average number of connections,
- end statuses for
0,256,25600or other value, - connection via SMTP protocol type
SMTPorESMTPS, - usage of TLS protocol version
TLS1,TLS_1,TLS_1.1,TLS_1.2,TLS_1.3or unknown.
For send it collects:
- number of
start deliveryandend msg, - number of delivery
success,failureordeferral.
For queue it collects:
- number of files in
messdirectory and its subdirectories - number of files in
tododirectory and its subdirectories
The plugin expects mess and todo to be located in /var/qmail/queue.
This plugin is currently Linux specific.
scanner.plugin is a netdata external plugin for monitoring of scannerd, which is proprietary software with a log output similar to qmail-scanner. It detects scannerd presence by locating all directories with scannerd substring in its name inside /var/log directory and prepares a data collector for each one of them. The plugin is deactivated if there is no such directory.
It skips all directories starting with . character.
It collects:
- Emails with status
Clear,CLAMDSCAN,SPAM-TAGGED,SPAM-REJECTEDandSPAM-DELETED - Spam Cache hits
- Antivirus Cache hits
- Duration of scan
The qmail-scanner does not measure Spam Cache hits and Antivirus Cache hist, but the collector should work for it either. However, it was not tested.
This plugin is currently Linux specific.
All plugins are configured via netdata.conf. For example, user may wish to change granularity of data gathering by svstat.plugin to 10 seconds:
[plugin:svstat]
update every = 10
# command options =All plugins accept value from update every parameter as a first argument (1 second by default). The second optional argument, from command options parameter, is a path to a directory, which plugin tries to set as a working directory at the beginning of its execution. For example, user may wish to set default path of a daemontools service directory to /run/service (rather than default /service) for svstat.plugin:
[plugin:svstat]
update every = 10
command options = /run/serviceIt is possible to restart service by sending signal QUIT, TERM or INT (with command pkill qmail.plugin for example) and qmail.plugin quits successfully
It will be started by netdata again.
This may be wanted if the plugin have been updated or new log directory have been introduced.