Skip to content

Instantly share code, notes, and snippets.

@joshzitting
Last active February 2, 2017 21:40
Show Gist options
  • Save joshzitting/205166250c9a9a2ba7c3d6386c6e7a1d to your computer and use it in GitHub Desktop.
Save joshzitting/205166250c9a9a2ba7c3d6386c6e7a1d to your computer and use it in GitHub Desktop.
curl -s -X GET http://uchiwa:password@10.10.10.100:4567/silenced | jq .
[
{
{
"id": "client:admin1.lax:check_disk",
"subscription": "client:admin1.lax",
"check": "check_disk",
"reason": null,
"creator": "cty",
"expire_on_resolve": false,
"expire": -1
},
{
"id": "client:outside40.lax:check_nfs_client",
"subscription": "client:outside40.lax",
"check": "check_nfs_client",
"reason": null,
"creator": "cty",
"expire_on_resolve": false,
"expire": -1
}
]
{
"timestamp": "2017-02-02T12:10:59.560440-0800",
"level": "info",
"message": "processing event",
"event": {
"client": {
"address": "1.1.1.1.",
"subscriptions": [
"mongo-client",
"base"
],
"name": "outside40.lax",
"version": "0.25.3",
"timestamp": 1486066253
},
"check": {
"command": "sudo /etc/sensu/plugins/check_nfs.sh -i client -s default -a /ebs -x none -f ignore",
"standalone": true,
"handlers": [
"default"
],
"interval": 60,
"notification": "NFS client error!",
"occurrences": 1,
"refresh": 900,
"event_description": "nfs client error!",
"name": "check_nfs_client",
"issued": 1486066258,
"executed": 1486066258,
"duration": 1.159,
"output": "NFS CRITICAL : NFS client services portmapper running. Stale NFS mountpoint /ecs | NFS perfdata\n",
"status": 2,
"type": "standard",
"history": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"2",
"0",
"2",
"0",
"0",
"2"
],
"total_state_change": 28
},
"occurrences": 1,
"occurrences_watermark": 1,
"action": "create",
"timestamp": 1486066259,
"id": "b7b8575e-36e1-47ee-9b9f-1bde40d53c61",
"last_ok": 1486066259,
"last_state_change": 1486066259,
"silenced": false,
"silenced_by": []
}
}
{
"timestamp": "2017-02-02T13:06:24.968278-0800",
"level": "info",
"message": "processing event",
"event": {
"client": {
"name": "admin1.lax",
"address": "10.10.100.100",
"subscriptions": [
"admin",
"base",
"client:admin1.lax"
],
"version": "0.26.5",
"timestamp": 1486069584
},
"check": {
"command": "/opt/sensu/embedded/bin/ruby /etc/sensu/plugins/check_disk.rb -w 5% -c 90% -x nfs",
"standalone": true,
"handlers": [
"default"
],
"interval": 180,
"notification": "Low Disk Space",
"occurrences": 1,
"refresh": 180,
"event_description": "The partitions noted in this alert have exceeded 85% capacity!",
"name": "check_disk",
"issued": 1486069584,
"executed": 1486069584,
"duration": 0.367,
"output": "CheckDisk WARNING: / 7% 21G Available\n",
"status": 1,
"type": "standard",
"history": [
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"0",
"1",
"1",
"1"
],
"total_state_change": 5
},
"occurrences": 3,
"occurrences_watermark": 3,
"action": "create",
"timestamp": 1486069584,
"id": "5a4f06f4-5b9e-4b05-8ab6-adcbeeb01458",
"last_state_change": 1486069224,
"last_ok": 1486069224,
"silenced": true,
"silenced_by": [
"client:admin1.lax:check_disk"
]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment