≡ Menu

vnstat command

How do Install view vnstat - a network console output using my web-browser? How do I install vnstat php frontend on CentOS / RHEL / Fedora Linux based system?
[click to continue…]

How do I install vnstat software - a console-based network traffic monitor under CentOS or RHEL or Fedora Linux operating system to keep a log of hourly, daily and monthly network traffic?
[click to continue…]

I've created a file as follows:

ls -l -Z /etc/cron.d/vnstat
-rw-r--r--. root root system_u:object_r:system_cron_spool_t:s0 /etc/cron.d/vnstat

I've created a new file /etc/cron.d/vnstat.custom.interface:

ls -l -Z /etc/cron.d/vnstat.custom.interface
-rw-r--r--. root root unconfined_u:object_r:system_cron_spool_t:s0 /etc/cron.d/vnstat.custom.interface

The /etc/cron.d/vnstat is part of default vnstat package. I've installed my own version of the same. But, due to SELinux security cron job is not running. How do I change file SELinux security contex under RHEL / CentOS 6 Linux server to system_u:object_r:system_cron_spool_t:s0 from unconfined_u:object_r:system_cron_spool_t:s0 for /etc/cron.d/vnstat.custom.interface file?
[click to continue…]

How do I install vnStat under FreeBSD 8 operating system to keep track of my network traffic?
[click to continue…]