zabbix how to configure collect this data only each 15s
To configure Zabbix to poll items every 15 seconds, you need to modify both Zabbix server/proxy configuration and the item configuration.
Here’s a step-by-step guide:
1. Zabbix Server Configuration
Zabbix by default polls items at minimum 60 seconds. To allow faster intervals like 15 seconds, you need to enable this behavior.
Edit the Zabbix server config file:
sudo nano /etc/zabbix/zabbix_server.conf
Add or update the following line:
StartPollers=20
StartPollersUnreachable=10
StartTimers=10
CacheUpdateFrequency=60
CacheSize=128M
TrendCacheSize=64M
While these aren't strictly for 15s polling, they help improve responsiveness. More importantly, for polling faster than 60 seconds, Zabbix supports "preprocessing" and "Zabbix agent (active)" or external checks.
2. Enable Fast Polling for Items
Zabbix allows item intervals below 60s only for:
Zabbix agent (active)
Zabbix trapper
External checks
Zabbix agent (passive) (if configured appropriately)
Set the item interval to 15 seconds:
Go to: Configuration > Hosts > [Your Host] > Items
Create or edit an item.
Set:
Type: Zabbix agent (active) (recommended for fast intervals)
Update interval: 15s (you can enter this manually)
Passive items might get ignored or throttled by the server if set below 60s due to default configuration.
3. Zabbix Agent Configuration (if using active checks)
On the monitored host:
Edit:
sudo nano /etc/zabbix/zabbix_agentd.conf
Set:
ServerActive=your_zabbix_server_ip_or_hostname
Hostname=your_host_name
Ensure your Hostname here matches what's configured in the Zabbix frontend exactly.
4. Restart Services
After changes, restart the relevant services:
On Zabbix server:
sudo systemctl restart zabbix-server
On monitored host (agent):
sudo systemctl restart zabbix-agent
5. Test and Monitor
Check the item’s latest data to verify it’s updating every 15 seconds.
Use zabbix_get or logs (/var/log/zabbix/zabbix_agentd.log) for debugging.
Notes
Zabbix frontend might still show graph points every 60s depending on the trend settings, but raw item data will have 15s granularity.
Frequent polling increases load — monitor performance and scale accordingly.
There's no 'special' configuration for the Zabbix web frontend, you set it up like any other PHP website. Set the webroot to /usr/local/www/zabbix7/ (for Zabbix 7) and you should be good to go.i'm looking for a zabbix install tutorial on the web. By preference with nginx.
www
user would need to have write access to some files (which it doesn't have by default). If you mean grafana dashboards from zabbix source, there is alexanderzobnin-zabbix-datasource for grafana (https://github.com/grafana/grafana-zabbix). Works like a charm.Does someone knows the zabbix database scheme ?
I think some tables have the time series related to an id. And another table relating this id to a name.
Also too bad zabbix does not integrate with grafana.
Did not worked,If you mean grafana dashboards from zabbix source, there is alexanderzobnin-zabbix-datasource for grafana (https://github.com/grafana/grafana-zabbix). Works like a charm.
root@:/usr/local/etc/nginx # cat nginx.conf
user www www;
worker_processes auto;
# This default error log path is compiled-in to make sure configuration parsing
# errors are logged somewhere, especially during unattended boot when stderr
# isn't normally logged anywhere. This path will be touched on every nginx
# start regardless of error log location configured here. See
# https://trac.nginx.org/nginx/ticket/147 for more info.
#
#error_log /var/log/nginx/error.log;
#
#pid logs/nginx.pid;
events {
worker_connections 1024;
}
http {
include mime.types;
default_type application/octet-stream;
#log_format main '$remote_addr - $remote_user [$time_local] "$request" '
# '$status $body_bytes_sent "$http_referer" '
# '"$http_user_agent" "$http_x_forwarded_for"';
#access_log logs/access.log main;
sendfile on;
#tcp_nopush on;
#keepalive_timeout 0;
keepalive_timeout 65;
#gzip on;
server {
listen 80;
server_name myfreebsd; # Change to your domain name or IP address
root /usr/local/www/zabbix74; # Your web root
index index.php index.html index.htm;
location / {
try_files $uri $uri/ =404;
}
# This block processes PHP files
location ~ \.php$ {
root /usr/local/www/zabbix74; # Ensure this matches your web root
fastcgi_pass 127.0.0.1:9000; # Use the IP address and port here
fastcgi_index index.php;
include fastcgi_params;
fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name;
}
}
}
To clearify:Did not worked,
Grafana-server Init Failed: Could not find config defaults, make sure homepath command line parameter is set or working directory is homepath