Skip to content

Hostname option, environment selection, disk usage, mem usage#3

Open
jri-sp wants to merge 5 commits into
sshipway:masterfrom
jri-sp:master
Open

Hostname option, environment selection, disk usage, mem usage#3
jri-sp wants to merge 5 commits into
sshipway:masterfrom
jri-sp:master

Conversation

@jri-sp
Copy link
Copy Markdown

@jri-sp jri-sp commented Jan 27, 2017

Hi,

I think you forgot to read -H option, but I'm not sure of my fix (I'm not friendly with Perl).
I'm gonna use your script in CLI (without config file) and I need this option, but hostname is still localhost without this fix.

EDIT: I also added a commit about environment ID which was always the same regardless of my -E option.
EDIT 2: I also added disk usage perfdata, and read the "percentage" key instead of "percentUsed" which didn't exist (in rancher 1.3)
EDIT 3: I changed 'memFree' to 'memAvailable' to calculate the memory usage, because 'memAvailable' include cache and buffers and is more realistic value IMHO.
Feel free to refuse this PR ;)

Regards,

@jri-sp jri-sp changed the title Read hostname option Hostname option, environment selection, disk usage, mem usage Feb 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant