Ad Widget

Collapse

Monitor Multiple Mongo Databases on One Server

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • david.veatch
    Junior Member
    • Aug 2024
    • 1

    #1

    Monitor Multiple Mongo Databases on One Server

    For reasons that predate me, we run multiple Mongo databases on a single server. It's more complicated than that, with multiple clusters spread across multiple servers, but for the sake of this question, is it possible to monitor multiple mongos running on multiple ports on a single server?

    I need to monitor mongo running on 27017, 27019, 27021, 27023, 27025, 27027, and 27029.

    I've been able to get tcp://localhost:{port} working, but what might be my strategy to get all of the above ports working simultaneously?

    We're proof-of-concepting Zabbix right now and I'm brand new to it, but are deeply entrenched in our way of running Mongo.
  • cyber
    Senior Member
    Zabbix Certified SpecialistZabbix Certified Professional
    • Dec 2006
    • 4807

    #2
    In your example you can create 7 hosts (Mongo1..Mongo7), all pointing to same agent. Assign node/cluster template to them. On host level overwrite macros ({$MONGODB.CONNSTRING}) Maybe some more of those what you may need to overwrite... but you get the point..

    Comment

    • kamil1
      Member
      • Aug 2024
      • 40

      #3
      Right, you can use the key similar to the one below:
      net.tcp.service[mongodb,localhost,{port}]

      Comment

      Working...