Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
wants to merge 5 commits into
base: master
Choose a base branch
from

Conversation

jri-sp
Copy link

@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