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.
|
||||
|
||||
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
|
||||
|
||||
|
|
|
@ -39,7 +39,6 @@ apply plugin: 'nebula.ospackage'
|
|||
ospackage {
|
||||
packageName = 'hmci'
|
||||
release = '1'
|
||||
os = LINUX
|
||||
user = 'root'
|
||||
packager = "Mark Nellemann <mark.nellemann@gmail.com>"
|
||||
|
||||
|
@ -53,14 +52,16 @@ ospackage {
|
|||
into 'bin'
|
||||
}
|
||||
|
||||
from('conf/') {
|
||||
into 'conf'
|
||||
from('doc/') {
|
||||
into 'doc'
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
buildRpm {
|
||||
dependsOn startShadowScripts
|
||||
requires('java-1.8.0-openjdk-headless')
|
||||
os = LINUX
|
||||
}
|
||||
|
||||
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
|
||||
|
||||
// Rescan HMC's for new systems and partitions - every x refresh
|
||||
hmci.rescan = 60
|
||||
|
||||
// InfluxDB to save metrics
|
||||
influx {
|
||||
url = "http://10.32.64.29:8086"
|
||||
url = "http://localhost:8086"
|
||||
username = "root"
|
||||
password = ""
|
||||
database = "hmci"
|
||||
|
||||
}
|
||||
|
||||
// One or more HMC to query for data and metrics
|
||||
|
@ -19,15 +21,15 @@ hmc {
|
|||
|
||||
// HMC on our primary site
|
||||
site1 {
|
||||
url = "https://10.32.64.39:12443"
|
||||
url = "https://10.10.10.10:12443"
|
||||
username = "hmci"
|
||||
password = "hmcihmci"
|
||||
unsafe = true
|
||||
unsafe = true // Ignore SSL cert. errors
|
||||
}
|
||||
|
||||
/*
|
||||
site2 {
|
||||
url = "https://10.32.64.39:12443"
|
||||
url = "https://10.10.20.20:12443"
|
||||
username = "viewer"
|
||||
password = "someSecret"
|
||||
unsafe = false
|
|
@ -1,2 +1,2 @@
|
|||
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) {
|
||||
|
||||
def cli = new CliBuilder()
|
||||
def cli = new CliBuilder(name: "hmci")
|
||||
cli.h(longOpt: 'help', 'display usage')
|
||||
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)
|
||||
if (options.h) cli.usage()
|
||||
|
|
Loading…
Reference in a new issue