nightw / mikoomi-zabbix-mongodb-monitoring Goto Github PK
View Code? Open in Web Editor NEWForked from the mikoomi-templates project from here: https://code.google.com/p/mikoomi but only containing the MongoDB Zabbix Plugin
License: MIT License
Forked from the mikoomi-templates project from here: https://code.google.com/p/mikoomi but only containing the MongoDB Zabbix Plugin
License: MIT License
Hi, i hope, you will help me with resolve this issue, thanks.
$ mikoomi-mongodb-plugin-32.sh -z $(hostname -f) -ssl
PHP Parse error: syntax error, unexpected '$ssl' (T_VARIABLE) in /etc/zabbix/externalscripts/mikoomi-mongodb-plugin-32.php on line 73
Hello,
You also need this package : openssl-devel .
Regards
Import of the original XML File:
Import failed
Details
Invalid XML tag "/zabbix_export": unexpected tag "time".
If i correct this, then i get the next error with proxy_hostid
I hope you can help me. :)
please update this repo to support zabbix3.0.3 and mongodb-3.2 , we realy need this
So I'd really like to get this working, been using mongodb and zabbix for a little while so seems like a good combo. Thanks for keeping up with this project!
Anyways I don't know very much about php.... but I'm getting the following error:
PHP Parse error: syntax error, unexpected '[' in /etc/zabbix/externalscripts/mikoomi-mongodb-plugin.php on line 30
0
The line is:
$options = getopt("Dh:p:z:u:x:H:P:", ["ssl"]) ;
I tried removing the ssl portion or using a script from the git history from before ssl support was added. When I do this the script runs (via /etc/zabbix/externalscripts/mikoomi-mongodb-plugin.sh -z dev-db1.example.com) but I don't get any data on the zabbix server.
I tried to check /tmp/mikoomi-mongodb-plugin.php_*.log but nothing is being written in the log or data file.
I'm running on ubuntu 12.04, PHP 5.3.10-1ubuntu3.16 with Suhosin-Patch (cli) (built: Feb 13 2015 20:15:04). Any help on tracking down the issue would be appreciated
How I can monitoring replication lag?
Hello! How I can create connection to mongoDB server with PHP 7. I run test script, and it doesn't work actualy. How it's possible to monitor db with current scripts?
hi,
Could this template support mongodb3.2?
the condition should be if (!($rs_status['ok']))
It would be nice to see SSL connection support
mongo -u foo -p bar --ssl address
the values for MongoDB: Sharding: List of Sharded Collections in Cluster show : i || || || ||
Why does data come this way? I am using MongoDB 3.6.6. Is this a versioning problem?
write_to_log_file(line 82) should be write_to_data_lines.
How To use this zabbix plugin if I have installed php-7.2?
having trouble posting to zabbix server everything is getting collected in .data file but nothing is being sent to server
Hi Guys,
I am using this but cant seem to see any of the latest data:
sh mikoomi-mongodb-plugin-32.sh -D -z MONGOSERVERNAME -u MONGOUSER -x MONGOPASSWORD -H ZABBIXIP -P ZABBIXPORT
There is actually no logging coming through to /tmp/ as shown in README
Also getenforce is set to 0 (Disabled)
Any help?
Hello,
I've been testing you template on my zabbix for MongoDB
And I didn't quite understand how --ssl works with you scripts.
Here how I am testing
/mikoomi-mongodb-plugin-32.sh -D -h *****-p **** -z ***** -H 127.0.0.1 -P 10051 -u admin -x admin --ssl
mikoomi-mongodb-plugin-32.php: version 0.8
0
There are sone certificate files that is needed to connect wia ssl. How can i import the proper connections string to you scritp?
Thank You
Hello!
Thank for you Template of Zabbix.
I try install his in the CentOS 7 and Zabbix 3.2.
# yum install php-devel php-pear gcc make git openssl-devel
# pecl install mongo
# vi /etc/php.ini
...
extension=mongo.so
# cd /usr/lib/zabbix/externalscripts
# wget https://raw.githubusercontent.com/nightw/mikoomi-zabbix-mongodb-monitoring/master/mongodb-3.2/mikoomi-mongodb-plugin-32.sh
# wget https://raw.githubusercontent.com/nightw/mikoomi-zabbix-mongodb-monitoring/master/mongodb-3.2/mikoomi-mongodb-plugin-32.php
# chmod 755 mikoomi-mongodb-plugin-32.*
# vi /etc/crontab
...
ZABBIX_HOSTNAME=$(hostname -f)
* * * * * root /usr/lib/zabbix/externalscripts/mikoomi-mongodb-plugin-32.sh -z $ZABBIX_HOSTNAME
Download https://raw.githubusercontent.com/nightw/mikoomi-zabbix-mongodb-monitoring/master/mongodb-3.2/MongoDB_Plugin_template_export-32.xml
*Import Template*
But Web-Graphics view of "No Data" and cron logging follow messeges:
Subject: Cron root@localhost /usr/lib/zabbix/externalscripts/mikoomi-mongodb-plugin-32.sh -z $ZABBIX_HOSTNAME
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <XDG_SESSION_ID=18>
X-Cron-Env: <XDG_RUNTIME_DIR=/run/user/0>
X-Cron-Env: <LANG=ru_RU.UTF-8>
X-Cron-Env: <SHELL=/bin/bash>
X-Cron-Env: <PATH=/sbin:/bin:/usr/sbin:/usr/bin>
X-Cron-Env: <MAILTO=root>
X-Cron-Env: <ZABBIX_HOSTNAME=$(hostname -f)>
X-Cron-Env: <HOME=/root>
X-Cron-Env: <LOGNAME=root>
X-Cron-Env: <USER=root>
Message-Id: [email protected]
Date: Wed, 12 Jul 2017 12:22:01 +0300 (MSK)mikoomi-mongodb-plugin-32.php: Successfully connected to mongoDB using connect string localhost:27017
mikoomi-mongodb-plugin-32.php: O: zabbix_sender [3713]: DEBUG: answer [{"response":"success","info":"processed: 0; failed: 56; total: 56; seconds spent: 0.000572"}]
mikoomi-mongodb-plugin-32.php: O: info from server: "processed: 0; failed: 56; total: 56; seconds spent: 0.000572"
mikoomi-mongodb-plugin-32.php: O: sent: 56; skipped: 0; total: 56
0
# php -v
PHP 5.4.16 (cli) (built: Nov 6 2016 00:29:02)
Copyright (c) 1997-2013 The PHP Group
Zend Engine v2.4.0, Copyright (c) 1998-2013 Zend Technologies
# mongo -version
MongoDB shell version: 2.6.12
Tall me, what is failed in my zabbix-system?
Hi ,
I am trying to import the template but getting below error:
Invalid XML tag "/zabbix_export": unexpected tag "time".
Zabix Version : Zabbix 3.0.1
I see that on URL #9 it is referred as closed but I am getting this issue. Can someone let me know if there is any changes to be made in template file?
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.