EzDevInfo.com

system-monitoring interview questions

Top system-monitoring frequently asked interview questions

What is the best way for a Java program to monitor system health?

I would like to be able to monitor my major system health indicators from inside our Java-based system. Major points of interest include CPU temperature, motherboard temperature, fan speed, etc.

Is there a package available that:

  1. Makes this sort of data available to Java?
  2. Works on Windows or Linux or both?
  3. Is open / free / cheap?

Source: (StackOverflow)

Is there any way, in java, to check on the status of a windows service?

I am looking for a library that will allow me to look up the status of a windows service to verify that the service is started and running. I looked into the Sigar library, but it is GPL and therefor I cannot use it. A Commercial or BSD(ish) license is required as this will be bundled into commercial software.


Source: (StackOverflow)

Advertisements

Any Monit like equivalents for windows OS?

I've seen the question asked "can you run Monit on Windows?", and unless you want to use a VM, the answer appears to be no.

So...are there any small footprint monit-like applications actually for Windows OS's? What I'm looking for is not only monitoring (of which there are hundreds of apps), but also the ability to execute a script or restart a service. For example, monitor a web page, and restart Tomcat if that page becomes unresponsive (can't just watch the service, because the service is still running but not responding properly).

This is for a small application, not a large application, so the heavyweight/expensive solutions aren't desired.


Source: (StackOverflow)

Fetching "gnome-system-monitor" data in terminal [closed]

Is there any way to retrive the "gnome-system-monitor" data in the terminal, including the cpu+memory etc. usage. Geting the list under the "Processes" of the application is the major requirement.


Source: (StackOverflow)

active directory monitoring

I want to develop a monitoring tool to monitor active directory like (solar wind,op manager etc). For this purpose,I have chosen Zabbix(an open source tool) to monitor AD and provide me real time values so that i can plot those results on my Front-end. To monitor any process/service by zabbix, i need to provide its complete path to zabbix. i have monitored some services like lsass.exe,ntfrs.exe and get their successful results. but i am facing a problem in monitoring ntds.dit. can any one tell me how to monitor ntds.dit?as this is in binary format so unreadable.

Secondly,Windows Performance Monitor provides all the parameters that i need for monitoring.but i dont know how to read that values from WPM.

can any one help me in getting values from WPM or is there any service that can give me ntds info(ldap,ab client session etc..) so that i can plot it on my front end.


Source: (StackOverflow)

How to record commands executed by processes (on MS Windows)?

I'm wondering if there is a way to capture/record shell commands being executed by any given process, e.g. if I have some GUI app with menu items that execute shell commands when I click them and I want to record what commands are actually being run.

Is this possible? If so how?

Thanks.


Source: (StackOverflow)

How to Monitor Qt application status on Linux

I wrote a application using Qt for a Embedded system, having Ubuntu 10.04.

My application is running 24x7 on monitor connected to my embedded device.

My application UI get hangs some time (I am debugging on this issues).

Mean while is there any tool on Linux which monitor my Qt application. The monitoring tool will check the status of Qt application and restart it, if it get hanged.

Or is there any other technique to monitor and restart my application on Ubuntu 14.04.

Thanks in advance.


Source: (StackOverflow)

How to stop collectl recursion?? restarting?

I am currently using collectl to monitor my system usage. At the same time, I have a shell script that tail this and logs output.

collectl >> test.file
while true; do tail test.file; done

But it seems like collectl is restarting (I might be wrong) at every 22 lines of output and puts

<--------CPU--------><--------Disks--------><--------Network--------> this line..

http://imgur.com/44fY9Pl

So, I am wondering if there is a way to stop collectl to generate those line and put the value continuously? I looked in /etc/init.d/collectl but I was not able to modify anything

Thank you


Source: (StackOverflow)

Kibibyte or Kilobyte: Does collectl use binary or decimal prefix?

For it's measurements, does collectl use binary prefix (e.g. Kibibyte) or decimal prefix (e.g. Kilobyte)?

For example, in the network statistics the KB received/sec are reported as KBIn. If used in accordance with the IEC standard, the use of the symbol "KB" would indicate decimal prefix notation (i.e. Kilobyte), but as this is regularly used inconsistently I would like to have confirmation.

This question is important to be able to make correct unit conversions!

Does anyone has a source clarifying the matter? Or anyone suggestions on how to experimentally determine which notation is used?


Source: (StackOverflow)

How to expose collectl data through a socket interface?

I am evaluating collectl to use as a system monitoring tool. I need to expose the data through a socket. I found that collectl has a -A option which can send data to a socket. But I could not find any specific details on how to do it. I believe the configuration should be done in /etc/collectl.conf

Can anyone give an idea on how to configure collectl to provide data through a socket connection?

(And if you can suggest any other handy system monitoring tool which matches the above requirement, that would also be great. Simple setting up capability is bit important since the process needs to be automated)


Source: (StackOverflow)

Monit: Monitor services on several servers

I have setup the monit server on the centralised server to monitor services running on remote servers.

I have service a running on multiple servers lets say(6).

Instead of checking the service individually on each server

check host SimpleHTTPServer address A1
start_cmd=""
stop_cmd=""
alert AAA@gmail.com with reminder on 1 cycle
if failed port 8000 then restart
------
check host SimpleHTTPServer6 address A6
start,stop,alert commands
if failed port 8000 then restart

i want it to achieve it in single line

If i follow the script program approach,

check program ping_myhosts with path /usr/local/bin/ping_myhosts.sh"
if status != 0 then alert

With this approach i will loose the ability to alert the user with the server name which failed.. How could i achieve the same.


Source: (StackOverflow)

Monitor Hadoop Cluster using Collectl

I am evaluating various system monitoring tools to use one to monitor my hadoop cluster. One of the tools I am impressed by is collectl. I have been playing around with it since a couple of days.

I am struggling to find how can we aggregate the metrics captured by collectl when using colmux?

Say, I have 10 nodes in my hadoop cluster each running collectl as a service. Using colmux I can see the performance metrics of each node in a single view (in single and multi-line formats). Great!

But what if I am considering aggregate of CPU, IO etc on all the nodes in the cluster. That is I want to find how my cluster as a whole is performing by aggregating the performance metrics from each node into corresponding numbers, thereby giving me cluster-level metrics instead of node-level.

Any help is greatly appreciated. Thanks!


Source: (StackOverflow)

formatting shell output into structured data?

Are there any libraries (perl, python, ruby, etc) or other means of formatting the output of shell commands to a structured data format like JSON or XML to be processed by another application?

Use case: Bunch of CentOS servers on a network. I'd like to programatically login to them via SSH, run commands to obtain system stats and eventually run basic maintenance commands. Instead of parsing all the text output myself I'm wondering if there is anything out there will help me return the data in a structured format? Even if only some shell commands were supported that would be a head start.


Source: (StackOverflow)

Get r/s w/s using iostat -x and Unix commands

I am working on a system monitoring project and am wondering how to get just the Device, r/s, and w/s columns returned when running iostat -x. Im sure Id have to use cut some how but my attempt at getting the 4th column (r/s) here: iostat -x | cut -f 4 is incorrect


Source: (StackOverflow)

Accessing Windows (XP) performance counters preferably in VBScript

I'm testing a web application for browser memory leaks using Quick Test Professional (QTP) 9.5 and Internet Explorer 6. PerfMon works for monitoring the memory usage over time, but its data has to be synchronized to the testing results to find out which steps trigger the browser memory leak. Since QTP's scripting language is VBScript, how can I get particular performance counters (in this case the "Private Bytes" in process "IExplore.exe")?


Source: (StackOverflow)