Lowercase client hostnames, housekeeping, update dashboards.
This commit is contained in:
parent
d48934b94c
commit
43d3e9babf
|
@ -2,6 +2,9 @@
|
||||||
|
|
||||||
All notable changes to this project will be documented in this file.
|
All notable changes to this project will be documented in this file.
|
||||||
|
|
||||||
|
## [1.1.2] - 2023-02-06
|
||||||
|
- Lowercase client hostnames
|
||||||
|
|
||||||
## [1.1.1] - 2023-01-22
|
## [1.1.1] - 2023-01-22
|
||||||
- Simplify plugin naming
|
- Simplify plugin naming
|
||||||
- Initial support for executing (groovy) scripts
|
- Initial support for executing (groovy) scripts
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# System Monitor
|
# System Monitor
|
||||||
|
|
||||||
Open source system monitoring solution with support for plugins.
|
Open source system monitoring solution with support for plugins and scripts.
|
||||||
|
|
||||||
This software is free to use and is licensed under the [Apache 2.0 License](LICENSE).
|
This software is free to use and is licensed under the [Apache 2.0 License](LICENSE).
|
||||||
|
|
||||||
|
@ -15,6 +15,13 @@ Some of my other related projects are:
|
||||||
- [svci](https://git.data.coop/nellemann/svci) for monitoring IBM Spectrum Virtualize (Flashsystems / Storwize / SVC)
|
- [svci](https://git.data.coop/nellemann/svci) for monitoring IBM Spectrum Virtualize (Flashsystems / Storwize / SVC)
|
||||||
- [syslogd](https://git.data.coop/nellemann/syslogd) for redirecting syslog and GELF to other logging destinations
|
- [syslogd](https://git.data.coop/nellemann/syslogd) for redirecting syslog and GELF to other logging destinations
|
||||||
|
|
||||||
|
## Screenshots
|
||||||
|
|
||||||
|
|
||||||
|
![screenshot](doc/screenshots/sysmon1.png)
|
||||||
|
|
||||||
|
Screenshots of other dashboards are available in the [doc/screenshots](doc/screenshots/) folder.
|
||||||
|
|
||||||
## Components
|
## Components
|
||||||
|
|
||||||
### Server
|
### Server
|
||||||
|
|
|
@ -8,7 +8,7 @@ We require Java 8, which should already be installed on AIX, or is available to
|
||||||
The RPM packages are *"noarch"* Java bytecode, so we can use the **--ignoreos** option to install:
|
The RPM packages are *"noarch"* Java bytecode, so we can use the **--ignoreos** option to install:
|
||||||
|
|
||||||
```shell
|
```shell
|
||||||
rpm -i --ignoreos sysmon-client.rpm sysmon-plugins.rpm
|
rpm -ivh --ignoreos sysmon-client-*.rpm sysmon-plugins-*.rpm
|
||||||
```
|
```
|
||||||
|
|
||||||
### Run automatically at boot
|
### Run automatically at boot
|
||||||
|
|
|
@ -19,11 +19,12 @@ pid_file="/var/run/$name.pid"
|
||||||
stdout_log="/var/log/$name.log"
|
stdout_log="/var/log/$name.log"
|
||||||
stderr_log="/var/log/$name.err"
|
stderr_log="/var/log/$name.err"
|
||||||
|
|
||||||
# Uncomment if required
|
# Java 8+ runtime required - Uncomment and export JAVA_HOME if needed
|
||||||
#JAVA_HOME=/usr/java8_64
|
#JAVA_HOME=/usr/java8_64
|
||||||
#JAVA_HOME=/opt/ibm-semeru-open-8-jdk
|
#JAVA_HOME=/opt/ibm-semeru-open-XX-jre
|
||||||
#JAVA_HOME=/opt/ibm-semeru-open-11-jdk
|
#JAVA_HOME=/opt/ibm-semeru-open-XX-jdk
|
||||||
#JAVA_HOME=/opt/ibm-semeru-open-17-jdk
|
#JAVA_HOME=/opt/ibm/ibm-semeru-certified-XX-jre
|
||||||
|
#JAVA_HOME=/opt/ibm/ibm-semeru-certified-XX-jdk
|
||||||
#export JAVA_HOME
|
#export JAVA_HOME
|
||||||
|
|
||||||
get_pid() {
|
get_pid() {
|
||||||
|
|
|
@ -97,7 +97,7 @@
|
||||||
},
|
},
|
||||||
"id": 28,
|
"id": 28,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information visit: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.1.6",
|
"pluginVersion": "9.1.6",
|
||||||
|
|
|
@ -79,7 +79,7 @@
|
||||||
},
|
},
|
||||||
"id": 28,
|
"id": 28,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information visit: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.1.6",
|
"pluginVersion": "9.1.6",
|
||||||
|
|
|
@ -91,7 +91,7 @@
|
||||||
},
|
},
|
||||||
"id": 30,
|
"id": 30,
|
||||||
"options": {
|
"options": {
|
||||||
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
"content": "## Metrics are collected by an agent running inside of each LPAR / VM / Host.\n \n For more information visit: [git.data.coop/nellemann/sysmon](https://git.data.coop/nellemann/sysmon)\n ",
|
||||||
"mode": "markdown"
|
"mode": "markdown"
|
||||||
},
|
},
|
||||||
"pluginVersion": "9.1.6",
|
"pluginVersion": "9.1.6",
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
version = 1.1.1
|
version = 1.1.2
|
||||||
pf4jVersion = 3.7.0
|
pf4jVersion = 3.7.0
|
||||||
slf4jVersion = 2.0.6
|
slf4jVersion = 2.0.6
|
||||||
camelVersion = 3.14.7
|
camelVersion = 3.14.7
|
||||||
groovyVersion = 3.0.14
|
groovyVersion = 3.0.14
|
||||||
picocliVersion = 4.7.0
|
picocliVersion = 4.7.1
|
||||||
oshiVersion = 6.4.0
|
oshiVersion = 6.4.0
|
||||||
spockVersion = 2.3-groovy-3.0
|
spockVersion = 2.3-groovy-3.0
|
||||||
tomljVersion = 1.1.0
|
tomljVersion = 1.1.0
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class BaseDiskExtension implements MetricExtension {
|
||||||
|
|
||||||
ArrayList<Measurement> measurementList = new ArrayList<>();
|
ArrayList<Measurement> measurementList = new ArrayList<>();
|
||||||
if(diskStores == null || refreshCounter++ > 360) {
|
if(diskStores == null || refreshCounter++ > 360) {
|
||||||
log.info("getMetrics() - refreshing list of disk stores");
|
log.debug("getMetrics() - refreshing list of disk stores");
|
||||||
diskStores = hardwareAbstractionLayer.getDiskStores();
|
diskStores = hardwareAbstractionLayer.getDiskStores();
|
||||||
refreshCounter = 0;
|
refreshCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,6 @@ public class BaseInfoExtension implements MetricExtension {
|
||||||
put("boot_time", systemInfo.getOperatingSystem().getSystemBootTime());
|
put("boot_time", systemInfo.getOperatingSystem().getSystemBootTime());
|
||||||
}};
|
}};
|
||||||
|
|
||||||
log.info(fieldsMap.toString());
|
|
||||||
return new MetricResult(name, new Measurement(tags, fieldsMap));
|
return new MetricResult(name, new Measurement(tags, fieldsMap));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -79,7 +79,7 @@ public class BaseNetworkExtension implements MetricExtension {
|
||||||
|
|
||||||
ArrayList<Measurement> measurementList = new ArrayList<>();
|
ArrayList<Measurement> measurementList = new ArrayList<>();
|
||||||
if(interfaces == null || refreshCounter++ > 360) {
|
if(interfaces == null || refreshCounter++ > 360) {
|
||||||
log.info("getMetrics() - refreshing list of network interfaces");
|
log.debug("getMetrics() - refreshing list of network interfaces");
|
||||||
interfaces = hardwareAbstractionLayer.getNetworkIFs();
|
interfaces = hardwareAbstractionLayer.getNetworkIFs();
|
||||||
refreshCounter = 0;
|
refreshCounter = 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -46,7 +46,7 @@ public class MetricResult implements Serializable {
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setHostname(String hostname) {
|
public void setHostname(String hostname) {
|
||||||
this.hostname = hostname;
|
this.hostname = hostname.toLowerCase();
|
||||||
}
|
}
|
||||||
|
|
||||||
public void setName(String name) {
|
public void setName(String name) {
|
||||||
|
|
Loading…
Reference in a new issue