I tried to install munin & configure apache. But it just didn't work for me. You need to fine-tune apache.
If it works for someone i'm interested.
If it works for someone i'm interested.
Looks pretty straight-forward. Just look at the files it installsBut this is the guide for linux.
Apache CGI Configuration — Munin 2.999.10-detached-2018-12-16-c13-g47debb5 documentation I must make little small changes to this file, but the correct ones.
pkg info -l munin-master
. If I just look at the pkg-plist it's pretty easy to 'translate' those Linux based directories to the ones the FreeBSD package/port installs./etc/munin/static -> /usr/local/etc/munin/static/
/usr/lib/munin/cgi/munin-cgi-graph -> /usr/local/www/cgi-bin/munin-cgi-graph
/usr/lib/munin/cgi/munin-cgi-html -> /usr/local/www/cgi-bin/munin-cgi-html
/usr/lib/munin/cgi -> /usr/local/www/cgi-bin
/var/www -> /usr/local/www/munin
pkg install munin-master munin-node munin-contrib
## /usr/local/etc/lighttpd/lighttpd.conf
##
var.log_root = "/var/log/lighttpd"
var.server_root = "/usr/local/www/munin"
var.state_dir = "/run"
var.home_dir = "/var/run/lighttpd"
var.conf_dir = "/usr/local/etc/lighttpd"
var.vhosts_dir = server_root + "/vhosts"
var.cache_dir = "/var/cache/lighttpd"
var.socket_dir = home_dir + "/sockets"
include "modules.conf"
server.port = 80
server.username = "www"
server.groupname = "www"
server.document-root = "/usr/local/www" + "/munin"
server.errorlog = log_root + "/error.log"
include "conf.d/access_log.conf"
include "conf.d/debug.conf"
server.network-backend = "writev"
server.max-fds = 2048
server.stat-cache-engine = "simple"
server.max-connections = 1024
index-file.names += ("index.xhtml", "index.html", "index.htm", "default.htm", "index.php")
url.access-deny = ( "~", ".inc" )
static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" )
include "conf.d/mime.conf"
include "conf.d/dirlisting.conf"
# IPv4 listening socket
$SERVER["socket"] == "0.0.0.0:80" { }
includedir /usr/local/etc/munin/munin-conf.d
graph_strategy cron
html_strategy cron
# a simple host tree
[Munin-APU1]
address 127.0.0.1
use_node_name yes
[8470p]
address 192.168.1.100
use_node_name yes
[E6420]
address 192.168.1.111
use_node_name yes
[debian]
address 192.168.1.123
use_node_name yes
# Example config-file for munin-node
#
log_level 4
log_file /var/log/munin/munin-node.log
pid_file /var/run/munin/munin-node.pid
background 1
setsid 1
user root
group wheel
# Regexps for files to ignore
ignore_file [\#~]$
ignore_file DEADJOE$
ignore_file \.bak$
ignore_file %$
ignore_file \.dpkg-(tmp|new|old|dist)$
ignore_file \.rpm(save|new)$
ignore_file \.pod$
ignore_file \.sample$
allow ^127\.0\.0\.1$
allow ^::1$
# Which address to bind to;
host *
# host 127.0.0.1
# And which port
port 4949
DEFAULT_VERSIONS+=perl=5.32
DEFAULT_VERSIONS+=perl5=5.32
#!/usr/local/bin/perl
print "Content-Type: text/html\n\n";
print ("<h1>Perl is working!</h1>");
Thanks for the info , but it differs alot from this one,I will post my basic setup if you want. Nothing fancy. Munin installs rrd.
pkg install munin-master munin-node munin-contrib
Code:## /usr/local/etc/lighttpd/lighttpd.conf ## var.log_root = "/var/log/lighttpd" var.server_root = "/usr/local/www/munin" var.state_dir = "/run" var.home_dir = "/var/run/lighttpd" var.conf_dir = "/usr/local/etc/lighttpd" var.vhosts_dir = server_root + "/vhosts" var.cache_dir = "/var/cache/lighttpd" var.socket_dir = home_dir + "/sockets" include "modules.conf" server.port = 80 server.username = "www" server.groupname = "www" server.document-root = "/usr/local/www" + "/munin" server.errorlog = log_root + "/error.log" include "conf.d/access_log.conf" include "conf.d/debug.conf" server.network-backend = "writev" server.max-fds = 2048 server.stat-cache-engine = "simple" server.max-connections = 1024 index-file.names += ("index.xhtml", "index.html", "index.htm", "default.htm", "index.php") url.access-deny = ( "~", ".inc" ) static-file.exclude-extensions = ( ".php", ".pl", ".fcgi", ".scgi" ) include "conf.d/mime.conf" include "conf.d/dirlisting.conf" # IPv4 listening socket $SERVER["socket"] == "0.0.0.0:80" { }
net-mgmt/zabbix6-frontend builds with PHP 7.4 even if you set the default to some other PHP version. If you use packages make sure to install zabbix6-frontend-php74, so you get the PHP 7.4 'flavor'.And zabbix needs php < 80
Is this for munin version 2.0.69 ?Host monitoring node. /usr/local/etc/munin/munin-node.conf
Code:# Example config-file for munin-node # log_level 4 log_file /var/log/munin/munin-node.log pid_file /var/run/munin/munin-node.pid background 1 setsid 1 user root group wheel # Regexps for files to ignore ignore_file [\#~]$ ignore_file DEADJOE$ ignore_file \.bak$ ignore_file %$ ignore_file \.dpkg-(tmp|new|old|dist)$ ignore_file \.rpm(save|new)$ ignore_file \.pod$ ignore_file \.sample$ allow ^127\.0\.0\.1$ allow ^::1$ # Which address to bind to; host * # host 127.0.0.1 # And which port port 4949
pkg
message to activate plugins.If this is a fresh install run
/usr/local/sbin/munin-node-configure --shell | sh -x
to install the plugins automatically.
service start munin-node
telnet localhost 4949
list
config cpu
munin-node-configure
lighttpd-1.4.64_1 Secure, fast, compliant, and flexible Web Server
munin-common-2.0.69 Common components between a munin node and server
munin-contrib-g.2021.04.27 Contributed plugins and other for munin
munin-master-2.0.69 Collector part of Munin
munin-node-2.0.69 Node-specific part of Munin
spawn-fcgi -s /var/run/munin/fastcgi-graph.sock -U 80 -u 842 -g 842 /usr/local/www/cgi-bin/munin-cgi-graph
spawn-fcgi -s /var/run/munin/fastcgi-html.sock -U 80 -u 842 -g 842 /usr/local/www/cgi-bin/munin-cgi-html
#MUNIN
server {
listen 127.0.0.1:33331;
server_name 127.0.0.1:33331;
root /usr/local/www/munin/;
allow 127.0.0.1;
deny all;
autoindex on;
location ^~ /usr/local/www/cgi-bin/ {
fastcgi_split_path_info ^(/munin-cgi/munin-cgi-graph)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-graph.sock;
include fastcgi_params;
}
location /munin/static/ {
alias /usr/local/etc/munin/static/;
}
location /munin/ {
fastcgi_split_path_info ^(/munin)(.*);
fastcgi_param PATH_INFO $fastcgi_path_info;
fastcgi_pass unix:/var/run/munin/fastcgi-html.sock;
include fastcgi_params;
}
}
Yes another CGI example.Thanks for the info , but it differs alot from this one,