Xitoring Document
Home
FAQ
Support
Register
Home
FAQ
Support
Register
  • Xitoring

    • Introduction
    • Release Notes
    • Xitoring Release Notes
    • Linux Xitogent Release Notes
    • Windows Xitogent Release Notes
    • Xitoring Mobile App Release Notes
    • Account Management
    • API Access & Automation
    • Team Management & Collaboration
    • Billing & Subscription Management
  • Getting Started

    • Getting Started with Xitoring
    • Workflows & Guides
    • Monitor Your First Server
    • Import / Migration
    • Migrate from UptimeRobot to Xitoring
    • Migrate from Pingdom to Xitoring
    • Migrate from Uptime.com to Xitoring
    • Migrate from BetterStack to Xitoring
  • Help & Support

    • FAQ & Troubleshooting
    • Glossary
  • Server Monitoring

    • Server Monitoring
    • Graphs
    • Live Statistics
    • Monitor Services
    • Auto-Triggers
  • Xitogent on Linux

    • Install Xitogent on Linux
    • Update Xitogent on Linux
    • Uninstall Xitogent on Linux
  • Xitogent on Windows

    • Install Xitogent on Windows
    • Uninstall Xitogent on Windows
    • Xitogent Service
    • Update Xitogent on Windows
    • Disk Performance (I/O)
  • Xitogent on Azure

    • Xitogent on Azure
    • Monitor Azure Linux VM
    • Monitor Azure Windows VM
  • Xitogent CLI

    • Xitogent CLI
    • Xitogent Pause/Unpause
    • Xitogent Status
    • Xitogent debug
    • Xitogent Diagnosis
    • Which data we collect
  • Xitoring CLI

    • Xitoring CLI
  • Uptime Monitoring

    • What is Uptime Monitoring
    • Monitoring Nodes (Geographic Locations)
    • What is Check
    • Auto-Discovery
    • Auto Fault Tolerance
    • Heartbeat Check
    • Ping Check
    • HTTP(S) Check
    • DNS Check
    • FTP Check
    • SMTP Check
    • IMAP Check
    • POP3 Check
    • TCP Check
    • UDP Check
  • SSL Monitoring

    • SSL Monitoring
  • Incidents

    • Incidents
    • Incident's Root Cause
    • Incidents Notification
    • Incident Notes
    • Resolving Incidents Manually
    • Incident Policy
  • Maintenance Schedule

    • Maintenance Schedule
  • Email Reports

    • Email Reports
  • Integrations

    • Integrations
    • Apache Integration
    • CoreDNS Integration
    • CouchDB Integration
    • Disk Health Integration
    • Docker Integration
    • Dovecot Integration
    • Exim Integration
    • HAProxy Integration
    • IIS Integration
    • InfluxDB Integration
    • Kafka Integration
    • KeyDB Integration
    • LiteSpeed Integration
    • MongoDB Integration
    • MySQL Integration
    • Netstat Integration
    • Nginx Integration
    • OpenLiteSpeed Integration
    • OpenVPN Integration
    • PHP-FPM Integration
    • Postfix Integration
    • PostgreSQL Integration
    • RabbitMQ integration
    • Redis Integration
    • MS SQL Server Integration
    • Supervisor Integration
    • Varnish Integration
    • Wireguard Integration
  • Notifications

    • Notifications
    • Creating Notification Roles
    • Email Integration
    • Mobile Push Notifications
    • SMS Integration
    • Phone call Integration
    • Webhook Integration
    • Integration for Slack
    • Telegram Integration
    • WhatsApp Integration
    • Mattermost Integration
    • Discord Integration
    • Google Chat Integration
    • Microsoft Teams Integration
    • Atlassian Opsgenie Integration
    • Splunk On-Call Integration
    • Pushover Integration
    • Pushbullet Integration
    • Gotify Integration
    • Ntfy Integration
    • Spike.sh Integration
    • PagerDuty Integration
    • Zapier Integration
    • AlertOps Integration
  • Status Page

    • Status page
  • 3rd Party Status Pages

    • Using 3rd party Status Pages
    • Atlassian Status Page Integration with Xitoring
    • Status.io Integration with Xitoring
    • Statuspal Integration with Xitoring
    • Instatus Integration with Xitoring
  • Dashboards

    • Main Dashboard
    • Custom Dashboards
  • Metrics

    • Metrics
  • MCP Server

    • Setup & Tool Reference

MongoDB Integration

Xitoring's seamless integration with MongoDB allows you to efficiently monitor the load and performance of your MongoDB databases. This document outlines the steps to set up monitoring for MongoDB on both Linux and Windows environments.

Enable MongoDB Integration

Supported platforms

The following guide is working on Linux and Windows servers but some details could be quite different based on the OS version.

The following lines will walk you through enabling MongoDB integration on Xitoring based on your OS.

on Linux Server

Access MongoDB Shell:

mongo

Switch to the Admin Database:

use admin

Create a new user:

db.createUser({
  user: "xitogent",
  pwd: "xitogent!",
  roles: [
    { role: "clusterMonitor", db: "admin" }
  ]
})

This command creates a user named xitogent with the password xitogent! and grants the clusterMonitor role on the admin database.

On Windows Server

For Windows environments, the process is similar but might involve using the MongoDB shell or a graphical user interface. Follow these general steps:

  1. Access MongoDB Shell or GUI: Use the MongoDB shell or MongoDB Compass for a graphical interface.

  2. Switch to the Admin Database: In the shell, run use admin.

  3. Create a New User: Use the appropriate command or interface to create the user as mentioned in the Linux steps.

db.createUser({
  user: "xitogent",
  pwd: "xitogent!",
  roles: [
    { role: "clusterMonitor", db: "admin" }
  ]
})

Enable MongoDB integration on Xitogent

The final step is to call the Xitogent CLI and enable the MongoDB Integration:

xitogent integrate

Select MongoDB from the list of available integrations, it will prompt you for the hostname, port, and credentials on the created user as mentioned above.

and that's it the MongoDB integration is now enabled and the configuration file is created in the /etc/xitogent/integrations/mongo_integration.conf.

Create Triggers for MongoDB integration

You can create Triggers for MongoDB integration and define incidents for the following parameters:

CPU
Memory
Current Connections
Active Connections
Active Sessions
Insert per second
Query per second
Update per second
Delete per second
Command per second
Getmore per second
Last Updated: 10/24/23, 4:57 PM
Prev
LiteSpeed Integration
Next
MySQL Integration