Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
99 additions
and
65 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# upstart - Monitoring Configuration File | ||
# ======================================== | ||
# updated: 2011-02-28 | ||
|
||
description "Monitoring - service monitoring daemon" | ||
author "Sebastien Pierre <sebastien@ffctn.com>" | ||
|
||
start on (net-device-up and local-filesystems) | ||
stop on runlevel [016] | ||
|
||
respawn | ||
console output | ||
|
||
script | ||
# NOTE: Change this to wherever the monitoring is installed | ||
MONITORING_HOME=/opt/services/monitoring | ||
cd $MONITORING_HOME | ||
# NOTE: Change this to wherever your custom monitoring script is installed | ||
python $MONITORING_HOME/monitoring.py | ||
end script | ||
# EOF |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
Exception in thread Thread-138266: | ||
Traceback (most recent call last): | ||
File "/usr/lib/python2.7/threading.py", line 552, in __bootstrap_inner | ||
self.run() | ||
File "/usr/lib/python2.7/threading.py", line 505, in run | ||
self.__target(*self.__args, **self.__kwargs) | ||
File "/opt/lib/python/monitoring.py", line 1198, in _run | ||
self.result = self.runnable.run(*self.args) | ||
File "/opt/lib/python/monitoring.py", line 974, in run | ||
pid = Process.GetWith(self.command) | ||
File "/opt/lib/python/monitoring.py", line 281, in GetWith | ||
if compare(cmdline, expression): | ||
File "/opt/lib/python/monitoring.py", line 275, in <lambda> | ||
def GetWith(self, expression, compare=(lambda a, b: fnmatch.fnmatch(a, b))): | ||
File "/usr/lib/python2.7/fnmatch.py", line 43, in fnmatch | ||
return fnmatchcase(name, pat) | ||
File "/usr/lib/python2.7/fnmatch.py", line 79, in fnmatchcase | ||
return _cache[pat].match(name) is not None | ||
TypeError: expected string or buffer | ||
|
||
Traceback (most recent call last): | ||
File "/opt/apps/ngsexplorers/monitoring.conf", line 42, in <module> | ||
Run("echo '' > /tmp/monitoring-default.log","/tmp") | ||
File "/opt/lib/python/monitoring.py", line 1274, in run | ||
runner = self.runnerForRule(rule, service, self.iteration) | ||
File "/opt/lib/python/monitoring.py", line 1244, in runnerForRule | ||
if iteration - runner.iteration < 5: | ||
AttributeError: 'bool' object has no attribute 'iteration' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
#!/usr/bin/python | ||
import sys, monitoring | ||
monitoring.command(sys.argv[1:]) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters