Code Monkey home page Code Monkey logo

mikoomi-zabbix-mongodb-monitoring's People

Contributors

cikin avatar elbandi avatar funzie19 avatar ngourley avatar nightw avatar nikhildx-er avatar yarons avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

mikoomi-zabbix-mongodb-monitoring's Issues

Parse error: syntax error, unexpected '$ssl' (T_VARIABLE)

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

Dependency

Hello,

You also need this package : openssl-devel .
Regards

Can't import the Template on Zabbix 3.0.1

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. :)

zabbix 3.0.3 support

please update this repo to support zabbix3.0.3 and mongodb-3.2 , we realy need this

Issue with .php

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

PHP 7

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?

Sharding Data not Visible

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?

php7.2

How To use this zabbix plugin if I have installed php-7.2?

Confused with parameters

having trouble posting to zabbix server everything is getting collected in .data file but nothing is being sent to server

Issues with Seeing latest data + No Logging

Hi Guys,

I am using this but cant seem to see any of the latest data:
screen shot 2017-04-27 at 16 43 10

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?

MongoDB ssl not working

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

php-script: failed: 56

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?

Invalid XML tag "/zabbix_export": unexpected tag "time".

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?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.