monitorix(8)
π monitorix(8) β the Monitorix collector daemon, bestie edition π
okay so you found monitorix(8) in the manual and you're like "what even is this" β don't worry, I got you. It's the Monitorix collector daemon, a lightweight system monitoring tool, and honestly it's kind of iconic. Let's go β¨
πΈ SYNOPSIS πΈ
monitorix -c configfile [-p pidfile] [-d none | graph[,graph] | all]
[-v] [-n] [-u] [-s splitpolicy] [-e
report=<timeframe>,graphs=<graph>[+graph][+graph...],to=<email>]
like, yes, that's a lot of brackets, but it's giving "choose your own adventure" and we love that for us π¦
π DESCRIPTION π
So. This Perl daemon starts up the main Monitorix process, and what that process does is gather statistics about the system it's running on and store all that info in a set of RRD files. That's it, that's the whole job. no cap, it just vibes there collecting data π
β¨ OPTIONS β¨
-cconfigfile β this is where you point it at the main configuration file. the default location changes depending on your OS, so pay attention bestie:- Linux:
/etc/monitorix/monitorix.conf - FreeBSD:
/usr/local/etc/monitorix.conf
- Linux:
also!! extra configuration files can live in /etc/monitorix/conf.d, and they get loaded right after the main config file β which means they override the previous options. so like, later files get the final say π«Ά
-ppidfile β stores the daemon's process ID into whatever file you specify. classic PID-file behaviour, we stan.-d none | graph[,graph] | allβ this one logs more info about what monitorix is doing internally. the keys reflect whether the data collected has to be displayed in each case:- if you say
all, the collected data of all enabled graphs gets shown. - if you say
none, no collected data gets shown at all. - and you can also give a comma-separated list of graph names and only those graphs' collected data will show up.
- if you say
for a reference of all the graph names, check out the option graph_name inside the monitorix.conf configuration file π₯
-vβ displays version information. that's it. short and sweet.-nβ this argument stops Monitorix from daemonizing, which forces it to run in the foreground. super useful for debugging, ngl. like when you wanna actually watch what's happening instead of it sneaking off into the background π-uβ this forces Monitorix to run under the regular user who started it. BUT (and this is the important part, don't skip it) you gotta make sure that user has write permissions to the directory and files pointed at by the optionsbase_dir,base_libandlog_fileβ and that's for both monitorix and for the HTTP built-in server. also you should know that some graphs might not work, because only therootuser is capable of getting those statistics. check the log files after starting Monitorix in this mode, fr fr π-ssplitpolicy β decides which part of a line in the config file counts as the key and which one counts as the value. the split policy accepts these values:guessβ which is the defaultwhitespaceβ causes Monitorix to split by whitespaceequalsignβ causes it to split strictly by the equal sign
-e report=<timeframe>,graphs=<graph>[+graph][+graph...],to=<email>β this lets you send email reports unscheduled, meaning at literally any time you want. the best part? you don't need to stop your current Monitorix instance β just run a new one with the new-eparameter, and once the job is done it terminates itself without affecting your current Monitorix instance. main character energy, honestly π
here's an example of sending an email report that includes the last day of the system, kernel and hptemp graphs to the user@example.com email address:
# monitorix -c </etc/monitorix/conf.d/local.conf> -e
report=daily,graphs=system+kern+hptemp,to=user@example.com
heads up bestie: this option requires you to have previously enabled the emailreports module. no module, no email π
π SIGNALS π
when it receives a SIGHUP, monitorix will close and reopen its log file β provided that it has a filename defined. this is useful in scripts that rotate and age log files. very demure, very mindful.
β οΈ note that the configuration file is not re-read. so don't expect a SIGHUP to magically reload your config, because it will not π
π¦ FILES π¦
the following set of files gets created on every startup:
<base_dir>/cgi/monitorix.conf.pathβ stores the path of configfile and other information.<base_dir>/cgi/monitorix.hplogβ stores the output of thehplogcommand.<base_dir>/index.htmlβ the HTML main page.
π AUTHOR π
Monitorix is written by Jordi Sanfeliu <jordi@fibranet.cat> β legend behaviour, honestly π«Ά
π COPYRIGHT π
Copyright Β© 2005-2024 Jordi Sanfeliu Licensed under the GNU General Public License version 2 (GPLv2).
β SEE ALSO β
monitorix.conf(5) β go read it, iykyk π
and that's the whole page! this beauty is from Monitorix version 3.16.0, dated Nov 2024, and it's the monitorix(8) manual π slay, you made it to the end, go monitor some systems bestie π
π¦ where this page comes from
- epel 10: monitorix 3.16.0-1.el10_2 Β· GPLv2+
- epel 9: monitorix 3.16.0-1.el9 Β· GPLv2+
- fedora 43: monitorix 3.16.0-3.fc43 Β· GPL-2.0-or-later
- fedora 44: monitorix 3.16.0-4.fc44 Β· GPL-2.0-or-later
- Copyright (C) 2005-2024 by Jordi Sanfeliu <jordi@fibranet.cat>
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms