Since I keep googling these over and over.....
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
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
Vagrant::Config.run do |config| | |
# All Vagrant configuration is done here. The most common configuration | |
# options are documented and commented below. For a complete reference, | |
# please see the online documentation at vagrantup.com. | |
config.vm.define :core3 do |core3_config| | |
core3_config.vm.box = "core3" |
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
#Report Datapoints Per Collector | |
from pprint import pprint | |
results = {"total_devices": 0, "total_datapoints": 0} | |
for monitor_name in dmd.Monitors.getPerformanceMonitorNames(): | |
if monitor_name not in results: | |
results[monitor_name] = {} | |
monitor = dmd.Monitors.getPerformanceMonitor(monitor_name) | |
results[monitor_name]['device_count'] = len(monitor.getDevices()) | |
results["total_devices"] += results[monitor_name]['device_count'] | |
dp_count = 0 |
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
1.1.1.1 [2013-02-06T17:51:04-08:00] INFO: Processing chef_gem[minitest-chef-handler] action nothing (minitest-handler::default line 7) | |
1.1.1.1 [2013-02-06T17:51:05-08:00] INFO: Processing chef_gem[minitest-chef-handler] action install (minitest-handler::default line 7) | |
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: chef_gem[minitest-chef-handler] (minitest-handler::default line 7) has had an error | |
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: Running exception handlers | |
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Saving node information to /var/chef/cache/failed-run-data.json | |
1.1.1.1 [2013-02-06T17:51:19-08:00] ERROR: Exception handlers complete | |
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Stacktrace dumped to /var/chef/cache/chef-stacktrace.out | |
1.1.1.1 [2013-02-06T17:51:19-08:00] FATAL: Gem::Installer::ExtensionBuildError: chef_gem[minitest-chef-handler] (minitest-handler::default line 7) | |
had an error: Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. | |
1.1.1.1 |
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
09:50:27 [@ 2-rundeck-jobref][CONFIG] [workflow] Begin step: 2,rundeck-jobref | |
09:50:27 [@ 2-rundeck-jobref][CONFIG] 2: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionItemFactory$5@46652fe2 | |
09:50:27 [user@NODE1 1-NodeDispatch-exec][WARNING] Caught an exception, leaving main loop due to Socket closed | |
09:50:27 [@ 2-rundeck-jobref][SEVERE] No nodes matched for the filters: NodeSet{includes={name=${node.name}, dominant=false, }} | |
09:50:27 [petzeld@localhost ][CONFIG] [workflow] Finish execution: rundeck-workflow-node-first: [Workflow , Node failures: {NODE1=[]}: exception: groovy.lang.GroovyRuntimeException: Could not find matching constructor for: com.dtolabs.rundeck.core.execution.workflow.steps.StepException(com.dtolabs.rundeck.execution.JobReferenceFailureReason, java.lang.String)] | |
09:50:27 [null@null null null][SEVERE] Could not find matching constructor for: com.dtolabs.rundeck.core.execution.workflow.steps.StepException(com.dtolabs.rundeck.execution.JobReferenceFailureReason, java.lang |
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
01:51:36 [me@localhost ][CONFIG] [workflow] Begin execution: rundeck-workflow-node-first context: null | |
01:51:36 [me@localhost ][CONFIG] preparing for sequential execution on 1 nodes | |
01:51:36 [me@localhost ][CONFIG] Executing command on node: MyNode, NodeEntryImpl{tags=[mytaglist], attributes={my_attributes}, project='null'} | |
01:51:36 [me@localhost ][CONFIG] NodeSet: MultiNodeSelector{nodenames=[MyNode]} | |
01:51:36 [me@localhost ][CONFIG] Workflow: com.dtolabs.rundeck.core.execution.workflow.StepFirstWorkflowStrategy$stepFirstWrapper@677ef089 | |
01:51:36 [me@localhost ][CONFIG] data context: {node={my)_tags}, job={id=14a69b44-6b9d-466c-8f7f-36a8919953fc, project=MyProject, loglevel=DEBUG, username=me, user.name=me, name=MyJob, group=MyGroup, execid=127}, option={service_name=MyService, another_option=no, node_name=MyNode}} | |
01:51:36 [@ 1-NodeDispatch-exec][CONFIG] [workflow] Begin step: 1,NodeDispatch | |
01:51:36 [@ 1-NodeDispatch-exec][CONFIG] 1: Workflow step executing: com.dtolabs.rundeck.execution.ExecutionI |
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
# Assume your Event was "MyCoolApp Tossed An Error" | |
import re | |
if getattr(evt, "datasourceId", None) is not None: | |
# Start with any characters up to the first space. Save the capture as variable named app_name | |
re_string = "^(?P<app_name>.*?)\s.*?" | |
m = re.search(re_string, evt.datasourceId) | |
if m and m.group('app_name'): | |
app_name = m.group('app_name') | |
# Now set the component equal to the app name | |
evt.component = app_name |
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
153: def ssh(ssh_args, cmd) | |
=> 154: binding.pry | |
155: env = "env" | |
156: if config[:http_proxy] | |
157: env << " http_proxy=#{config[:http_proxy]}" | |
158: end | |
159: if config[:https_proxy] | |
160: env << " https_proxy=#{config[:https_proxy]}" | |
161: end | |
162: if env != "env" |
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
[root@mynode zenoss-core-autodeploy-5c534bc]# cat zenpack_actions.txt | |
+/opt/zenoss/packs/ZenPacks.zenoss.ApacheMonitor-2.1.3-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.DellMonitor-2.2.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.DigMonitor-1.1.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.DnsMonitor-2.1.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.FtpMonitor-1.1.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.HPMonitor-2.1.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.HttpMonitor-2.1.0-py2.7.egg | |
+/opt/zenoss/packs/ZenPacks.zenoss.IRCDMonitor-1.1.0-py2.7.egg |
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
# Full debug output: https://gist.github.com/dpetzel/7268979 | |
# /opt/chef/bin/chef-client --version | |
Chef: 10.26.0 | |
# /opt/chef/embedded/bin/gem install minitest-chef-handler | |
Fetching: mixlib-config-2.0.0.gem (100%) | |
Fetching: mixlib-shellout-1.2.0.gem (100%) | |
Fetching: diff-lcs-1.2.4.gem (100%) |