summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGraham Mainwaring <gmainwaring@ansible.com>2016-03-28 20:43:27 +0200
committerGraham Mainwaring <gmainwaring@ansible.com>2016-03-28 20:43:27 +0200
commitcd698f0ea1718fdb685538d916cbeec56040339f (patch)
tree93860ff4a64797d882044e8ba491e06440f3292a /tools
parentMoved awx packages inside venv, restructured spec file, restructured Makefile (diff)
downloadawx-cd698f0ea1718fdb685538d916cbeec56040339f.tar.xz
awx-cd698f0ea1718fdb685538d916cbeec56040339f.zip
Removed Munin config for Mongo
Diffstat (limited to 'tools')
-rwxr-xr-xtools/munin_monitors/mongo_conn51
-rwxr-xr-xtools/munin_monitors/mongo_docs53
-rwxr-xr-xtools/munin_monitors/mongo_mem56
-rwxr-xr-xtools/munin_monitors/mongo_ops52
4 files changed, 0 insertions, 212 deletions
diff --git a/tools/munin_monitors/mongo_conn b/tools/munin_monitors/mongo_conn
deleted file mode 100755
index 8e68c99f97..0000000000
--- a/tools/munin_monitors/mongo_conn
+++ /dev/null
@@ -1,51 +0,0 @@
-#!/usr/bin/env python
-
-## GENERATED FILE - DO NOT EDIT
-
-import urllib2
-import sys
-import os
-import pymongo
-
-def getServerStatus():
- host = "127.0.0.1"
- port = 27017
- c = pymongo.MongoClient(host, port)
- return c.admin.command('serverStatus', workingSet=True)
-
-name = "connections"
-
-
-def doData():
- print name + ".value " + str( getServerStatus()["connections"]["current"] )
-
-def doConfig():
-
- print "graph_title MongoDB current connections"
- print "graph_args --base 1000 -l 0"
- print "graph_vlabel connections"
- print "graph_category MongoDB"
-
- print name + ".label " + name
-
-
-
-
-
-
-if __name__ == "__main__":
-
- from os import environ
- if 'HOST' in environ:
- host = environ['HOST']
- if 'PORT' in environ:
- port = environ['PORT']
- if 'USER' in environ:
- user = environ['USER']
- if 'PASSWORD' in environ:
- password = environ['PASSWORD']
-
-if len(sys.argv) > 1 and sys.argv[1] == "config":
- doConfig()
-else:
- doData()
diff --git a/tools/munin_monitors/mongo_docs b/tools/munin_monitors/mongo_docs
deleted file mode 100755
index d03d819b91..0000000000
--- a/tools/munin_monitors/mongo_docs
+++ /dev/null
@@ -1,53 +0,0 @@
-#!/usr/bin/env python
-
-## GENERATED FILE - DO NOT EDIT
-
-import urllib2
-import sys
-import os
-import pymongo
-
-def getServerStatus():
- host = "127.0.0.1"
- port = 27017
- c = pymongo.MongoClient(host, port)
- return c.admin.command('serverStatus', workingSet=True)
-
-name = "documents"
-
-
-def doData():
- ss = getServerStatus()
- for k,v in ss["metrics"]["document"].iteritems():
- print( str(k) + ".value " + str(v) )
-
-def doConfig():
-
- print "graph_title MongoDB documents"
- print "graph_args --base 1000 -l 0"
- print "graph_vlabel documents"
- print "graph_category MongoDB"
-
- for k in getServerStatus()["metrics"]["document"]:
- print k + ".label " + k
- print k + ".min 0"
- print k + ".type COUNTER"
- print k + ".max 500000"
- print k + ".draw LINE1"
-
-if __name__ == "__main__":
-
- from os import environ
- if 'HOST' in environ:
- host = environ['HOST']
- if 'PORT' in environ:
- port = environ['PORT']
- if 'USER' in environ:
- user = environ['USER']
- if 'PASSWORD' in environ:
- password = environ['PASSWORD']
-
-if len(sys.argv) > 1 and sys.argv[1] == "config":
- doConfig()
-else:
- doData() \ No newline at end of file
diff --git a/tools/munin_monitors/mongo_mem b/tools/munin_monitors/mongo_mem
deleted file mode 100755
index 5b7416212e..0000000000
--- a/tools/munin_monitors/mongo_mem
+++ /dev/null
@@ -1,56 +0,0 @@
-#!/usr/bin/env python
-
-## GENERATED FILE - DO NOT EDIT
-
-import urllib2
-import sys
-import os
-import pymongo
-
-def getServerStatus():
- host = "127.0.0.1"
- port = 27017
- c = pymongo.MongoClient(host, port)
- return c.admin.command('serverStatus', workingSet=True)
-
-def ok(s):
- return s == "resident" or s == "virtual" or s == "mapped"
-
-def doData():
- for k,v in getServerStatus()["mem"].iteritems():
- if ok(k):
- print( str(k) + ".value " + str(v * 1024 * 1024) )
-
-def doConfig():
-
- print "graph_title MongoDB memory usage"
- print "graph_args --base 1024 -l 0 --vertical-label Bytes"
- print "graph_category MongoDB"
-
- for k in getServerStatus()["mem"]:
- if ok( k ):
- print k + ".label " + k
- print k + ".draw LINE1"
-
-
-
-
-
-
-
-if __name__ == "__main__":
-
- from os import environ
- if 'HOST' in environ:
- host = environ['HOST']
- if 'PORT' in environ:
- port = environ['PORT']
- if 'USER' in environ:
- user = environ['USER']
- if 'PASSWORD' in environ:
- password = environ['PASSWORD']
-
-if len(sys.argv) > 1 and sys.argv[1] == "config":
- doConfig()
-else:
- doData()
diff --git a/tools/munin_monitors/mongo_ops b/tools/munin_monitors/mongo_ops
deleted file mode 100755
index 9ed5a24425..0000000000
--- a/tools/munin_monitors/mongo_ops
+++ /dev/null
@@ -1,52 +0,0 @@
-#!/usr/bin/env python
-
-## GENERATED FILE - DO NOT EDIT
-
-import urllib2
-import sys
-import os
-import pymongo
-
-def getServerStatus():
- host = "127.0.0.1"
- port = 27017
- c = pymongo.MongoClient(host, port)
- return c.admin.command('serverStatus', workingSet=True)
-
-
-def doData():
- ss = getServerStatus()
- for k,v in ss["opcounters"].iteritems():
- print( str(k) + ".value " + str(v) )
-
-def doConfig():
-
- print "graph_title MongoDB ops"
- print "graph_args --base 1000 -l 0"
- print "graph_vlabel ops / ${graph_period}"
- print "graph_category MongoDB"
- print "graph_total total"
-
- for k in getServerStatus()["opcounters"]:
- print k + ".label " + k
- print k + ".min 0"
- print k + ".type COUNTER"
- print k + ".max 500000"
- print k + ".draw LINE1"
-
-if __name__ == "__main__":
-
- from os import environ
- if 'HOST' in environ:
- host = environ['HOST']
- if 'PORT' in environ:
- port = environ['PORT']
- if 'USER' in environ:
- user = environ['USER']
- if 'PASSWORD' in environ:
- password = environ['PASSWORD']
-
-if len(sys.argv) > 1 and sys.argv[1] == "config":
- doConfig()
-else:
- doData()