Ad Widget
Collapse
Zabbix for large environment setups
Collapse
X
-
Debian-User
Sorry for my bad english
Comment
-
Correct me if I'm wrong, but auto discovery won't add a new proxy into the administration-> DM section. I actually need to do this myself and will be writing a script to do it in the somewhat near future. I'd be happy to share it hear when I'm done (it will be in PHP using the API).Comment
-
@heaje,
Thats what I also thought. If I'm right In an earlier post in this topic somebody altered the proxy init scripts. And used the api to add the proxies to the zabbix server.
As we use puppet to configure/manage our servers in our environment, I want to try to do this with puppet in combination with the zabbix api.Comment
-
@Colttt
I mean, we have 8 x SSD for Zabbix DB server and thinking the best way to utilise these disks. For now we decided:
1) softraid
2) system on mirror + 2 spares
3) pg data on raid1+0 (16K chunks, as said by Intel and shows best perf. with pgbench)
4) pg xlog on raid1 + 2 spares
It seems okay?Comment
-
Hi,I use a lot of external scripts that capture data so I utilize Zabbix sender.(if you can collect a number of values at once, Zabbix sender is very efficient at doing bulk updates)
I have modified the frontend to show more than the last 20 issues on the dashboard.
I have modified the frontend to reduced the time a trigger stays on the trigger status page when it has returned to an Okay state.
Which zabbix version do you have ?
Could you share how your changes for the above ?
Thanks a lot !Comment
-
I don't back up the databases (server or proxies), just the templates. If it croaks, then it will have to be rebuild it. I made sure that was well known to management, though I'm sure they'll forget by the day it fails.Comment
-
Correct. The the init script curls a php script, which is what creates the host and assigns the templates based on the environment (test/prod).
Here's the function I use to do that:
PHP Code:function AddHost($host,$ip,$env){
/*
This function will add a host to the zabbix database
based on hostname and IP address. It uses the default
group "Production Servers" and "Linux" as the template.
*/
try{
$api = new ZabbixApi('http://my_webserver/api_jsonrpc.php', 'myuser','mypass');
}catch(Exception $e){
echo $e->getMessage();
exit;
}//end try
$port='10050';
$useip='1';
if($env =='p'){
$groups=array(array("groupid"=>7));
}else{
$groups=array(array("groupid"=>6));
}
$templates=array(
"templateid"=>10021
);
$result=$api->hostCreate(
array(
"host"=>$host,
"interfaces"=>array(
'type'=>1,
'main'=>1,
'useip'=>1,
'ip'=>"$ip",
'dns'=>"$host",
'port'=>'10050'
),
"groups"=>$groups,
"templates"=>$templates
)
);
}//end function
Comment
-
No
Using proxies is about scaling up process of collecting monitoring data from monitored hosts.
Database queries speed/latency impacts process of processing those data on server (evaluating those data against trigger.definitions, processing alarms data, storing monitoring data in history tables, create trends data and few more which are done only on the zabbix server).
http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
https://kloczek.wordpress.com/
zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
My zabbix templates https://github.com/kloczek/zabbix-templatesComment
-
With current version (v5) it does help. Now you can do high frequency monitoring of items and -for example- filter values so only changes are passed to the server (optionally with a heartbeat)
No
Using proxies is about scaling up process of collecting monitoring data from monitored hosts.
Database queries speed/latency impacts process of processing those data on server (evaluating those data against trigger.definitions, processing alarms data, storing monitoring data in history tables, create trends data and few more which are done only on the zabbix server).
This allows for quick responses and offloads quite a lot of work to the proxies.
Comment
-
That type of filters are available since 4.8.x.With current version (v5) it does help. Now you can do high frequency monitoring of items and -for example- filter values so only changes are passed to the server (optionally with a heartbeat)
This allows for quick responses and offloads quite a lot of work to the proxies.http://uk.linkedin.com/pub/tomasz-k%...zko/6/940/430/
https://kloczek.wordpress.com/
zapish - Zabbix API SHell binding https://github.com/kloczek/zapish
My zabbix templates https://github.com/kloczek/zabbix-templatesComment
Comment