{"_id":"564e4d122b223c2b00496a27","category":{"_id":"55d3b645f77e6d0d00b1b27c","__v":4,"pages":["55d3b647f77e6d0d00b1b286","55d3b647f77e6d0d00b1b287","55d3b647f77e6d0d00b1b288","55d3b647f77e6d0d00b1b289","55d3b647f77e6d0d00b1b28a","55d3b647f77e6d0d00b1b28b","55d3b647f77e6d0d00b1b28c","55d3b647f77e6d0d00b1b28d","55d3b647f77e6d0d00b1b28e","55d3b647f77e6d0d00b1b28f","55d3b647f77e6d0d00b1b290","55d3b647f77e6d0d00b1b291","562ea6c53b2af20d006ad03d","56312e4024014b0d00bd9a48","564e4d122b223c2b00496a27"],"project":"55c505b41469ad2500fa2ab7","version":"55d3b644f77e6d0d00b1b273","sync":{"url":"","isSync":false},"reference":false,"createdAt":"2015-08-10T18:45:23.276Z","from_sync":false,"order":9,"slug":"integration-guides","title":"Integration Guides"},"parentDoc":null,"user":"55c50f4a7c199a2f00665cbf","version":{"_id":"55d3b644f77e6d0d00b1b273","project":"55c505b41469ad2500fa2ab7","__v":6,"createdAt":"2015-08-18T22:48:36.632Z","releaseDate":"2015-08-18T22:48:36.632Z","categories":["55d3b645f77e6d0d00b1b274","55d3b645f77e6d0d00b1b275","55d3b645f77e6d0d00b1b276","55d3b645f77e6d0d00b1b277","55d3b645f77e6d0d00b1b278","55d3b645f77e6d0d00b1b279","55d3b645f77e6d0d00b1b27a","55d3b645f77e6d0d00b1b27b","55d3b645f77e6d0d00b1b27c","55d3b645f77e6d0d00b1b27d","55d7c2939510f00d007ec6fe","56fac9925df15a20002972a2","56fb2f7668e1d30e00a0b672","583498d411e8af2500f6b334","58e52a180ab7b03b00f4a97a"],"is_deprecated":false,"is_hidden":false,"is_beta":true,"is_stable":true,"codename":"","version_clean":"1.1.0","version":"1.1"},"__v":8,"project":"55c505b41469ad2500fa2ab7","updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-11-19T22:28:34.858Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":13,"body":"[block:callout]\n{\n \"type\": \"info\",\n \"title\": \"For PagerDuty + Zenoss users\",\n \"body\": \"If you are pushing your Zenoss alerts to PagerDuty, Neptune.io will receive from PagerDuty so directly go to PagerDuty integration.\"\n}\n[/block]\nThese are the steps for integrating Zenoss directly with Neptune.io.\n\n## Step 1: Install `curl` on the machine running Zenoss\n`curl` is required because we push events from Zenoss to Neptune using a `curl` command.\n\n## Step 2: Add a new trigger in Zenoss\n\n**Do the following steps in your Zenoss portal.** \n[block:image]\n{\n \"images\": [\n {\n \"image\": [\n \"https://files.readme.io/VxhlMuQurn2EQ3ne1bQF_zenoss_add_trigger.png\",\n \"zenoss_add_trigger.png\",\n \"1917\",\n \"976\",\n \"#f63c3a\",\n \"\"\n ],\n \"caption\": \"Add a trigger in Zenoss\"\n }\n ]\n}\n[/block]\n## Step 3: Add a new notification in Zenoss\n\n**Do the following steps in your Zenoss portal.** \n[block:image]\n{\n \"images\": [\n {\n \"image\": [\n \"https://files.readme.io/KwsAUCZ5SCOoBik2vEZJ_zenoss_add_notification.png\",\n \"zenoss_add_notification.png\",\n \"1911\",\n \"973\",\n \"#f73c3b\",\n \"\"\n ],\n \"caption\": \"Adding notification in Zenoss\"\n }\n ]\n}\n[/block]\n## Step 4: Link the notification to trigger and enable it\n\n**Do the following steps in your Zenoss portal.** \n[block:image]\n{\n \"images\": [\n {\n \"image\": [\n \"https://files.readme.io/9UGBbJ1kQpWfOEmvJLgh_zenoss_notif_settings.png\",\n \"zenoss_notif_settings.png\",\n \"1918\",\n \"981\",\n \"#f43d3c\",\n \"\"\n ],\n \"caption\": \"Configure the notification in Zenoss\"\n }\n ]\n}\n[/block]\n## Step 5: Add following commands in the notification.\n\n**Copy the following command into the \"Command\" in Content tab of notification.** \n[block:callout]\n{\n \"type\": \"warning\",\n \"title\": \"Do not forget to replace your API_KEY here.\"\n}\n[/block]\n\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -H \\\"Content-Type: application/json\\\" -X POST -d '{\\\"event_type\\\": \\\"triggered\\\",\\\"summary\\\":\\\"${evt/summary}\\\",\\\"eventClassKey\\\":\\\"${evt/eventClassKey}\\\",\\\"eventClass\\\":\\\"${evt/eventClass}\\\",\\\"eventState\\\":\\\"${evt/eventState}\\\",\\\"eventKey\\\":\\\"${evt/eventKey}\\\",\\\"device\\\":\\\"${evt/device}\\\",\\\"eventID\\\":\\\"${evt/evid}\\\",\\\"message\\\":\\\"${evt/message}\\\",\\\"ipAddress\\\":\\\"${evt/component}\\\",\\\"severity\\\":\\\"${evt/severity}\\\", \\\"facility\\\":\\\"${evt/facility}\\\", \\\"agent\\\":\\\"${evt/agent}\\\", \\\"dedupid\\\":\\\"${evt/dedupid}\\\", \\\"firstSeen\\\":\\\"${evt/firstSeen}\\\", \\\"priority\\\":\\\"${evt/priority}\\\", \\\"prodState\\\":\\\"${evt/prodState}\\\", \\\"eventUrl\\\":\\\"${urls/eventUrl}\\\"}' https://www.neptune.io/api/v1/trigger/channel/zenoss/$NEPTUNE_API_KEY_HERE\",\n \"language\": \"shell\"\n }\n ]\n}\n[/block]\n**Copy the following command into the \"Clear Command\" in Content tab of notification.** \n[block:callout]\n{\n \"type\": \"warning\",\n \"title\": \"Do not forget to replace your API_KEY here.\"\n}\n[/block]\n\n[block:code]\n{\n \"codes\": [\n {\n \"code\": \"curl -H \\\"Content-Type: application/json\\\" -X POST -d '{\\\"event_type\\\": \\\"resolved\\\",\\\"summary\\\":\\\"${evt/summary}\\\",\\\"eventClassKey\\\":\\\"${evt/eventClassKey}\\\",\\\"eventClass\\\":\\\"${evt/eventClass}\\\",\\\"eventState\\\":\\\"${evt/eventState}\\\",\\\"eventKey\\\":\\\"${evt/eventKey}\\\",\\\"device\\\":\\\"${evt/device}\\\",\\\"eventID\\\":\\\"${evt/evid}\\\",\\\"message\\\":\\\"${evt/message}\\\",\\\"ipAddress\\\":\\\"${evt/component}\\\",\\\"severity\\\":\\\"${evt/severity}\\\", \\\"facility\\\":\\\"${evt/facility}\\\", \\\"agent\\\":\\\"${evt/agent}\\\", \\\"dedupid\\\":\\\"${evt/dedupid}\\\", \\\"firstSeen\\\":\\\"${evt/firstSeen}\\\", \\\"priority\\\":\\\"${evt/priority}\\\", \\\"prodState\\\":\\\"${evt/prodState}\\\", \\\"eventUrl\\\":\\\"${urls/eventUrl}\\\"}' https://www.neptune.io/api/v1/trigger/channel/zenoss/$NEPTUNE_API_KEY_HERE\",\n \"language\": \"shell\"\n }\n ]\n}\n[/block]\n\n[block:image]\n{\n \"images\": [\n {\n \"image\": [\n \"https://files.readme.io/4KtTftDaTTSpsYSAEMQw_zenoss_add_command.png\",\n \"zenoss_add_command.png\",\n \"1920\",\n \"980\",\n \"#eb3d38\",\n \"\"\n ],\n \"caption\": \"Add commands to Zenoss notification.\"\n }\n ]\n}\n[/block]\nThat's it. You should now be receiving your Zenoss events into Neptune.","excerpt":"","slug":"zenoss-integration","type":"basic","title":"Zenoss"}