{"_id":"55d3b647f77e6d0d00b1b291","user":"55c50f4a7c199a2f00665cbf","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"},"project":"55c505b41469ad2500fa2ab7","__v":11,"parentDoc":null,"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"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2015-08-12T01:19:30.955Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"results":{"codes":[]},"settings":"","auth":"required","params":[],"url":""},"isReference":false,"order":10,"body":"[block:callout]\n{\n  \"type\": \"info\",\n  \"title\": \"For PagerDuty + Nagios users\",\n  \"body\": \"If you are pushing your Nagios alerts to PagerDuty, Neptune.io will receive from PagerDuty so directly go to PagerDuty integration.\"\n}\n[/block]\nThese are the steps for integrating Nagios and Neptune.io.\n\n## Step 1: Download neptuneio_nagios.cfg from Github repo\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"wget https://raw.githubusercontent.com/neptuneio/nagios-integration/master/neptuneio_nagios.cfg\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n## Step 2: Update the config file with your Neptune.io API key\n\nOpen the config file in your favorite editor and update your Neptune API key in the config file under the contact section.\n\n## Step 3: Add the contact “neptuneio” to your Nagios configuration’s main contact group.\n\nThe contact group could be present in /etc/nagios3/conf.d/contacts_nagios2.cfg if you are using Nagios 3 or in objects/contacts.cfg if you are using Nagios 4. Grep for \"define contactgroup\".\n\n## Step 5: Download notify_neptuneio_nagios.py to /usr/local/bin. This might need sudo permissions. Also, make sure the file is executable.\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"wget https://raw.githubusercontent.com/neptuneio/nagios-integration/master/notify_neptuneio_nagios.py\\nchmod 755 notify_neptuneio_nagios.py\\ncp notify_neptuneio_nagios.py /usr/local/bin\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n## Step 6:  Enable environment variable macros for Nagios (if not enabled already)\n\nSearch for enable_environment_macros and set it to 1.\n\n## Step 7: Restart Nagios server.\n\nYou are ready to go. Any new notifications sent by Nagios will be sent to Neptune.io and create an incident in the incident dashboard.","excerpt":"","slug":"nagios-integration","type":"basic","title":"Nagios"}
[block:callout] { "type": "info", "title": "For PagerDuty + Nagios users", "body": "If you are pushing your Nagios alerts to PagerDuty, Neptune.io will receive from PagerDuty so directly go to PagerDuty integration." } [/block] These are the steps for integrating Nagios and Neptune.io. ## Step 1: Download neptuneio_nagios.cfg from Github repo [block:code] { "codes": [ { "code": "wget https://raw.githubusercontent.com/neptuneio/nagios-integration/master/neptuneio_nagios.cfg", "language": "shell" } ] } [/block] ## Step 2: Update the config file with your Neptune.io API key Open the config file in your favorite editor and update your Neptune API key in the config file under the contact section. ## Step 3: Add the contact “neptuneio” to your Nagios configuration’s main contact group. The contact group could be present in /etc/nagios3/conf.d/contacts_nagios2.cfg if you are using Nagios 3 or in objects/contacts.cfg if you are using Nagios 4. Grep for "define contactgroup". ## Step 5: Download notify_neptuneio_nagios.py to /usr/local/bin. This might need sudo permissions. Also, make sure the file is executable. [block:code] { "codes": [ { "code": "wget https://raw.githubusercontent.com/neptuneio/nagios-integration/master/notify_neptuneio_nagios.py\nchmod 755 notify_neptuneio_nagios.py\ncp notify_neptuneio_nagios.py /usr/local/bin", "language": "shell" } ] } [/block] ## Step 6: Enable environment variable macros for Nagios (if not enabled already) Search for enable_environment_macros and set it to 1. ## Step 7: Restart Nagios server. You are ready to go. Any new notifications sent by Nagios will be sent to Neptune.io and create an incident in the incident dashboard.