petrushinvs / mongodb-zabbix-templates-4.0 Goto Github PK
View Code? Open in Web Editor NEWmongodb zabbix templates rewritten in python with mongodb 4 support
License: MIT License
mongodb zabbix templates rewritten in python with mongodb 4 support
License: MIT License
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
Hello
Could you please tell me does you *py scripts support SSL connections to mongoDB?
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
Can i use it with zabbix agent?
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
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->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
While trying to import template to Zabbix - zabbix returning error
Import failed
Incorrect file upload.
Zabbix server version: 5.0.1
I have installed the templates, but they don't collect data. When I give "check now" in the Items that belong to these templates I get the following error: Cannot send request: wrong item type.
Hi,
I want to run /usr/lib/zabbix/externalscripts/mongod-db.py files from a different directory. Where is it necessary to update it?
./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
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.