Updates to rpm and deb builds.
This commit is contained in:
parent
bd4cb89892
commit
cb482264d0
|
@ -7,7 +7,7 @@ Small utility to fetch metrics from one or more HMC's and push those to an Influ
|
||||||
|
|
||||||
- Ensure you have correct date/time and NTP running to keep it accurate.
|
- Ensure you have correct date/time and NTP running to keep it accurate.
|
||||||
|
|
||||||
Modify the */opt/hmci/conf/hmci.groovy* configuration file to suit your environment and run the program:
|
Copy the *doc/hmci.groovy.tpl* file into */etc/hmci.groovy*, change the configuration to suit your environment and run the program:
|
||||||
|
|
||||||
/opt/hmci/bin/hmci
|
/opt/hmci/bin/hmci
|
||||||
|
|
||||||
|
|
|
@ -39,7 +39,6 @@ apply plugin: 'nebula.ospackage'
|
||||||
ospackage {
|
ospackage {
|
||||||
packageName = 'hmci'
|
packageName = 'hmci'
|
||||||
release = '1'
|
release = '1'
|
||||||
os = LINUX
|
|
||||||
user = 'root'
|
user = 'root'
|
||||||
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
|
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
|
||||||
|
|
||||||
|
@ -53,14 +52,16 @@ ospackage {
|
||||||
into 'bin'
|
into 'bin'
|
||||||
}
|
}
|
||||||
|
|
||||||
from('conf/') {
|
from('doc/') {
|
||||||
into 'conf'
|
into 'doc'
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
buildRpm {
|
buildRpm {
|
||||||
dependsOn startShadowScripts
|
dependsOn startShadowScripts
|
||||||
requires('java-1.8.0-openjdk-headless')
|
requires('java-1.8.0-openjdk-headless')
|
||||||
|
os = LINUX
|
||||||
}
|
}
|
||||||
|
|
||||||
buildDeb {
|
buildDeb {
|
||||||
|
|
7
doc/README.txt
Normal file
7
doc/README.txt
Normal file
|
@ -0,0 +1,7 @@
|
||||||
|
HMCi - HMC Insights
|
||||||
|
|
||||||
|
Requires Java 8 (or later) runtime.
|
||||||
|
For more information, visit https://bitbucket.org/nellemann_biz/hmci
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -1,34 +0,0 @@
|
||||||
|
|
||||||
PartitionProcessor
|
|
||||||
- UtilizedProcUnits => utilizedProcUnits
|
|
||||||
- /apped/
|
|
||||||
- /Time/ => /time/
|
|
||||||
|
|
||||||
PartitionMemory
|
|
||||||
-
|
|
||||||
|
|
||||||
PartitionVirtualEthernetAdapters
|
|
||||||
- /Bytes/
|
|
||||||
- /PhysicalBytes/
|
|
||||||
|
|
||||||
|
|
||||||
PartitionVirtualFiberChannelAdapters
|
|
||||||
- Bytes
|
|
||||||
- /trans/
|
|
||||||
|
|
||||||
|
|
||||||
SystemSharedProcessorPool
|
|
||||||
- !availableProcUnits
|
|
||||||
|
|
||||||
|
|
||||||
SystemProcessor
|
|
||||||
- /Units/
|
|
||||||
|
|
||||||
SystemMemory
|
|
||||||
-
|
|
||||||
|
|
||||||
SystemFiberChannelAdapters
|
|
||||||
- /writeByt/
|
|
||||||
|
|
||||||
SystemSharedAdapters
|
|
||||||
- transferredBytes
|
|
|
@ -1,17 +1,19 @@
|
||||||
/*
|
/*
|
||||||
Configuration for HMCi
|
Copy this file to /etc/hmci.groovy and change it to suit your environment.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
// Query HMC's for data - in seconds
|
||||||
hmci.refresh = 30
|
hmci.refresh = 30
|
||||||
|
|
||||||
|
// Rescan HMC's for new systems and partitions - every x refresh
|
||||||
hmci.rescan = 60
|
hmci.rescan = 60
|
||||||
|
|
||||||
// InfluxDB to save metrics
|
// InfluxDB to save metrics
|
||||||
influx {
|
influx {
|
||||||
url = "http://10.32.64.29:8086"
|
url = "http://localhost:8086"
|
||||||
username = "root"
|
username = "root"
|
||||||
password = ""
|
password = ""
|
||||||
database = "hmci"
|
database = "hmci"
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// One or more HMC to query for data and metrics
|
// One or more HMC to query for data and metrics
|
||||||
|
@ -19,15 +21,15 @@ hmc {
|
||||||
|
|
||||||
// HMC on our primary site
|
// HMC on our primary site
|
||||||
site1 {
|
site1 {
|
||||||
url = "https://10.32.64.39:12443"
|
url = "https://10.10.10.10:12443"
|
||||||
username = "hmci"
|
username = "hmci"
|
||||||
password = "hmcihmci"
|
password = "hmcihmci"
|
||||||
unsafe = true
|
unsafe = true // Ignore SSL cert. errors
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
site2 {
|
site2 {
|
||||||
url = "https://10.32.64.39:12443"
|
url = "https://10.10.20.20:12443"
|
||||||
username = "viewer"
|
username = "viewer"
|
||||||
password = "someSecret"
|
password = "someSecret"
|
||||||
unsafe = false
|
unsafe = false
|
|
@ -1,2 +1,2 @@
|
||||||
group = biz.nellemann.hmci
|
group = biz.nellemann.hmci
|
||||||
version = 1.0.1
|
version = 1.0.2
|
||||||
|
|
|
@ -151,10 +151,10 @@ class App implements Runnable {
|
||||||
|
|
||||||
static void main(String... args) {
|
static void main(String... args) {
|
||||||
|
|
||||||
def cli = new CliBuilder()
|
def cli = new CliBuilder(name: "hmci")
|
||||||
cli.h(longOpt: 'help', 'display usage')
|
cli.h(longOpt: 'help', 'display usage')
|
||||||
cli.v(longOpt: 'version', 'display version')
|
cli.v(longOpt: 'version', 'display version')
|
||||||
cli.c(longOpt: 'config', args: 1, required: true, defaultValue: '/opt/hmci/conf/hmci.groovy', 'configuration file')
|
cli.c(longOpt: 'config', args: 1, required: true, defaultValue: '/etc/hmci.groovy', 'configuration file')
|
||||||
|
|
||||||
OptionAccessor options = cli.parse(args)
|
OptionAccessor options = cli.parse(args)
|
||||||
if (options.h) cli.usage()
|
if (options.h) cli.usage()
|
||||||
|
|
Loading…
Reference in a new issue