monitoring

How to get “requests per second” for Apache in Linux?

孤者浪人 提交于 2019-12-02 15:55:10
In Windows for ASP, you can get it perfmon, but... How to get "requests per second" for Apache in Linux? In realtime, or can you use mod_status ? And apparently, there is a version of top for apache ... Adam Franco Here is a short bash script I made up to sample the request rate (based on dicroce's suggestion of using wc -l on the log file). #!/bin/sh ############################################################################## # This script will monitor the number of lines in a log file to determine the # number of requests per second. # # Example usage: # reqs-per-sec -f 15 -i /var/www/http

How can I monitor data on a serial port in Linux?

若如初见. 提交于 2019-12-02 15:53:07
I'm debugging communications with a serial device, and I need to see all the data flowing both directions. It seems like this should be easy on Linux, where the serial port is represented by a file. Is there some way that I can do a sort of "bi-directional tee", where I tell my program to connect to a pipe that copies the data to a file and also shuffles it to/from the actual serial port device? I think I might even know how to write such a beast, but it seems non-trivial, especially to get all of the ioctls passed through for port configuration, etc. Has anyone already built such a thing? It

C# Resource Monitor get network activity values

痞子三分冷 提交于 2019-12-02 14:38:14
问题 I just want to display the values of this process on my windows app form using C# I tried this using PerformanCounter class but I can't figure it out. var perfCounter = new PerformanceCounter("Network Interface", "Bytes Received/sec", "chrome"); // Initialize to start capturing perfCounter.NextValue(); for (int i = 0; i < 20; i++) { // give some time to accumulate data Thread.Sleep(1000); float receive = perfCounter.NextValue() / Environment.ProcessorCount; Console.WriteLine("Bytes Receive

Graphing a process's memory usage

怎甘沉沦 提交于 2019-12-02 14:03:25
Does anyone know of a tool to visually show the memory usage of a selected process on Ubuntu? ps aux will show a numerical snapshot, but I'd really like a line I can watch change as I hammer the process and hopefully see unexpected behaviours. Has anyone got any suggestions? LovesTha I couldn't find any real tools to do it. But I have found a neat small set of scripts that'll do it. Using this little bash loop to do the logging: while true; do ps -C <ProgramName> -o pid=,%mem=,vsz= >> /tmp/mem.log gnuplot /tmp/show_mem.plt sleep 1 done & This will create a nice little log file of memory usage

remote devices supervision

喜欢而已 提交于 2019-12-02 11:04:41
问题 This is a more comprehensive post than my last one. I want to monitor devices using python so: i've a remote agent which, with sensors, will get device datas such as disks usage, processes etc. a server get datas from remote agents and store them into DBs a website allows you to see these data What i already have: psutil to get device informations MySQL + NoSQL to store devices datas django as website to see stored data What i need: how to communicatite between remote agents and server. I've

Monitoring a Windows Forms Application [closed]

十年热恋 提交于 2019-12-02 08:41:25
I would like to monitor user behaviors inside a winforms application. Is there a general way to hook into the eventing system, without having to write event handlers in every form, or on every button? I Would like to monitor following events accross the application: Windows opened Windows closed Buttons clicked Ideally: time spend in each form I dont want to subscribe to all the events in all the forms, the application is to big for that. I would just like to hook in and monitor all events. You don't need to write event handles in every form and for every control. You can put the logic in a

detect if machine is online or offline using WMI and C#

╄→гoц情女王★ 提交于 2019-12-02 05:51:27
问题 I use vs2008, winxp, in LAN network with Win2003 servers. I want a application installed in winxp for detect if win2003 machines is online or offline , and if offline when boot it. I have this references, any more references, code samples and best practices ?? http://danielvl.blogspot.com/2004/06/how-to-ping-in-c-using.html http://snipplr.com/view/2157/ping-using-wmi-pingstatus/ http://dotnoted.wordpress.com/2005/01/15/the-popular-c-ping-utitility/ http://www.visualbasicscript.com/Ping-WMI

remote devices supervision

浪子不回头ぞ 提交于 2019-12-02 04:16:14
This is a more comprehensive post than my last one . I want to monitor devices using python so: i've a remote agent which, with sensors, will get device datas such as disks usage, processes etc. a server get datas from remote agents and store them into DBs a website allows you to see these data What i already have: psutil to get device informations MySQL + NoSQL to store devices datas django as website to see stored data What i need: how to communicatite between remote agents and server. I've already read doc about, zmq, twisted, rpc-json, tornado but i don't know which is the best regarding

Monitor jenkins jobs health using nagios GUI

馋奶兔 提交于 2019-12-02 02:22:15
问题 I am using check_http plugin for discovering jenkins service(Winstone hosted and Apache hosted) is running or not on hosts on which check_mk_agent is installed. And its been monitored on single ui that is nagios GUI, using following command. ./check_http -H Host_Name -u /api/xml?depth=0 -p 8080 Next step is to parse the jobs on specific jenkins master server using jenkins REST api and monitor each job's health in nagios GUI . Could someone please give me any idea on this so that I can monitor

detect if machine is online or offline using WMI and C#

百般思念 提交于 2019-12-02 01:34:42
I use vs2008, winxp, in LAN network with Win2003 servers. I want a application installed in winxp for detect if win2003 machines is online or offline , and if offline when boot it. I have this references, any more references, code samples and best practices ?? http://danielvl.blogspot.com/2004/06/how-to-ping-in-c-using.html http://snipplr.com/view/2157/ping-using-wmi-pingstatus/ http://dotnoted.wordpress.com/2005/01/15/the-popular-c-ping-utitility/ http://www.visualbasicscript.com/Ping-WMI-amp-NonWMI-Versions-Functions-amp-Simple-Connectivity-Monitor-m42535.aspx I would go for the .NET System