NSClient++ Help (#1) - How to check the memory usage of an individual process? (#934) - Message List

How to check the memory usage of an individual process?

I'm currently using CheckCounter to check the memory usage of some processes, like this:

CheckCounter "Counter:javamemusage=\Process(java)\Private bytes" ShowAll

It works, but only if I restart NSClient after starting the Java process. And even then I'm sometimes not getting data for reasons I haven't been able to figure out.

What's the best way for checking the memory usage of individual processes?

  • Message #2463

    There is an option to make i reload which I do not recall off the top of my head...

    So you can specify that option to get around the "started after x" issues... Check the docs and/or change log for it...

    I dont have access to the source at work so cant check until I get home...

    Michael Medin

    • Message #2464

      Can't find anything like that, guess I'll wait until you're home :)

      My problem is: The processes are started/stopped arbitrarily, I cannot reasonably invoke any command (be it a full NSClient restart or something else) when that happens.

      • Message #2465

        Try adding reload on the check...

        CheckCounter reload ...
        

        Michael Medin

        • Message #2467

          Thanks a bunch, that does the trick!

Subscriptions