Integrate with Nagios

steven lo August 3, 2018

Dear Sir,

I need jira to create ticket when some of the service are fail on nagios, so i'm using the add-ons(nagios jira integration) tools to do that part and i'm follow the document to set both site(nagios and jira) but i can't see any new ticket when the service fail on nagios(nagios are using event handler to execute the script and i can see the log on nagios and jira, and that script are provide by this add-ons), please let me know where is the detail log(api call) on jira because i didn't see any fail on jira? thanks.

Nagios Log:

-------------------------------------------

[1533280196] SERVICE ALERT: webserver;Total Processes;OK;HARD;1;PROCS OK: 73 processes
[1533280196] SERVICE EVENT HANDLER: webserver;Total Processes;OK;HARD;1;integrate-jira

 

nagios script

------------------------------------------

curl --data "host=%host%&hostaddress=%hostadress%&hostoutput=%hostoutput%&hoststate=%hoststate%&hoststatetype=%hoststatetype%&responseurl=%responseurl%&key=aHR0cDovL2ppcmEtZGF0YS1sb2FkYmFsYS0xdzlqc3NuMTVzazh3LTgxMzAxMzgxMy5hcC1ub3J0aGVhc3QtMS5lbGIuYW1hem9uYXdzLmNvbQ==&jiraurl=http://jira-data-loadbala-1w9jssn15sk8w-813013813.ap-northeast-1.elb.amazonaws.com" http://jira-data-loadbala-1w9jssn15sk8w-813013813.ap-northeast-1.elb.amazonaws.com/plugins/servlet/nagevent

 

jira log

-----------------------------------------

10.0.134.20 447x4375x1 - [03/Aug/2018:07:27:51 +0000] "POST /plugins/servlet/nagevent HTTP/1.1" 200 5 3 "-" "curl/7.19.7 (x86_64-redhat-linux-gnu) libcurl/7.19.7 NSS/3.27.1 zlib/1.2.3 libidn/1.18 libssh2/1.4.2" "-"

 

Best Wishes,

Steven Lo

 

0 answers

Suggest an answer

Log in or Sign up to answer