monitoring

What is CoreLocation's Region Monitoring system defined cushion?

折月煮酒 提交于 2019-12-08 00:08:52
问题 I'm using the simulator to test region monitoring. Using CoreLocation with region monitoring and the Freeway Drive test location path in the Simulator (Debug > Location > Freeway Drive) I'm able to simulate, at least visually the path of the Freeway Drive as it intersects with various overlays. Those overlays are converted to regions and monitored as soon as I start monitoring the user's location. Anyway, this doesn't seem to work very well. The regions represented by my overlays don't cause

How do I enable snmp on CoreOS

坚强是说给别人听的谎言 提交于 2019-12-07 19:46:48
问题 I cannot seem to find any useful info on the topic. Furthermore, what is the best way to monitor CoreOS (we use observium). 回答1: If standard Linux SNMP metrics are most you need, you just want to deploy a container that runs SNMP daemon. For that purpose you will probably need to expose it to host's network namespace ( --net=host , if you are using Docker) and then you definitely need to bind-mount /proc (with -v /proc:/hostproc passed to docker run ). The only unusual thing you would need

How can I monitor / limit network traffic used by my app?

一笑奈何 提交于 2019-12-07 18:41:49
问题 I would like to be able to measure network traffic and limit it. I'm looking for something that lets me know between two calls how much data has been sent and received. Also, I would like to be able to limit network traffic (in & out) for my app. Something like the NetLimiter software (great app!) but which I can control from my code. Do you know some third party components to do this ? This is meant to be used on a datasnap 2009 thin-client. 回答1: If you use Indy, then use the

Android, find the sender of an Intent for a monitoring application

一曲冷凌霜 提交于 2019-12-07 17:49:21
问题 I'm developing a monitoring application for Android listening for broadcast intents: whenever some suspicious intent pattern occurs a dialog alerting the users pops up. Indeed the intents must have been triggered by the same application, to avoid useless warnings. In general this seems not to be possible, for instance I found something here: How to find Intent source in Android? I'm asking if there is a workaround to this, for instance looking into the context or whatsoever . I really need

Use Prometheus “target relabeling” to extract cAdvisor's Docker image name without tag

白昼怎懂夜的黑 提交于 2019-12-07 16:21:40
问题 I use Prometheus, together with cAdvisor to monitor my environment. Now, I tried to use Prometheus' "target relabeling", and create a label that its value is the Docker container's image name, without a tag. It is based on the originally scraped image label. It doesn't work, for some reason, showing no errors when running on debug log level. I can see metrics scraped from cAdvisor (for example container_last_seen ) but my newly created label isn't there. My job configuration: - job_name:

Using Nagios/Monit/Munin with Windows

♀尐吖头ヾ 提交于 2019-12-07 12:19:47
问题 I'm building a .NET 3.5 web app and I am thinking about all the fundamental issues as I work through the project, like monitoring, exception handling, the lot. The app will obviously be small in size when it is rolled out because it won't have a high load until the site is heavily promoted (lines of code/cyclomatic complexity and so forth will be high, and the app will be commercial scale with the same considerations as large systems such as Facebook etc). Anyway, I am going to outsource

How to monitor Python files for changes?

生来就可爱ヽ(ⅴ<●) 提交于 2019-12-07 08:52:37
问题 I want to restart my Python web application, if code gets changed. But there could be a large number of files that could be changed, since files in imported modules could change ... How to get the actual file names from imported packages / modules? How can modified Python files be detected efficiently? Is there a library to do that? 回答1: Shameless plug. There's also http://github.com/gorakhargosh/watchdog that I'm working on to do exactly this. HTH. 回答2: gamin is another option which is

JMX Port dynamic allocation

允我心安 提交于 2019-12-07 07:56:43
问题 I have 16 Java processes with the same main method and arguments running on one machine. I wish to monitor these remotely thru JConsole. Hard coding port numbers like -Dcom.sun.management.jmxremote.port=5000 won't work because these processes are using same configuration and they can't work with same port. Is it possible for the JVM to select a different port dynamically for each of the 16 processes? 回答1: Using RMI Connector might be the way as you may specify URL of your agent. In case you'd

unix system call monitor

泪湿孤枕 提交于 2019-12-07 07:35:22
问题 how to monitor system calls for a process? 回答1: Check strace In the simplest case strace runs the specified command until it exits. It intercepts and records the system calls which are called by a process and the signals which are received by a process. The name of each system call, its arguments and its return value are printed on standard error or to the file specified with the -o option. Each line in the trace contains the system call name, followed by its arguments in parentheses and its

Nagios - Could not open command file /usr/local/nagios/var/rw/nagios.cmd’ for update

删除回忆录丶 提交于 2019-12-07 04:20:28
问题 I'm trying to disable active check for a service through Nagios web interface, but I cant make it. The Nagios instance is running on a Centos 5 distribution Each time I try to stop the service I get this message : Could not open command file ‘/usr/local/nagios/var/rw/nagios.cmd’ for update! Although I tried several proposals found on the web : usermod -a -G nagios apache chmod 666 /usr/local/nagios/var/rw/nagios.cmd chown nagios.nagcmd /usr/local/nagios/var/rw chmod u+rwx /usr/local/nagios