Skip to content
Snippets Groups Projects

getOS from /etc/os-release first

Merged Hahn Axel (hahn) requested to merge 6361-fix-ceph-io into master
3 files
+ 108
64
Compare changes
  • Side-by-side
  • Inline
Files
3
@@ -14,7 +14,7 @@ Start the script without parameter to get the help.
@@ -14,7 +14,7 @@ Start the script without parameter to get the help.
______________________________________________________________________
______________________________________________________________________
CHECK_SNMP_DATA
CHECK_SNMP_DATA
v0.6
v0.8
(c) Institute for Medical Education - University of Bern
(c) Institute for Medical Education - University of Bern
Licence: GNU GPL 3
Licence: GNU GPL 3
@@ -23,22 +23,40 @@ ______________________________________________________________________
@@ -23,22 +23,40 @@ ______________________________________________________________________
SNMP performance data of Synology storages.
SNMP performance data of Synology storages.
USAGE:
USAGE:
./check_snmp_data -h hostname [-C communitystring] -m method
check_snmp_data [options] -h SNMPTARGET
PARAMETERS:
PARAMETERS:
-h hostname as fqdn or ip address
-a STRING
-C communitystr optional: community string for snmp; default is public
authentication params for snmpwalk/ snmpget to connect to target;
-v verbose output
default: \"-v2c -c public\" (Snmpv2 with community string \"public\")
 
-h SNMPTARGET
 
as fqdn or ip address; default: localhost
 
-f FILE
 
read authentication from config file
 
default: "/etc/icinga2/snmp.cfg"
-m method what to show
-m method what to show
method is one of ...
method is one of ...
 
about About... general device infos
cpu CPU usage
cpu CPU usage
load System load
load System load
netio Network IO (experimental)
mem Memory status
 
netio Network IO
 
synodisc Synology Disc usage
synotemp Synology NAS temperature
synotemp Synology NAS temperature
disc Disc usage
synoio Synology Space IO
 
-v verbose output
 
 
CONFIG FILE:
 
The config file can be multiline and has the syntax
 
[SNMPTARGET[,target2]]:[auth parameters]
 
The auth parameters set the version and all needed values to connect.
 
Snmp v2 uses a community string.
 
Snmp v3 is highly recommended (you should disable Snmp v2) and needs
 
a user and password.
EXAMPLE:
EXAMPLE:
./check_snmp_data -h 192.168.100.12 -v -m cpu
check_snmp_data -h 192.168.100.12 -v -m cpu
 
```
```
Loading