Projet

Général

Profil

Paste
Télécharger au format
Statistiques
| Branche: | Révision:

root / plugins / znc @ 17f78427

Nom Taille Révision Âge Auteur Commentaire
  example-graphs e148716e presque 9 ans dipohl Plugin-Gallery: Include images (change names of...
README.md 1,49 ko 17f78427 plus de 7 ans Lars Kruse Whitespace cleanup * remove trailing whitespac...
znc_logs.py 7,28 ko c81c20ab plus de 7 ans Lars Kruse unify DIRTYCONFIG handling in shell and python ...

Dernières révisions

# Date Auteur Commentaire
17f78427 2018-08-01 20:33 Lars Kruse

Whitespace cleanup

  • remove trailing whitespace
  • remove empty lines at the end of files
c81c20ab 2018-04-06 20:17 Lars Kruse

unify DIRTYCONFIG handling in shell and python plugins

The following issues were fixed:
  • comparison too broad (e.g. "0" misinterpreted as "true")
  • python: comparing string with number (is never equal in python)
  • unwanted non-zero exitcode (compound command "&&" as last command in...
e148716e 2017-02-24 21:08 dipohl

Plugin-Gallery: Include images (change names of image files)

ed77c82d 2017-02-22 17:20 dipohl

Category Tree: Reduce number of categories
multiple plugins -> "mail" (qsmtpd, zimbra)
ossec -> "security" (ossec)
zeo -> appserver (zope)

b17436fe 2015-08-06 07:08 Paul Saunders

Rework to tail_open log files

0ec85268 2015-02-02 07:48 Thor77

add readme

2aa34846 2015-02-02 07:25 Thor77

add example graph

9bc39fb2 2015-02-02 07:01 Thor77

fix issue on logrotate

8fe960de 2015-01-31 09:42 Thor77

add znc_logs plugin

Voir les révisions

README


ZNC-Logs

Configuration

  1. Make sure Python3 is installed and added to your path, this plugin will try to use /usr/bin/python3

  2. Enable the log-plugin in znc (if you enable it for the complete instance, there will be some issues because this plugin only uses the network-name + channel-name, if there are some networks with the same name, it will count all lines together)

  3. Add this to your /etc/munin/plugin-conf.d/munin-node [znc_logs] user $your_znc_user group $your_znc_group env.logdir $path_to_znc_logs $your_znc_user has to be an user, which can list $path_to_znc_logs and read all files in this directory.

  4. Run sudo wget -O /usr/share/munin/plugins/znc_logs https://raw.githubusercontent.com/munin-monitoring/contrib/master/plugins/znc/znc_logs.py to download the znc_logs.py file from github to /usr/share/munin/plugins/znc_logs (of course you can use any directory you want)

  5. Make the plugin-file executable sudo chmod +x /usr/share/munin/plugins/znc_logs

  6. Enable the plugin with sudo ln -s /usr/share/munin/plugins/znc_logs /etc/munin/plugins/

  7. Try the plugin with sudo munin-run znc_logs

  8. Restart munin-node to load the plugin: sudo service munin-node restart

FAQ

What is ZNC?

ZNC is an IRC-Bouncer (a proxy to irc), further information: znc.in

What does this plugin do?

This plugin counts the lines/minute in znc's log-files

Contact

If you experience any issues, feel free to contact me at thor77[at]thor77.org

Formats disponibles : Atom