This file contains hidden or 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
| rs0:PRIMARY> rs.status() | |
| { | |
| "set" : "rs0", | |
| "date" : ISODate("2017-01-13T14:34:14.190Z"), | |
| "myState" : 1, | |
| "members" : [ | |
| { | |
| "_id" : 0, | |
| "name" : "primary_hostname:27017", | |
| "health" : 1, |
This file contains hidden or 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
| rs0:PRIMARY> rs.status() | |
| { | |
| "set" : "rs0", | |
| "date" : ISODate("2017-01-11T20:36:56.579Z"), | |
| "myState" : 1, | |
| "members" : [ | |
| { | |
| "_id" : 0, | |
| "name" : "primary_hostname:27017", | |
| "health" : 1, |
This file contains hidden or 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
| plugins { | |
| compile ":burning-image:0.5.0" | |
| compile ":email-confirmation:1.0.5" | |
| compile ":mail:1.0" | |
| runtime ":hibernate:$grailsVersion" | |
| runtime ":jquery:1.7.1" | |
| compile ":spring-security-core:1.2.7.2" | |
| } |
This file contains hidden or 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
| Plugin spring-security-core-1.2.7.2 installed | |
| Plugin provides the following new scripts: | |
| ------------------------------------------ | |
| grails s2-quickstart | |
| grails s2-create-persistent-token | |
| Plugin <Jenkins_home>/.ivy2/cache/org.springframework.security/spring-security-core/jars/spring-security-core-3.0.7.RELEASE.jar is not a valid Grails plugin. No plugin.xml descriptor found! | |
| [delete] Deleting directory <Jenkins_home>/workspace/target/projects/workspace/plugins/hibernate-1.3.7 | |
| [delete] Deleting directory <Jenkins_home>/workspace/target/projects/workspace/plugins/jquery-1.7.1 | |
| [delete] Deleting directory <Jenkins_home>/workspace/target/projects/workspace/plugins/tomcat-1.3.7 | |
| [delete] Deleting directory <Jenkisn_home>/workspace/target/projects/workspace/plugins/spring-security-core-1.2.7.2 |
This file contains hidden or 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
| {"timestamp":"2014-06-10T12:12:48.775009+0000","level":"info","message":"handling event","event":{"client":{"name":"server2","address":"ip","subscriptions":["subs"],"load":{"warn":"8","crit":"9"},"disk_free":{"warn":"15%","crit":"10%"},"mem_used":{"warn":"90","crit":"95"},"timestamp":1402402366},"check":{"handlers":["slack","mailer"],"command":"/etc/sensu/plugins/check_load -w :::load.warn::: -c :::load.crit:::","interval":60,"occurrences":5,"refresh":1800,"flapping":true,"subscribers":["subs"],"name":"check_load","issued":1402402368,"executed":1402402368,"output":"CRITICAL - load average: 9.56, 7.21, 4.05|load1=9.560;8.000;9.000;0; load5=7.210;8.000;9.000;0; load15=4.050;8.000;9.000;0; \n","status":2,"duration":0.059,"history":["0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","0","2","2","2","2"]},"occurrences":4,"action":"create"},"handler":{"type":"pipe","command":"/etc/sensu/handlers/mailer.rb","name":"mailer"}} | |
| {"timestamp":"2014-06-10T12:12:49.227691+0000","level":"info","message":"handle |
This file contains hidden or 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
| input { | |
| s3 { | |
| bucket => "your_bucket_name" | |
| credentials => ["acces_key","secret_key"] | |
| codec => cloudtrail | |
| region_endpoint => "your_region" | |
| type => "cloudtrail" | |
| prefix => "your/logs/path" | |
| sincedb_path => "/path/.sincedb" | |
| } |
This file contains hidden or 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
| <LoadPlugin redis> | |
| Globals true | |
| </LoadPlugin> | |
| <Plugin redis> | |
| <Node "redis_server"> | |
| Host "redis_server" | |
| Port "6379" | |
| Timeout 2000 | |
| </Node> |
This file contains hidden or 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
| dentro de client.json | |
| "list_count":{ | |
| "warn": "9000", | |
| "crit": "10000" | |
| } | |
| command en check definition | |
| "command": "/etc/sensu/plugins/check_redis.rb -c :::list_count.crit::: -w :::list_count.warn:::" |
This file contains hidden or 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
| echo '{"name": "service alert", "output": "description", "status": 2, "ocurrences":1, "interval":1, "flapping":false, "notification": "text", "handlers": ["slack"]}' | nc localhost 3030 |
This file contains hidden or 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
| def ec2_node_exists? | |
| states = get_valid_states | |
| filtered_instances = ec2.servers.select { |s| states.include?(s.state) } | |
| instance_names = filtered_instances.collect { |s| s.name } | |
| instance_names.each do |name| | |
| return true if name == @event['client']['name'] | |
| end | |
| false # no match found, node doesn't exist | |
| end |
NewerOlder