* add portactivity SNMP extend in its initial form
* update for the current json_app_get
* add version to the returned JSON
* add basic POD documentation
* Fix package manager detection
* use release file for os detection
* Use command to to validate package manager type
* check if exists and the execute permission is granted
* make script more portable
On several servers (Ubuntu 18.04) DEMAND_DATA_TOTAL is 0 currently and is causing an error
Traceback (most recent call last):
File "/usr/local/bin/zfs-linux", line 178, in <module>
sys.exit(main(sys.argv[1:]))
File "/usr/local/bin/zfs-linux", line 76, in main
DATA_DEMAND_PERCENT = DEMAND_DATA_HITS / DEMAND_DATA_TOTAL * 100
ZeroDivisionError: division by zero
NTP was not displaying data right for linux servers. It was putting the frequency data into the offset data. This was giving bad graphs in the UI. Tested the correction on both RHEL and Debian based operating systems and all passes.
Remove the .sh to simplify for configuration management orchestration scripts.
As seen at [this location](7fab99cfc1/includes/polling/functions.inc.php (L768)) the JSON output needs to contain a `data` field. The poller php script actually also extracts this `data` field as one of the first steps, see at [this line](c3007b483a/includes/polling/applications/fail2ban.inc.php (L36)).
Before I changed these parts the graph didn't show up because the RRD files simply weren't generated as an exception occurred in the poller. This fixes this problem.
* add zfs support for linux
* fix pools and anon_hits_per
* strip percent sign for pool cap
* fix anon_hits json key typo
* fix demand_data_hits json key typo
* fix comparison as in #169
* fix min_size_percent
* Add it as it currently is. Needs to be moved over to JSON
* rename it to zfs-freebsd as it is FreeBSD specific
now uses JSON
* misc. updates and document it all
* minor spelling correction
Update mysql agent script based on updated changes in newest version of Percona Monitoring Plugins (Cacti template).
Changes enable correct parsing of status data for newer versions of MySQL/MariaDB database servers and should be backward compatible with older versions.
An example output like below where the first line of output is just "localhost" so it causes the splitting to cause an out of index error.
Example:
cat /tmp/apache-snmp
localhost
ServerVersion: Apache/2.4.25 (Ubuntu) PHP/5.6.30-5+deb.sury.org~trusty+2
ServerMPM: prefork
Server Built: 2016-12-21T00:00:00
CurrentTime: Thursday, 18-May-2017 19:26:43 EDT
RestartTime: Thursday, 18-May-2017 11:35:48 EDT
ParentServerConfigGeneration: 2
ParentServerMPMGeneration: 1
ServerUptimeSeconds: 28255
ServerUptime: 7 hours 50 minutes 55 seconds
Load1: 0.04
Load5: 0.05
Load15: 0.10
Total Accesses: 5367
Total kBytes: 61432
CPUUser: 19.69
CPUSystem: 1.05
CPUChildrenUser: 0
CPUChildrenSystem: 0
CPULoad: .0734029
Uptime: 28255
ReqPerSec: .189949
BytesPerSec: 2226.38
BytesPerReq: 11721
BusyWorkers: 1
IdleWorkers: 6
Scoreboard: ___....._.__.W........................................................................................................................................