ZABBIX Forums  
  #11  
Old 02-06-2016, 13:37
sturi sturi is offline
Junior Member
 
Join Date: Mar 2016
Posts: 6
Default

Hi cjj0596,

If you check xml manually you would see that it happens there only once. More than that, it has lowercase "r" in the end - check if you have any similar item already there.

Anyway you can create it manually - just add as many trapper items as you need. Names could be taken from zbx_vars.txt (just add mongodb prefix for compatibility). Most are Numeric unsigned, though some are text.
Reply With Quote
  #12  
Old 17-10-2016, 18:24
pixelbradley pixelbradley is offline
Junior Member
 
Join Date: Oct 2016
Posts: 4
Default newbie help

Can anyone provide any help on setting this up for a zabbix newbie? I get the template, but the .py and .sh files are confusing. Should one go in external scripts and the other be used in cron to run the external? TIA for any assistance.
Reply With Quote
  #13  
Old 17-10-2016, 19:22
pixelbradley pixelbradley is offline
Junior Member
 
Join Date: Oct 2016
Posts: 4
Default zabbix_sender?

I actually think I have this going now - I realized that the bash script was actually an example of usage (thanks ).

however, I don't seem to have the "zabbix_sender" command installed on my system (on server or agents). Is this possibly a script I can find elsewhere?
Reply With Quote
  #14  
Old 17-10-2016, 20:45
pixelbradley pixelbradley is offline
Junior Member
 
Join Date: Oct 2016
Posts: 4
Smile working!

None of my posts have been approved yet, so I guess it's good that I was able to figure this out on my own :P


Got this working by:
a) working out how to install the "zabbix_sender" command (on ubuntu it has its own package now, which is pretty gross)
b) taking the shell script apart to learn what arguments need to be fed into things
c) hacking the python script to allow a hostname to be passed in, which makes this much more useful for me

REALLY excited to have graphable, triggerable data for mongodb now. Thanks for much for putting me on the right track
Reply With Quote
  #15  
Old 24-10-2016, 15:22
sturi sturi is offline
Junior Member
 
Join Date: Mar 2016
Posts: 6
Default

Sorry fo the delay, big project ongoing. Fortunately you've managed to get it by your own.
Reply With Quote
  #16  
Old 27-10-2016, 21:15
pixelbradley pixelbradley is offline
Junior Member
 
Join Date: Oct 2016
Posts: 4
Smile

oh, it's all good I really appreciate you putting this out there in the first place. Let me know if you're interested in seeing my patch to allow dynamic hostnames. It has really come in handy for me.
Reply With Quote
  #17  
Old 26-01-2017, 11:33
Arcocide Arcocide is offline
Member
 
Join Date: Apr 2015
Posts: 67
Exclamation

Hi,

I would like to monitor my MongoDB but I don"t know how to do.

Where I must to put this files.
collect_mongo_data.sh : In my Zabbix server on externalScript ?
zbx_vars.txt : On MongoDB server ?
zabbix.py : On MongoDB server ?

I use no user and password for to connect MongoDB.

Thx

Last edited by Arcocide; 26-01-2017 at 11:53.
Reply With Quote
Reply

Tags
mongodb, trapper

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 22:39.