{"action":"created","issue":{"url":"https://api.github.com/repos/alerta/docker-alerta/issues/72","repository_url":"https://api.github.com/repos/alerta/docker-alerta","labels_url":"https://api.github.com/repos/alerta/docker-alerta/issues/72/labels{/name}","comments_url":"https://api.github.com/repos/alerta/docker-alerta/issues/72/comments","events_url":"https://api.github.com/repos/alerta/docker-alerta/issues/72/events","html_url":"https://github.com/alerta/docker-alerta/issues/72","id":338337066,"node_id":"MDU6SXNzdWUzMzgzMzcwNjY=","number":72,"title":"Nagios - Alerta integration not working","user":{"login":"francopeapea","id":16282981,"node_id":"MDQ6VXNlcjE2MjgyOTgx","avatar_url":"https://avatars2.githubusercontent.com/u/16282981?v=4","gravatar_id":"","url":"https://api.github.com/users/francopeapea","html_url":"https://github.com/francopeapea","followers_url":"https://api.github.com/users/francopeapea/followers","following_url":"https://api.github.com/users/francopeapea/following{/other_user}","gists_url":"https://api.github.com/users/francopeapea/gists{/gist_id}","starred_url":"https://api.github.com/users/francopeapea/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/francopeapea/subscriptions","organizations_url":"https://api.github.com/users/francopeapea/orgs","repos_url":"https://api.github.com/users/francopeapea/repos","events_url":"https://api.github.com/users/francopeapea/events{/privacy}","received_events_url":"https://api.github.com/users/francopeapea/received_events","type":"User","site_admin":false},"labels":[{"id":77304028,"node_id":"MDU6TGFiZWw3NzMwNDAyOA==","url":"https://api.github.com/repos/alerta/docker-alerta/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":12,"created_at":"2018-07-04T16:51:43Z","updated_at":"2018-07-05T19:44:47Z","closed_at":null,"author_association":"NONE","body":"I have just configured nagios - alerta integration. Following the steps in https://github.com/alerta/nagios-alerta and I'm not recieving any alert or any error log either in Alerta or Nagios"},"comment":{"url":"https://api.github.com/repos/alerta/docker-alerta/issues/comments/402832208","html_url":"https://github.com/alerta/docker-alerta/issues/72#issuecomment-402832208","issue_url":"https://api.github.com/repos/alerta/docker-alerta/issues/72","id":402832208,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMjgzMjIwOA==","user":{"login":"satterly","id":615057,"node_id":"MDQ6VXNlcjYxNTA1Nw==","avatar_url":"https://avatars0.githubusercontent.com/u/615057?v=4","gravatar_id":"","url":"https://api.github.com/users/satterly","html_url":"https://github.com/satterly","followers_url":"https://api.github.com/users/satterly/followers","following_url":"https://api.github.com/users/satterly/following{/other_user}","gists_url":"https://api.github.com/users/satterly/gists{/gist_id}","starred_url":"https://api.github.com/users/satterly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satterly/subscriptions","organizations_url":"https://api.github.com/users/satterly/orgs","repos_url":"https://api.github.com/users/satterly/repos","events_url":"https://api.github.com/users/satterly/events{/privacy}","received_events_url":"https://api.github.com/users/satterly/received_events","type":"User","site_admin":false},"created_at":"2018-07-05T19:44:47Z","updated_at":"2018-07-05T19:44:47Z","author_association":"MEMBER","body":"This is what I have configured for my test nagios 4 server...\r\n\r\n    $ vi /usr/local/nagios/etc/nagios.cfg\r\n\r\n```\r\nbroker_module=/usr/lib/nagios/alerta-neb.o http://localhost:8080 debug=1\r\n```\r\n\r\nAnd it generates a lot of debug output to `/usr/local/nagios/var/nagios.log` ...\r\n```\r\n[1530818800] Nagios 4.1.1 starting... (PID=7035)\r\n[1530818800] Local time is Thu Jul 05 19:26:40 UTC 2018\r\n[1530818800] LOG VERSION: 2.0\r\n[1530818800] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized\r\n[1530818800] qh: core query handler registered\r\n[1530818800] nerd: Channel hostchecks registered successfully\r\n[1530818800] nerd: Channel servicechecks registered successfully\r\n[1530818800] nerd: Channel opathchecks registered successfully\r\n[1530818800] nerd: Fully initialized and ready to rock!\r\n[1530818800] wproc: Successfully registered manager as @wproc with query handler\r\n[1530818800] wproc: Registry request: name=Core Worker 7039;pid=7039\r\n[1530818800] wproc: Registry request: name=Core Worker 7040;pid=7040\r\n[1530818800] wproc: Registry request: name=Core Worker 7038;pid=7038\r\n[1530818800] wproc: Registry request: name=Core Worker 7037;pid=7037\r\n[1530818800] Error: Could not load module '/usr/lib/nagios/alerta-neb.o' -> /usr/lib/nagios/alerta-neb.o: cannot open shared object file: No such file or directory\r\n[1530818800] Error: Failed to load module '/usr/lib/nagios/alerta-neb.o'.\r\n[1530818800] Error: Module loading failed. Aborting.\r\n[1530819409] Nagios 4.1.1 starting... (PID=7367)\r\n[1530819409] Local time is Thu Jul 05 19:36:49 UTC 2018\r\n[1530819409] LOG VERSION: 2.0\r\n[1530819409] qh: Socket '/usr/local/nagios/var/rw/nagios.qh' successfully initialized\r\n[1530819409] qh: core query handler registered\r\n[1530819409] nerd: Channel hostchecks registered successfully\r\n[1530819409] nerd: Channel servicechecks registered successfully\r\n[1530819409] nerd: Channel opathchecks registered successfully\r\n[1530819409] nerd: Fully initialized and ready to rock!\r\n[1530819409] wproc: Successfully registered manager as @wproc with query handler\r\n[1530819409] wproc: Registry request: name=Core Worker 7369;pid=7369\r\n[1530819409] wproc: Registry request: name=Core Worker 7372;pid=7372\r\n[1530819409] wproc: Registry request: name=Core Worker 7371;pid=7371\r\n[1530819409] wproc: Registry request: name=Core Worker 7370;pid=7370\r\n[1530819409] [alerta] Initialising Nagios-Alerta Gateway module, v4.0.0\r\n[1530819409] [alerta] debug is on\r\n[1530819409] [alerta] states=Hard/Soft\r\n[1530819409] [alerta] Forward service checks, host checks and downtime to http://localhost:8080\r\n[1530819409] Event broker module '/usr/lib/nagios/alerta-neb.o' initialized successfully.\r\n[1530819410] Successfully launched command file worker with pid 7373\r\n[1530819414] [alerta] Host check received.\r\n[1530819414] {\"origin\": \"nagios/ubuntu-xenial\", \"resource\": \"localhost\", \"tags\": [\"check=Active\"], \"customer\": \"\", \"event\": \"Host Check\", \"text\": \"PING OK - Packet loss = 0%, RTA = 0.07 ms\", \"service\": [\"Platform\"], \"group\": \"Nagios\", \"environment\": \"Production\", \"severity\": \"normal\", \"value\": \"1/10 (Hard)\", \"type\": \"nagiosHostAlert\", \"rawData\": \"rta=0.069000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0\"}\r\n[1530819414] [curl]   Trying 127.0.0.1...\r\n[1530819414] [curl] Connected to localhost (127.0.0.1) port 8080 (#0)\r\n[1530819414] [curl] POST /alert HTTP/1.1^M\r\nHost: localhost:8080^M\r\nUser-Agent: Nagios-Alerta Gateway/4.0.0^M\r\nAccept: */*^M\r\nContent-Type: application/json^M\r\nContent-Length: 400^M\r\n^M\r\n{\"origin\": \"nagios/ubuntu-xenial\", \"resource\": \"localhost\", \"tags\": [\"check=Active\"], \"customer\": \"\", \"event\": \"Host Check\", \"text\": \"PING OK - Packet loss = 0%, RTA = 0.07 ms\", \"service\": [\"Platform\"], \"group\": \"Nagios\", \"environment\": \"Production\", \"severity\": \"normal\", \"value\": \"1/10 (Hard)\", \"type\": \"nagiosHostAlert\", \"rawData\": \"rta=0.069000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0\"}\r\n[1530819414] [curl] {\"origin\": \"nagios/ubuntu-xenial\", \"resource\": \"localhost\", \"tags\": [\"check=Active\"], \"customer\": \"\", \"event\": \"Host Check\", \"text\": \"PING OK - Packet loss = 0%, RTA = 0.07 ms\", \"service\": [\"Platform\"], \"group\": \"Nagios\", \"environment\": \"Production\", \"severity\": \"normal\", \"value\": \"1/10 (Hard)\", \"type\": \"nagiosHostAlert\", \"rawData\": \"rta=0.069000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0\"}\r\n[1530819414] [curl] upload completely sent off: 400 out of 400 bytes\r\n[1530819414] [curl] HTTP/1.1 201 CREATED\r\n[1530819414] [curl] Date: Thu, 05 Jul 2018 19:36:54 GMT\r\n[1530819414] [curl] Server: Apache/2.4.18 (Ubuntu)\r\n[1530819414] [curl] Access-Control-Allow-Origin: http://localhost\r\n[1530819414] [curl] Vary: Origin\r\n[1530819414] [curl] Content-Length: 1521\r\n[1530819414] [curl] Content-Type: application/json\r\n[1530819414] [curl] ^M\r\n{\"alert\":{\"attributes\":{\"ip\":\"127.0.0.1\"},\"correlate\":[],\"createTime\":\"2018-07-05T19:36:54.983Z\",\"customer\":null,\"duplicateCount\":0,\"environment\":\"Production\",\"event\":\"Host Check\",\"group\":\"Nagios\",\"history\":[{\"event\":\"Host Check\",\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"severity\":\"normal\",\"status\":null,\"text\":\"PING OK - Packet loss = 0%, RTA = 0.07 ms\",\"type\":\"severity\",\"updateTime\":\"2018-07-05T19:36:54.983Z\",\"value\":\"1/10 (Hard)\"},{\"event\":\"Host Check\",\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"severity\":null,\"status\":\"closed\",\"text\":\"new alert status change\",\"type\":\"status\",\"updateTime\":\"2018-07-05T19:36:54.985Z\",\"value\":null}],\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"lastReceiveId\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"lastReceiveTime\":\"2018-07-05T19:36:54.985Z\",\"origin\":\"nagios/ubuntu-xenial\",\"previousSeverity\":\"indeterminate\",\"rawData\":\"rta=0.069000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0\",\"receiveTime\":\"2018-07-05T19:36:54.985Z\",\"repeat\":false,\"resource\":\"localhost\",\"service\":[\"Platform\"],\"severity\":\"normal\",\"status\":\"closed\",\"tags\":[\"check=Active\"],\"text\":\"PING OK - Packet loss = 0%, RTA = 0.07 ms\",\"timeout\":86400,\"trendIndication\":\"lessSevere\",\"type\":\"nagiosHostAlert\",\"value\":\"1/10 (Hard)\"},\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"status\":\"ok\"}\r\n[1530819414] [curl] {\"alert\":{\"attributes\":{\"ip\":\"127.0.0.1\"},\"correlate\":[],\"createTime\":\"2018-07-05T19:36:54.983Z\",\"customer\":null,\"duplicateCount\":0,\"environment\":\"Production\",\"event\":\"Host Check\",\"group\":\"Nagios\",\"history\":[{\"event\":\"Host Check\",\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"severity\":\"normal\",\"status\":null,\"text\":\"PING OK - Packet loss = 0%, RTA = 0.07 ms\",\"type\":\"severity\",\"updateTime\":\"2018-07-05T19:36:54.983Z\",\"value\":\"1/10 (Hard)\"},{\"event\":\"Host Check\",\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"severity\":null,\"status\":\"closed\",\"text\":\"new alert status change\",\"type\":\"status\",\"updateTime\":\"2018-07-05T19:36:54.985Z\",\"value\":null}],\"href\":\"http://localhost:8080/alert/8e3450ae-77dc-471b-8241-2643814e6648\",\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"lastReceiveId\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"lastReceiveTime\":\"2018-07-05T19:36:54.985Z\",\"origin\":\"nagios/ubuntu-xenial\",\"previousSeverity\":\"indeterminate\",\"rawData\":\"rta=0.069000ms;3000.000000;5000.000000;0.000000 pl=0%;80;100;0\",\"receiveTime\":\"2018-07-05T19:36:54.985Z\",\"repeat\":false,\"resource\":\"localhost\",\"service\":[\"Platform\"],\"severity\":\"normal\",\"status\":\"closed\",\"tags\":[\"check=Active\"],\"text\":\"PING OK - Packet loss = 0%, RTA = 0.07 ms\",\"timeout\":86400,\"trendIndication\":\"lessSevere\",\"type\":\"nagiosHostAlert\",\"value\":\"1/10 (Hard)\"},\"id\":\"8e3450ae-77dc-471b-8241-2643814e6648\",\"status\":\"ok\"}\r\n[1530819414] [curl] Connection #0 to host localhost left intact\r\n[1530819414] [alerta] HTTP response OK (status=201)\r\n[1530819429] [alerta] Heartbeat service check OK.\r\n[1530819429] {\"origin\": \"nagios/localhost\", \"type\": \"Heartbeat\", \"customer\": \"\", \"tags\": [\"4.0.0\"]}\r\n[1530819429] [curl] Connection 0 seems to be dead!\r\n[1530819429] [curl] Closing connection 0\r\n[1530819429] [curl] Hostname localhost was found in DNS cache\r\n[1530819429] [curl]   Trying 127.0.0.1...\r\n[1530819429] [curl] Connected to localhost (127.0.0.1) port 8080 (#1)\r\n[1530819429] [curl] POST /heartbeat HTTP/1.1^M\r\nHost: localhost:8080^M\r\nUser-Agent: Nagios-Alerta Gateway/4.0.0^M\r\nAccept: */*^M\r\nContent-Type: application/json^M\r\nContent-Length: 86^M\r\n^M\r\n{\"origin\": \"nagios/localhost\", \"type\": \"Heartbeat\", \"customer\": \"\", \"tags\": [\"4.0.0\"]}R<97>ÿ^?\r\n[1530819429] [curl] {\"origin\": \"nagios/localhost\", \"type\": \"Heartbeat\", \"customer\": \"\", \"tags\": [\"4.0.0\"]}R<97>ÿ^?\r\n[1530819429] [curl] upload completely sent off: 86 out of 86 bytes\r\n[1530819430] [curl] HTTP/1.1 201 CREATED\r\n[1530819430] [curl] Date: Thu, 05 Jul 2018 19:37:09 GMT\r\n[1530819430] [curl] Server: Apache/2.4.18 (Ubuntu)\r\n[1530819430] [curl] Access-Control-Allow-Origin: http://localhost\r\n[1530819430] [curl] Vary: Origin\r\n[1530819430] [curl] Content-Length: 409\r\n[1530819430] ...\r\n```\r\n\r\nSo I'm not sure why you aren't seeing anything. Are you looking in the correct nagios server log file?"}}
{"actor":{"display_login":"satterly"}}