sure,
installed package pmacct with pakfire.
follow this instructions https://github.com/ummeegge/IPFire-Pmacct-Web-Interface
sudo cp pmacct.cgi /srv/web/ipfire/cgi-bin/pmacct.cgi
sudo chmod 755 /srv/web/ipfire/cgi-bin/pmacct.cgi
sudo chown nobody:nobody /srv/web/ipfire/cgi-bin/pmacct.cgi
After restart it doesn’t work
then i follow this instructions www.ipfire.org - pmacct using SQLite3
and complete the pmccat.conf with plugin2
etc/pmacct/pmacct.conf
! Pmacctd configuration file for IPFire environment
!
!----------------------------------- global -----------------------------------
syslog: daemon
daemonize: true
debug: false
promisc: true
pcap_interface: green0
imt_mem_pools_number: 256
plugins: memory[plugin1], sqlite3[plugin2]
!----------------------------------- memory -----------------------------------
!
! “plugin1” plugin configuration
!
plugin_buffer_size[plugin1]: 102400
plugin_pipe_size[plugin1]: 10240000
imt_path[plugin1]: /var/spool/pmacct/plugin1.pipe
aggregate[plugin1]: src_host, src_port, src_mac, dst_host, dst_port, dst_mac, proto
aggregate_filter[plugin1]: ip
!----------------------------------- sqlite3 ----------------------------------
!
! “plugin2” plugin configuration
!
sql_db[plugin2]: /var/spool/pmacct/pmacct_sqlitev1.db
sql_table_version[plugin2]: 1
sql_history[plugin2]: 60m
sql_refresh_time[plugin2]: 900
sql_history_roundoff[plugin2]: m
aggregate[plugin2]: src_host, src_port, src_mac, dst_host, dst_port, dst_mac, proto
aggregate_filter[plugin2]: ip
Error message when starting the module:
cat /var/log/messages | grep pmacct
WARN ( default/core ): connection lost to ‘plugin2-sqlite3’; closing connection.
WARN ( default/core ): connection lost to ‘plugin1-memory’; closing connection.
WARN ( default/core ): no more plugins active. Shutting down.
INFO ( default/core ): Start logging …
INFO ( default/core ): Promiscuous Mode Accounting Daemon, pmacctd 1.7.9 (RELEASE)
INFO ( default/core ): ‘–prefix=/usr’ ‘–sysconfdir=/etc/pmacct’ ‘–enable-sqlite3’ ‘–enable-l2’ ‘–enable-jansson’ ‘CFLAGS=-O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -m64 -mtune=generic -fcf-protection=full -std=gnu17’ ‘CXXFLAGS=-O2 -g0 -pipe -Wall -fexceptions -fPIC -Wp,-U_FORTIFY_SOURCE -Wp,-D_FORTIFY_SOURCE=3 -Wp,-D_GLIBCXX_ASSERTIONS -fstack-protector-strong -fstack-clash-protection -m64 -mtune=generic -fcf-protection=full’ ‘–enable-traffic-bins’ ‘–enable-bgp-bins’ ‘–enable-bmp-bins’ ‘–enable-st-bins’
INFO ( default/core ): Reading configuration file ‘/etc/pmacct/pmacct.conf’.
INFO ( default/core ): [green0,0] link type is: 1
INFO ( plugin2/sqlite3 ): cache entries=32771 base cache memory=12975392 bytes
OK ( plugin1/memory ): waiting for data on: ‘/var/spool/pmacct/plugin1.pipe’
INFO ( plugin2/sqlite3 ): *** Purging cache - START (PID: 8557) ***
INFO ( plugin2/sqlite3 ): *** Purging cache - END (PID: 8557, QN: 92/92, ET: 0) ***
@ummeegge Instead of the first github source i downloaded now the new source
@jon My troubleshooting is not listed because the module is not loaded due to missing plugins. This is probably why the settings page is not working either.
tail -50 /var/log/httpd/error_log
This gives only me a lot of errors for conections.cgi, but not for pmacct.cgi.
reboot but no difference in the log messages.
Greetz