thecamels / zabbix Goto Github PK
View Code? Open in Web Editor NEWScript and templates for Zabbix
Home Page: https://thecamels.org
Script and templates for Zabbix
Home Page: https://thecamels.org
Can you tell me where to put bin/opcache.php? I put it into apache directory so it could be accessed from http://127.0.0.1/zabbix/opcache.php. But in Zabbix [OPcache] Version reads like following.
<style> body { font-family: "Helvetica Neue",Helvetica,Arial,sans-serif; margin: 0; padding: 0; } #container {
width: 1024px;
margin: auto;
position: relative;
}
h1 {
padding: 10px 0;
}
table {
border-collapse: collapse;
}
tbody tr:nth-child(even) {
background-color: #eee;
}
p.capitalize {
text-transform: capitalize;
}
.tabs {
position: relative;
float: left;
width: 60%;
}
.tab {
float: left;
}
.tab label {
background: #eee;
padding: 10px 12px;
border: 1px solid #ccc;
margin-left: -1px;
position: relative;
left: 1px;
}
.tab [type=radio] {
display: none;
}
.tab th, .tab td {
padding: 8px 12px;
}
.content {
position: absolute;
top: 28px;
left: 0;
background: white;
border: 1px solid #ccc;
height: 450px;
width: 100%;
overflow: auto;
}
.content table {
width: 100%;
}
.content th, .tab:nth-child(3) td {
text-align: left;
}
.content td {
text-align: right;
}
.clickable {
cursor: pointer;
}
[type=radio]:checked ~ label {
background: white;
border-bottom: 1px solid white;
z-index: 2;
}
[type=radio]:checked ~ label ~ .content {
z-index: 1;
}
#graph {
float: right;
width: 40%;
position: relative;
}
#graph > form {
position: absolute;
right: 60px;
top: -20px;
}
#graph > svg {
position: absolute;
top: 0;
right: 0;
}
#stats {
position: absolute;
right: 125px;
top: 145px;
}
#stats th, #stats td {
padding: 6px 10px;
font-size: 0.8em;
}
#partition {
position: absolute;
width: 100%;
height: 100%;
z-index: 10;
top: 0;
left: 0;
background: #ddd;
display: none;
}
#close-partition {
display: none;
position: absolute;
z-index: 20;
right: 15px;
top: 15px;
background: #f9373d;
color: #fff;
padding: 12px 15px;
}
#close-partition:hover {
background: #D32F33;
cursor: pointer;
}
#partition rect {
stroke: #fff;
fill: #aaa;
fill-opacity: 1;
}
#partition rect.parent {
cursor: pointer;
fill: steelblue;
}
#partition text {
pointer-events: none;
}
label {
cursor: pointer;
}
</style>
<script src="//cdnjs.cloudflare.com/ajax/libs/d3/3.0.1/d3.v3.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/jquery/1.11.0/jquery.min.js"></script>
<script>
var hidden = {};
function toggleVisible(head, row) {
if (!hidden[row]) {
d3.selectAll(row).transition().style('display', 'none');
hidden[row] = true;
d3.select(head).transition().style('color', '#ccc');
} else {
d3.selectAll(row).transition().style('display');
hidden[row] = false;
d3.select(head).transition().style('color', '#000');
}
}
</script>
<title>PHP 5.6.21 with OpCache 7.0.6-dev</title>
<div class="tabs">
<div class="tab">
<input type="radio" id="tab-status" name="tab-group-1" checked>
<label for="tab-status">Status</label>
<div class="content">
<table>
<tr><th>opcache_enabled</th><td>true</td></tr>
Can you add Zabbix 2.4.8 support for your cpanel template?
When I try to import I get this error
Details | ERROR: Import failed
Unknown import version.
Regards,
as in the topic ubuntu 14.04 has only zabbix 2.2 and it does not read 3.0 template files, can you export them to 2.2 format and upload?
Hi,
I think this line:
WPlst=$(curl -s $WPurl | egrep "([a-z]+.){1,7}[a-z]+" | sed -r "s|</?td>||g;/$Exclude/d")
should be
WPlst=$(curl -s $WPurl | egrep "([a-z]+.){1,7}[a-z]+" | sed -r "s|</?td>||g;/'$Exclude'/d")
Otherwise is no excluding the excluded blacklists
I cannot get anything with:
echo -e "info\nquit" | redis-cli | grep $1":" | cut -d ':' -f 2
But I do get something with:
UserParameter=redis[*],redis-cli info | grep $1":" | cut -d ':' -f 2
The following is the zabbix_get output and my zabbix version is: (Zabbix) 3.0.3 (2016-06-25)
[root@7a05cd3872e5 /]# zabbix_get -s 10.117.30.65 -k redis[used_cpu_sys]
[root@7a05cd3872e5 /]# zabbix_get -s 10.117.30.65 -k redis[used_cpu_sys]
23338.83
Missing keys:
Zabbix 3.2
Cannot update template
Details
Created: Application "Exim" on "Zabbix server".
Item "net.tcp.service[smtp]" already exists on "Zabbix server", inherited from another template.
Good day! I have an error when importing template template App S.M.A.R.T.xml.
Created: Application "S.M.A.R.T." on "Template App S.M.A.R.T.".
mb_strlen() expects parameter 1 to be string, array given [conf.import.php:130 → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CAPIObject->create() → CAPIObject->__call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CDiscoveryRule->create() → CDiscoveryRule->createReal() → DB::insert() → DB::checkValueTypes() → zbx_strlen() → mb_strlen() in /usr/share/zabbix/include/func.inc.php:955]
Array to string conversion [conf.import.php:130 → CConfigurationImport->import() → CConfigurationImport->processDiscoveryRules() → CAPIObject->create() → CAPIObject->call() → czbxrpc::call() → czbxrpc::callAPI() → call_user_func() → CDiscoveryRule->create() → CDiscoveryRule->createReal() → DB::insert() → implode() in /usr/share/zabbix/include/classes/db/DB.php:450]
Error in query [INSERT INTO items (name,type,snmp_community,snmp_oid,delay,status,snmpv3_contextname,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authprotocol,snmpv3_authpassphrase,snmpv3_privprotocol,snmpv3_privpassphrase,delay_flex,params,ipmi_sensor,authtype,username,password,publickey,privatekey,port,filter,lifetime,description,key,trapper_hosts,hostid,flags,value_type,data_type,interfaceid,itemid) VALUES ('Disks discovery','0','','','3600','0','','','0','0','','0','','','','','0','','','','','',Array,'30','','hdd_discovery','','10433','1','4','0',NULL,'27072')] [Unknown column 'Array' in 'field list']
SQL statement execution has failed "INSERT INTO items (name,type,snmp_community,snmp_oid,delay,status,snmpv3_contextname,snmpv3_securityname,snmpv3_securitylevel,snmpv3_authprotocol,snmpv3_authpassphrase,snmpv3_privprotocol,snmpv3_privpassphrase,delay_flex,params,ipmi_sensor,authtype,username,password,publickey,privatekey,port,filter,lifetime,description,key,trapper_hosts,hostid,flags,value_type,data_type,interfaceid,itemid) VALUES ('Disks discovery','0','','','3600','0','','','0','0','','0','','','','','0','','','','','',Array,'30','','hdd_discovery','','10433','1','4','0',NULL,'27072')".
Hello,
Im having some issues with the php script. It seems it does not work. It writes the file to /tmp but when i run it by hand with --nocache it does not work. All graphs are on No Data.
I tried the following for debugging ( im not a php developer ) :
added at the start of the script try {
at the end of the script :
} catch (Exception $e) { echo $e->getMessage() . PHP_EOL; ob_end_flush(); }
The error was the following :
PHP Fatal error: Call to undefined function debug() in /etc/zabbix/agent-scripts/ss_get_mysql_stats.php on line 125
It seems that it cannot find the functions. If i move the debug function on the first line of the script, it will show errors at the next function parse_cmdline()
Im running the script on a centos 6 with php 5.6
Have any idea how to solve this or any hints except moving the functions up and down on the file ?
Hi,
very nice scripts and templates. I am missing the psql.* keys for the PostgreSQL template.
Christian
Zbbix 3.2 I have imported inventory and centos template
when I try to activate t server I receive the following error :
Details
Created: Application "Inventory" on "Zabbix server".
Two items ("OS" and "System information") cannot populate one host inventory field "OS", this would lead to a conflict.
Any idea >
When adding the debian template I get this:
Cannot import template "Template OS Debian", linked templates "Template App Zabbix Agent - Debian, Template Inventory Debian" do not exist.
Thanks for sharing your templates!
This is a lovely set of goodies for Zabbix that I've enjoyed. As I was going through them I was not able to find agent UserParameters for Postfix. The xml template has keys which don't seem to exist in the agent configuration files provided, particularly:
mailqueue-postfix-queue
postfix.version
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.