{"id":333,"date":"2013-03-11T13:33:04","date_gmt":"2013-03-11T12:33:04","guid":{"rendered":"http:\/\/sam-soul.fr\/Info\/?p=333"},"modified":"2013-03-11T13:33:04","modified_gmt":"2013-03-11T12:33:04","slug":"zabbix-user-parameter","status":"publish","type":"post","link":"http:\/\/les-fougs.com\/wordpress\/2013\/03\/11\/zabbix-user-parameter\/","title":{"rendered":"Zabbix User Parameter"},"content":{"rendered":"<p><a href=\"http:\/\/www.zabbix.com\/documentation\/1.8\/manual\/config\/user_parameters\">http:\/\/www.zabbix.com\/documentation\/1.8\/manual\/config\/user_parameters<\/a><\/p>\n<h2>To create a new probe.<\/h2>\n<p>Create script in \/exploit\/script folder.<\/p>\n<p><strong>cd \/exploit\/script<\/strong><\/p>\n<p>Example : <strong>toto.sh<\/strong> (with passing a parameter eg)<\/p>\n<p>give execution rights<br \/>\n<strong>chmod 755 toto.sh<\/strong><\/p>\n<p>Add UserParameter at the end of the file zabbix_agentd.conf<\/p>\n<p><strong>vi \/etc\/zabbix\/zabbix_agentd.conf<\/strong><\/p>\n<p>Example: UserParameter=system.toto[*],\/exploit\/script\/toto.sh $1<\/p>\n<p><strong>K99zabbix-agent<\/strong><\/p>\n<p><strong>S99zabbix-agent<\/strong><\/p>\n<h2><strong><\/strong>To use the new probe in Zabbix.<\/h2>\n<p>Create an Item<br \/>\nDescription: <em>itemname<\/em><br \/>\nType: Zabbix agent<br \/>\nkey: system.toto[param] (param = the value passed as a parameter)<br \/>\nType of information: text<br \/>\nInterval: 30 (or other)<\/p>\n<h2>UserParameter up<\/h2>\n<p><strong>vi \/etc\/zabbix\/zabbix_agentd.conf<\/strong><\/p>\n<p>UserParameter=zab_mem_free,\/exploit\/scripts\/zab_mem_free.sh<br \/>\nUserParameter=zab_proc_mem[*],\/exploit\/scripts\/zab_proc_mem.sh $1<br \/>\nUserParameter=zab_proc_cpu[*],\/exploit\/scripts\/zab_proc_cpu.sh $1<\/p>\n<p>UserParameter=zab_proc[*],\/exploit\/scripts\/zab_proc.sh $1 $2<br \/>\nUserParameter=zab_web_sans[*],\/exploit\/scripts\/zab_web_sans.sh $1<br \/>\nUserParameter=zab_web_avec[*],\/exploit\/scripts\/zab_web_avec.sh $1<\/p>\n<p>Probes on <strong>all<\/strong> the Linux server :<br \/>\nzab_mem_free (doesn\u2019t work on Venus)<br \/>\nzab_proc_mem<br \/>\nzab_proc_cpu<\/p>\n<p>Other specifics Probes :<\/p>\n<table border=\"0\">\n<tbody>\n<tr>\n<td>Probe<\/td>\n<td>VMONI<\/td>\n<td>VPALODEV1<\/td>\n<\/tr>\n<tr>\n<td>topcpu<\/td>\n<td><\/td>\n<td>OK<\/td>\n<\/tr>\n<tr>\n<td>zab_web_avec<\/td>\n<td>OK<\/td>\n<td><\/td>\n<\/tr>\n<tr>\n<td>zab_web_sans<\/td>\n<td>OK<\/td>\n<td><\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n","protected":false},"excerpt":{"rendered":"<p>http:\/\/www.zabbix.com\/documentation\/1.8\/manual\/config\/user_parameters To create a new probe. Create script in \/exploit\/script folder. cd \/exploit\/script Example : toto.sh (with passing a parameter eg) give execution rights chmod 755 toto.sh Add UserParameter at the end of the file zabbix_agentd.conf vi \/etc\/zabbix\/zabbix_agentd.conf Example: UserParameter=system.toto[*],\/exploit\/script\/toto.sh $1 K99zabbix-agent S99zabbix-agent To use the new probe in Zabbix. Create an Item Description: itemname &hellip; <a href=\"http:\/\/les-fougs.com\/wordpress\/2013\/03\/11\/zabbix-user-parameter\/\" class=\"more-link\">Continuer la lecture<span class=\"screen-reader-text\"> de &laquo;&nbsp;Zabbix User Parameter&nbsp;&raquo;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[52],"tags":[],"_links":{"self":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/333"}],"collection":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/comments?post=333"}],"version-history":[{"count":0,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/posts\/333\/revisions"}],"wp:attachment":[{"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/media?parent=333"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/categories?post=333"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/les-fougs.com\/wordpress\/wp-json\/wp\/v2\/tags?post=333"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}