We're excited to announce the release of our new feature Site24x7 Plugins. With this feature, companies can use our powerful open ecosystem and create custom scripts to track attributes and analyze metrics that matter the most. The wide range of integrations supported by Site24x7 offer Plugins support for Nagios, MySQL, Redis, MongoDB, NGINX, HAProxy, Zookeeper, WordPress, Apache, Zombie Process, Memcached and more. This is an expanding list which will soon include support for additional modules going forward.
Highlights:
- Build custom Plugins and monitor unlimited attributes using our open ecosystem.
- View performance charts of multiple plugin instances across servers in a single, easy to understand chart.
- Set threshold values for individual attributes in a plugin and get immediate notifications if set values exceed.
Related resources:
Like (1)
Reply
Replies (4)
by rni
How can I get started mongodb monitoring ?
I tried to start monitoring, but it doesn't seem to be working.
I downloaded mongod.py from https://github.com/site24x7/plugins/blob/master/mongod/mongod.py and then put the files into plugins/mongod directory.
- plugins/
- plugins/mongod
- plugins/mongod/mongod.py
- plugins/mysql
- plugins/mysql/mysql.py
- plugins/nagios_plugins.json
- plugins/redis
- plugins/redis/Redis.py
chmod +x plugins/mongod/mongod.py
- [root@production-mongodb monagent]# ls -l /opt/site24x7/monagent/plugins/mongod/mongod.py
- -rwxr-xr-x 1 root root 6256 3月 11 19:29 2016 /opt/site24x7/monagent/plugins/mongod/mongod.py
cat logs/plugins.txt
- 2016-03-11 20:34:44,661 WARNING Worker 2, --- Plugins Disabled ---
2016-03-11 20:39:44,735 WARNING Worker 2, --- Plugins Disabled ---
2016-03-11 20:44:44,815 WARNING Worker 0, --- Plugins Disabled ---
2016-03-11 20:44:54,992 WARNING MainThread, In Built Plugins ---> ['mysql.py', 'Redis.py'] && Working Plugins ---> ['mongod.py', 'mysql.py', 'Redis.py']
2016-03-11 20:44:54,992 WARNING MainThread, mysql.py already present in the Working List So not sent for service check
2016-03-11 20:44:54,992 WARNING MainThread, ====================================================================
2016-03-11 20:44:54,992 WARNING MainThread, Redis.py already present in the Working List So not sent for service check
2016-03-11 20:44:54,992 WARNING MainThread, ====================================================================
2016-03-11 20:44:54,993 WARNING MainThread, File Not Added to List === nagios_plugins.json
2016-03-11 20:44:54,993 WARNING MainThread, Executable Plugins =====["/opt/site24x7/monagent/plugins/mongod/mongod.py", "/opt/site24x7/monagent/plugins/mysql/mysql.py", "/opt/site24x7/monagent/plugins/redis/Redis.py"]
2016-03-11 20:44:54,994 WARNING MainThread, Plugins List =====> ['/opt/site24x7/monagent/plugins/mongod/mongod.py', '/opt/site24x7/monagent/plugins/mysql/mysql.py', '/opt/site24x7/monagent/plugins/redis/Redis.py', '/usr/local/nagios/libexec/check_ping -H localhost -w 1,1% -c 1,1% -p 5 -t 10 -4', '/usr/local/nagios/libexec/check_load -r']
2016-03-11 20:45:03,702 WARNING Worker 0, --- Plugins Disabled ---
/opt/site24x7/monagent/plugins/mongod/mongod.py
- [root@production-mongodb monagent]# /opt/site24x7/monagent/plugins/mongod/mongod.py
{
"connections_available": 52424,
"connections_current": 4,
"cursors_total_open": 0,
"dbStats_code-log": {
"avgObjSize": "997.081898838",
"collections": "6",
"dataFileVersion": "{u'major': 4, u'minor': 22}",
"dataSize": "5089511824.0",
"db": "code-log",
"extentFreeList": "{u'totalSize': 0, u'num': 0}",
"fileSize": "8519680000.0",
"indexSize": "417589200.0",
"indexes": "6",
"nsSizeMB": "16",
"numExtents": "67",
"objects": "5104407",
"ok": "1.0",
"storageSize": "6417367040.0"
},
"dbStats_code-log_namespaces": 11,
"flush_length_avrg": 20.117669055780617,
"heap_usage": 77672992,
"heartbeat_required": "true",
"last_flush_length": 1151,
"memory_mapped": 8301,
"memory_resident": 4436,
"memory_virtual": 17289,
"page_faults": 209538,
"plugin_version": "1",
"seconds_since_lastflush": 58,
"version": "3.0.7"
}
Like (0)
Reply
Hi,
Thanks for your interest in Site24x7. Plugins feature is supported from Linux agent version 15. You need to upgrade your agent version to use the feature. If you have any further queries, please contact [email protected].
Happy Monitoring!
Like (0)
Reply
Hi Bill,
Thanks for your interest in Site24x7.
From a single plugin you cannot monitor all MySQL instances. You can reuse the same MySQL plugin by renaming it and editing the configuration.
Using MySQL for monitoring multiple instances:
#1) Copy the mysql/ folder to mysql_instance/
#2) Rename the mysql.py to mysql_instance.py present under mysql_instance/
Commands to execute in your server to achieve the above steps
cd /opt/site24x7/monagent/plugins/
cp -r mysql/ mysql_instance/
cd mysql_instance/
mv mysql.py mysql_instance.py
#3) Edit the mysql_instance.py to change the mysql configurations.
Agent will pick this up in the next data collection and you can view your plugin under server monitor details page.
If you have many instances, please follow the steps listed above (i.e rename the plugin file and its configurations).
If you have any further queries, please contact [email protected].
Happy monitoring!
Like (0)
Reply