Giter VIP home page Giter VIP logo

mongodb-zabbix-templates-4.0's People

Contributors

marcusteixeira avatar petrushinvs avatar

Stargazers

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

Watchers

 avatar  avatar

mongodb-zabbix-templates-4.0's Issues

Incorrect value "" for int field "max_columns".

Hello,

Trying to import https://github.com/petrushinvs/mongodb-zabbix-templates-4.0/blob/master/zbx_MongoDB_template.xml but get the error:

Details Import failed

    Incorrect value "" for int field "max_columns".

looking at the xml file i see the value is 3

-> grep max_co mongodb-zabbix-templates-4.0/zbx_MongoDB_template.xml 
                            <max_columns>3</max_columns>
                            <max_columns>3</max_columns>
                            <max_columns>3</max_columns>
                            <max_columns>3</max_columns>
zabbix_server (Zabbix) 4.4.0rc1

Not sure where to go from here.
Any input is appreciated.
Thanks!
-Dave

Ssl connections

Hello

Could you please tell me does you *py scripts support SSL connections to mongoDB?

mongod-db.py object has no attribute msg

Hello,

Trying to get some data but encountered this error:

/usr/lib/zabbix/externalscripts/mongod-db.py -h x.x.x.x -n mongo -u <user> -s <pass> -p 27017
Traceback (most recent call last):
  File "/usr/lib/zabbix/externalscripts/mongod-db.py", line 47, in <module>
    result = ZabbixSender(zabbix_port = ZBPORT, zabbix_server = ZBSERVER).send(packet)
  File "/usr/lib/python2.7/site-packages/pyzabbix/sender.py", line 433, in send
    result.parse(self._chunk_send(metrics[m:m + self.chunk_size]))
  File "/usr/lib/python2.7/site-packages/pyzabbix/sender.py", line 408, in _chunk_send
    logger.warn('Sending failed: %s', err.msg)
AttributeError: 'error' object has no attribute 'msg'

My environment:

mongodb-org-shell-4.0.16-1.el7.x86_64
mongodb-org-tools-4.0.16-1.el7.x86_64
CentOS Linux release 7.7.1908 (Core)  3.10.0-1062.4.3.el7.x86_64
zabbix-server-mysql-4.4.0-0.5rc1.el7.x86_64
zabbix-web-mysql-4.4.0-0.5rc1.el7.noarch
zabbix-release-4.3-3.el7.noarch
zabbix-web-4.4.0-0.5rc1.el7.noarch
zabbix-agent-4.4.0-0.5rc1.el7.x86_64
py-zabbix                        1.1.5  
pymongo                          3.9.0  

Any input is appreciated!

Thanks,
Dave

Usage

Can i use it with zabbix agent?

getting this error!!! Pls help on this

Traceback (most recent call last):
File "/usr/lib/zabbix/externalscripts/mongod-db.py", line 35, in
r = subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE)
File "/usr/lib64/python2.7/subprocess.py", line 711, in init
errread, errwrite)
File "/usr/lib64/python2.7/subprocess.py", line 1327, in _execute_child
raise child_exception
OSError: [Errno 2] No such file or directory

template import error

Hi,
I configure zbx_MongoDB_template.xml and it work very well. But when I import the zbx_Mongo-RS-probe_template.xml , it has a wrong.
Error message As follows:

Details Import failed
Incorrect trigger expression. Host "rs-probe" does not exist or you have no access to this host.

waiting online.

monitoring->graphs no data,Pls help on this

Monitoring->Latest data
Data collector

Timestamp Value
07/04/2019 01:13:56 PM History opcounters1562217175 13 68 25 4499 83007 317240{"failed": 17, "chunk": 1, "total": 17, "processed": 0, "time": "0.000294"}
-- --
07/04/2019 01:12:56 PM [Errno 2] No such file or directory: '/tmp/192.168.21.150-opcounters'History opcounters1 0 0 0 0 0 0{"failed": 17, "chunk": 1, "total": 17, "processed": 0, "time": "0.000378"}

mongostat --host 192.168.21.150:9927 -u root -p123456 --authenticationDatabase admin --rowcount 1
insert query update delete getmore command dirty used flushes vsize res qrw arw net_in net_out conn set repl time
*0 *0 *0 *0 0 12|0 0.4% 0.4% 0 1.31G 103M 0|0 1|0 1.40k 70.9k 9 myrs PRI Jul 4 14:02:38.442

*Zabbix 4.2|Zabbix 4.0、mongodb-linux-x86_64-4.0.9、 mongodb-org-tools-4.0.10-1.el7.x86_64、mongodb-org-shell-4.0.10-1.el7.x86_64、python2.7、pymongo3.8.0、py-zabbix1.1.5

monitoring->graphs no data

image

Getting error: File "./mongod-db.py", line 33, in <module>

./mongod-db.py -u user, -s pass -h, mongo-db-001-001.domain.com, -p, 27018, -n, mongo-db-001-001.domain.com

Traceback (most recent call last):
  File "./mongod-db.py", line 33, in <module>
    arg = "-u " + muser + " -p " + mpass + " -h " + mongohost + ":" + mongoport + " --authenticationDatabase=admin --rowcount 1 --noheaders"
NameError: name 'mongoport' is not defined

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.