Monitoring Atlassian products

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Kukkurloom
Posts: 11
Joined: Thu Jul 04, 2019 2:00 am

Monitoring Atlassian products

Post by Kukkurloom »

Hello fellow Nagios people!

I am currently building services on my Nagios Core 4.4.3 and since we would like to monitor Atlassian products (Jira, Bitbucket, Confluence and Bamboo) is here anyone out here who has some experience with that? Right now Im building check_http service for our Jira server, but it returns with an error:

Code: Select all

connect to address [IP] and port 80: No route to host
And when I change the host address to a different one it gives me:

Code: Select all

140467010549680:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:s23_clnt.c:794:
Right now my define service is like that:

Code: Select all

define service {
        service_description             Jira_http
        use                             generic-service
        check_command                   check_http_url!http://address1.address2/jira -s  --expect=200 -p 8080
        host_name                       Jira
        notification_interval           0
        notification_period             24x7
        notifications_enabled           1
        flap_detection_enabled          1
        register                        1
}
And the commands.cfg file looks like this:

Code: Select all

define command{
        command_name    check_http_url
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -U $ARG1$
}
Also tried the follow command in the end and it gave me an error like that:

Code: Select all

connect to address [IP] and port 443: No route to host
HTTP CRITICAL - Unable to open TCP socket
[root@nagios libexec]# ./check_http -I [IP] -u https://address/Dashboard.jspa -S -f follow
Also tried it a little different, where it gives me some information, but still displays HTTP WARNING and on Nagios webpage its just empty:

Code: Select all

root@nagios libexec]# ./check_http -H [IP] -p 8080 -f follow
HTTP WARNING: HTTP/1.1 404 - 92 bytes in 0,002 second response time |time=0,001526s;;;0,000000 size=92B;;;0
Image

Side note: If I changed check_command line on define service by adding $ARG1$ in the end it just show that states are flapping on nagios webpage.

Thank you all for your help and advice,

All the best,
Kukkurloom.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Atlassian products

Post by scottwilkerson »

One thing I noted is that your command has the wrong case -U should be -u and -u is the URI, not the full URL
change to

Code: Select all

define command{
        command_name    check_http_url
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$
}
What do you get with this

Code: Select all

./check_http -H [IP] -p 8080 -f follow -u "/jira"
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Kukkurloom
Posts: 11
Joined: Thu Jul 04, 2019 2:00 am

Re: Monitoring Atlassian products

Post by Kukkurloom »

scottwilkerson wrote:One thing I noted is that your command has the wrong case -U should be -u and -u is the URI, not the full URL
change to

Code: Select all

define command{
        command_name    check_http_url
        command_line    $USER1$/check_http -H $HOSTADDRESS$ -u $ARG1$
}
What do you get with this

Code: Select all

./check_http -H [IP] -p 8080 -f follow -u "/jira"
Thank you Scott!

It helped me a lot! I got one more little question, how should I write down host addresses, if I write IP on the host address line it will give me: connect to address [IP] and port 8080: No route to host and if I write the whole address copied from the URL bar it will say the same, should I find some specific URL for this to work? :)

Edit 2:

Did not notice the URI part, got it working! Thanks so much again for the help! Can close that issue. :)

Best regards,
Kukkurloom.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Monitoring Atlassian products

Post by scottwilkerson »

Kukkurloom wrote:Edit 2:

Did not notice the URI part, got it working! Thanks so much again for the help! Can close that issue.
Great!

Locking thread
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked