Script checks for latest version on atlassian website and against your server.
For now it supports:
- jira server/datacenter
- confluence
- jira service desk
Patches/mrs are welcome.
apt -y install python3 python3-requests python3-packaging python3-bs4
cp check_jira_version.py /usr/lib/nagios/plugins/
cp check-jira-version-command.conf /etc/icinga2/conf.d/check-jira-command.conf
Example configuration of icinga2
apply Service "check_jira_version" {
import "generic-service"
check_command = "check_jira_version"
assign where host.vars.jira_host
check_interval = 1d
}
object Host "jira.example.com" {
import "generic-host"
address = "192.0.2.10"
vars.jira_host = "jira.example.com"
vars.jira_lts = true
}
object Host "wiki.example.com" {
import "generic-host"
address = "192.0.2.11"
vars.jira_host = "wiki.example.com"
vars.jira_software_type = "confluence"
vars.jira_lts = true
}
object Host "sd.example.com" {
import "generic-host"
address = "192.0.2.12"
vars.jira_host = "sd.example.com"
vars.jira_software_type = "jira-service-desk"
vars.jira_lts = false
}
Probes support requires paid subscription.
cp check_jira_version.py /usr/lib/nagios/plugins/
add to observium's config.php
:
$probe = 'check_jira_version.py';
$config['probes'][$probe]['enable'] = 1;
$config['probes'][$probe]['descr'] = 'Check Atlassian products versions';
$config['probes'][$probe]['args']['default'] = "-H %hostname%";
- Device:
your jira server
- Probe type:
check_jira_version.py
- Description:
Jira needs update
- Extra arguments:
-S --lts --software jira