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

Add process-list from unix-agent #405

Closed
f0o opened this issue Jan 13, 2015 · 6 comments
Closed

Add process-list from unix-agent #405

f0o opened this issue Jan 13, 2015 · 6 comments

Comments

@f0o
Copy link
Member

f0o commented Jan 13, 2015

Hi,

currently a bunch of useful information returned by Check_MK is going to waste.

The current codebase even has a process-list parser that even runs through the unix-agent's output but it's data is just discarded.

I'm working on a very simple addition to allow storage of the current processes with PID, VSZ, RSS, PCPU, User, Command.

PR should be inbound in some hours ;)

@wzhsunn
Copy link

wzhsunn commented Jan 20, 2015

how to monitor a process ?

@f0o
Copy link
Member Author

f0o commented Jan 20, 2015

Do you mean get the processlist or alerting upon it?
If 1st: simply update your check_mk with the newly shipped one from librenms repo (or upstream innovation branch from mathias kettner), install xinetd and config it if not done yet, poll and done :)

If 2nd: This is a tricky one! It is possible now, but you will have to invert your interpretation of the alert. So Alert becomes recovery and vice versa. I'm going to PR an update to the alerting in a bit to include rule-names in templates, inverted alerts and other minor changes. PR interval for alerting is a bit slow because it requires a lot of testing as people may rely on it.

@wzhsunn
Copy link

wzhsunn commented Jan 20, 2015

Thank you very much for your reply and my English is poor .
I think my mean is 2nd .
I want to monitor a single process e.g. apache or iis or mysql etc.

@f0o
Copy link
Member Author

f0o commented Jan 20, 2015

That is possible but it will send you 'Recovery' email if you check for existing alert.

If you want to check process+memory then it will be fine.
Use alert-rules to add the alert, the table is called processes.

Example for memory check would be:
processes.command ~ '@mysqld@' && processes.vzs > 524288
This alerts if mysqld uses more than 512MByte virtual memory.

@wzhsunn
Copy link

wzhsunn commented Jan 20, 2015

OK, I will have a try. Thank you very much ! :) .

@f0o
Copy link
Member Author

f0o commented Jan 20, 2015

Closing this issue because it's been merged in #410 - Feel free to comment on questions or simply join IRC

@f0o f0o closed this as completed Jan 20, 2015
@lock lock bot locked as resolved and limited conversation to collaborators May 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants