The Assimilation Project  based on Assimilation version 1.1.7.1474836767
cma.monitoring Namespace Reference

Data Structures

class  FakeDrone
 
class  LSBMonitoringRule
 
class  MonitorAction
 
class  MonitoringRule
 
class  NagiosMonitoringRule
 
class  NEVERMonitoringRule
 
class  OCFMonitoringRule
 

Variables

 fdrone
 
tuple neolsbargs
 
 neorule = LSBMonitoringRule('neo4j-service', neolsbargs)
 
tuple neoocfargs
 
 neoocfrule = OCFMonitoringRule('assimilation', 'neo4j', neoocfargs)
 
 sshnode
 
tuple lsbsshargs
 
 lsbsshrule = LSBMonitoringRule('ssh', lsbsshargs)
 
tuple nagiossshargs
 
 nagiossshrule = NagiosMonitoringRule('check_ssh', 'med', ['-t', '3600'], nagiossshargs)
 
tuple nagiossensorsargs = ((None, 'hascmd(sensors)', "True"),)
 
 nagiossensorsrule
 
 udevnode
 
tuple neoprocargs
 
 neonode
 
 withsensors = pyConfigContext('{"_init_commands" : {"data": {"sensors": null}}}')
 
 nosensors = pyConfigContext('{"_init_commands": {"data": {"bash": null}}}')
 
tuple oracleocfargs
 
 oracleocfrule = OCFMonitoringRule('heartbeat', 'oracle', oracleocfargs)
 
 oraclenode
 
list tests
 
dictionary fieldmap = {'monitortype': str, 'arglist':dict, 'monitorclass': str, 'provider':str}
 
 testresult = tests[count][0]
 
 expected = tests[count][1]
 
 fieldvalue = testresult[1][field]
 
int longest = 0
 
string fmt = '%%%ds: %%s'
 
string pad = (longest +2)*' '
 
string fmt2 = pad+'%s'
 
 descriptions = description.split('\n')
 

Variable Documentation

cma.monitoring.descriptions = description.split('\n')

Definition at line 1106 of file monitoring.py.

cma.monitoring.expected = tests[count][1]

Definition at line 1070 of file monitoring.py.

cma.monitoring.fdrone

Definition at line 948 of file monitoring.py.

dictionary cma.monitoring.fieldmap = {'monitortype': str, 'arglist':dict, 'monitorclass': str, 'provider':str}

Definition at line 1067 of file monitoring.py.

cma.monitoring.fieldvalue = testresult[1][field]

Definition at line 1078 of file monitoring.py.

string cma.monitoring.fmt = '%%%ds: %%s'

Definition at line 1101 of file monitoring.py.

string cma.monitoring.fmt2 = pad+'%s'

Definition at line 1103 of file monitoring.py.

cma.monitoring.longest = 0

Definition at line 1097 of file monitoring.py.

tuple cma.monitoring.lsbsshargs
Initial value:
1 = (
2  # This means one of our nodes should have a value called
3  # pathname, and it should end in '/sshd'
4  ('$pathname', '.*/sshd$'),
5  )

Definition at line 986 of file monitoring.py.

cma.monitoring.lsbsshrule = LSBMonitoringRule('ssh', lsbsshargs)

Definition at line 991 of file monitoring.py.

tuple cma.monitoring.nagiossensorsargs = ((None, 'hascmd(sensors)', "True"),)

Definition at line 1000 of file monitoring.py.

cma.monitoring.nagiossensorsrule
Initial value:
1 = NagiosMonitoringRule('check_sensors', 'med', [], nagiossensorsargs
2  , objclass='host')

Definition at line 1001 of file monitoring.py.

tuple cma.monitoring.nagiossshargs
Initial value:
1 = (
2  (None, '@basename()', '.*sshd$'),
3  ('-p', '@serviceport()', '[0-9]+'),
4  ('__ARGV__', '@serviceip()', '.'),
5  )

Definition at line 993 of file monitoring.py.

cma.monitoring.nagiossshrule = NagiosMonitoringRule('check_ssh', 'med', ['-t', '3600'], nagiossshargs)

Definition at line 998 of file monitoring.py.

tuple cma.monitoring.neolsbargs
Initial value:
1 = (
2  ('$argv[0]', r'.*/[^/]*java[^/]*$'), # Might be overkill
3  ('$argv[3]', r'-server$'), # Probably overkill
4  ('$argv[-1]', r'org\.neo4j\.server\.Bootstrapper$'),
5  )

Definition at line 964 of file monitoring.py.

cma.monitoring.neonode
Initial value:
1 = ProcessNode('global', 'fred', 'servidor', '/usr/bin/java', neoprocargs
2  , 'root', 'root', '/', roles=(CMAconsts.ROLE_server,))

Definition at line 1035 of file monitoring.py.

tuple cma.monitoring.neoocfargs
Initial value:
1 = (
2  (None, "@basename()", "java$"),
3  (None, "$argv[-1]", "org\\.neo4j\\.server\\.Bootstrapper$"),
4  #("ipport", "@serviceipport()", "..."),
5  ("neo4j_home", "@argequals(-Dneo4j.home)", "/"),
6  ("neo4j", "@basename(@argequals(-Dneo4j.home))",".")
7  )

Definition at line 970 of file monitoring.py.

cma.monitoring.neoocfrule = OCFMonitoringRule('assimilation', 'neo4j', neoocfargs)

Definition at line 977 of file monitoring.py.

tuple cma.monitoring.neoprocargs
Initial value:
1 = ("/usr/bin/java", "-cp"
2  , "/var/lib/neo4j/lib/concurrentlinkedhashmap-lru-1.3.1.jar:"
3  "/var/lib/neo4j/lib/geronimo-jta_1.1_spec-1.1.1.jar:/var/lib/neo4j/lib/lucene-core-3.6.2.jar"
4  ":/var/lib/neo4j/lib/neo4j-cypher-2.0.0-M04.jar"
5  ":/var/lib/neo4j/lib/neo4j-graph-algo-2.0.0-M04.jar"
6  ":/var/lib/neo4j/lib/neo4j-graph-matching-2.0.0-M04.jar"
7  ":/var/lib/neo4j/lib/neo4j-jmx-2.0.0-M04.jar"
8  ":/var/lib/neo4j/lib/neo4j-kernel-2.0.0-M04.jar"
9  ":/var/lib/neo4j/lib/neo4j-lucene-index-2.0.0-M04.jar"
10  ":/var/lib/neo4j/lib/neo4j-shell-2.0.0-M04.jar"
11  ":/var/lib/neo4j/lib/neo4j-udc-2.0.0-M04.jar"
12  "/var/lib/neo4j/system/lib/neo4j-server-2.0.0-M04-static-web.jar:"
13  "AND SO ON:"
14  "/var/lib/neo4j/system/lib/slf4j-api-1.6.2.jar:"
15  "/var/lib/neo4j/conf/", "-server", "-XX:"
16  "+DisableExplicitGC"
17  , "-Dorg.neo4j.server.properties=conf/neo4j-server.properties"
18  , "-Djava.util.logging.config.file=conf/logging.properties"
19  , "-Dlog4j.configuration=file:conf/log4j.properties"
20  , "-XX:+UseConcMarkSweepGC"
21  , "-XX:+CMSClassUnloadingEnabled"
22  , "-Dneo4j.home=/var/lib/neo4j"
23  , "-Dneo4j.instance=/var/lib/neo4j"
24  , "-Dfile.encoding=UTF-8"
25  , "org.neo4j.server.Bootstrapper")

Definition at line 1009 of file monitoring.py.

cma.monitoring.neorule = LSBMonitoringRule('neo4j-service', neolsbargs)

Definition at line 969 of file monitoring.py.

cma.monitoring.nosensors = pyConfigContext('{"_init_commands": {"data": {"bash": null}}}')

Definition at line 1038 of file monitoring.py.

cma.monitoring.oraclenode
Initial value:
1 = ProcessNode('global', 'fred', 'servidor', '/usr/bin/oracle'
2  , ['ora_pmon_InstanceName'], 'oracle', 'oracle', '/', roles=(CMAconsts.ROLE_server,))

Definition at line 1045 of file monitoring.py.

tuple cma.monitoring.oracleocfargs
Initial value:
1 = (
2  (None, "@basename()", "oracle$"),
3  ("sid", "@argmatch(\"ora_pmon_(.*)\")", "..*")
4  )

Definition at line 1040 of file monitoring.py.

cma.monitoring.oracleocfrule = OCFMonitoringRule('heartbeat', 'oracle', oracleocfargs)

Definition at line 1044 of file monitoring.py.

string cma.monitoring.pad = (longest +2)*' '

Definition at line 1102 of file monitoring.py.

Referenced by proj_class_debug_dump().

cma.monitoring.sshnode
Initial value:
1 = ProcessNode('global', 'fred', 'servidor', '/usr/bin/sshd', ['/usr/bin/sshd', '-D' ]
2  , 'root', 'root', '/', roles=(CMAconsts.ROLE_server,))

Definition at line 981 of file monitoring.py.

cma.monitoring.testresult = tests[count][0]

Definition at line 1069 of file monitoring.py.

list cma.monitoring.tests
Initial value:
1 = [
2  (oracleocfrule.specmatch(ExpressionContext((oraclenode, fdrone))),
3  MonitoringRule.HIGHPRIOMATCH),
4  (lsbsshrule.specmatch(ExpressionContext((sshnode, fdrone))), MonitoringRule.LOWPRIOMATCH),
5  (lsbsshrule.specmatch(ExpressionContext((udevnode, fdrone))), MonitoringRule.NOMATCH),
6  (lsbsshrule.specmatch(ExpressionContext((neonode, fdrone))), MonitoringRule.NOMATCH),
7  (neorule.specmatch(ExpressionContext((sshnode, fdrone))), MonitoringRule.NOMATCH),
8  (neorule.specmatch(ExpressionContext((neonode, fdrone))), MonitoringRule.LOWPRIOMATCH),
9  (neoocfrule.specmatch(ExpressionContext((neonode, fdrone))), MonitoringRule.HIGHPRIOMATCH),
10  (neoocfrule.specmatch(ExpressionContext((neonode, fdrone))), MonitoringRule.HIGHPRIOMATCH),
11  (nagiossshrule.specmatch(ExpressionContext((sshnode, fdrone))),
12  MonitoringRule.MEDPRIOMATCH),
13  (nagiossshrule.specmatch(ExpressionContext((udevnode, fdrone))), MonitoringRule.NOMATCH),
14  (nagiossshrule.specmatch(ExpressionContext((neonode, fdrone))), MonitoringRule.NOMATCH),
15  (nagiossensorsrule.specmatch(ExpressionContext((withsensors, fdrone))),
16  MonitoringRule.MEDPRIOMATCH),
17  (nagiossensorsrule.specmatch(ExpressionContext((nosensors, fdrone))),
18  MonitoringRule.NOMATCH),
19  ]

Definition at line 1048 of file monitoring.py.

cma.monitoring.udevnode
Initial value:
1 = ProcessNode('global', 'fred', 'servidor', '/usr/bin/udevd', ['/usr/bin/udevd']
2  , 'root', 'root', '/', roles=(CMAconsts.ROLE_server,))

Definition at line 1005 of file monitoring.py.

cma.monitoring.withsensors = pyConfigContext('{"_init_commands" : {"data": {"sensors": null}}}')

Definition at line 1037 of file monitoring.py.