Get remote metrics with treshold checking
You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Emiel Kollof 0698eb2a40 Fix logic error 7 years ago
.idea PyCharm project stuff 7 years ago
lib Fix logic error 7 years ago
.gitignore Initial commit 7 years ago
LICENSE Initial commit 7 years ago
README.md Markdown != WIki 7 years ago
dbcat.py Fix unicode encoding problem 7 years ago
getmetric.py Fix logic error 7 years ago
metrics.pyproj Initial commit 7 years ago
metrics.sln Initial commit 7 years ago
sendcmd.py Add utility for sending commands for testing 7 years ago

README.md

Synopsis

getmetrics.py

Dependancies

  • paramiko (voor SSH)
  • SSH private key voor remote host (voor passwordless ssh naar andere hosts) als bestandsnaam 'key' in script root

Uitvoer

Als waarde beneden treshold, TRUE, anders FALSE

Metric types

  • load - load average <0 current, 1 5 min avg, 2 15 min avg)
  • diskfree - % ruimte vrij op disk op
  • inodefree - % inodes vrij op disk
  • swapinuse - % swap in use (0 as parameter)
  • iops - IOPS on disk param
  • netload - mb/sec on nic
  • test - maakt verbinding met host en geeft altijd TRUE (en de parameter) als een commando kan worden uitgevoerd op de host. Dit is om te testen of de host kan worden bereikt en dat de ssh key e.a. werkt