monitoring

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

老子叫甜甜 提交于 2019-12-05 12:29:36
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/var/rw chmod g+rwx /usr/local/nagios/var/rw chmod g+s /usr/local/nagios/var/rw Each time rebooting nagios

Folder Monitoring with Batch File

余生长醉 提交于 2019-12-05 07:22:08
问题 I want to monitor my folder if new file added or not. Then If added I would like to execute some files. But I don't want to use third party app. I have some ideas but I don't know how to do that. This is my folder; D:\MonitoringFolder So every hour batch file will check the files inside of it and writes them into a txt. dir /b "D:\MonitoringFolder" > old.txt Old.txt is --> string 1 , string 2, string 3 After one hour, batch file will check it later and writes again into another txt. dir /b "D

How to monitoring directory for files in Delphi XE? [duplicate]

亡梦爱人 提交于 2019-12-05 05:41:50
This question already has answers here : Closed 8 years ago . Possible Duplicate: Delphi notification when a file gets updated Need monitoring for create files and count them. OS: WinXP and high. Last year I had the same need and tried out Iztok Kacin's Directory Watch: http://www.cromis.net/blog/downloads/directory-watch/ . He responded to email and was very helpful in answering my questions. His code worked, but I needed to be notified at the moment a file in a specific folder was closed , which for some odd reason, the ReadDirectoryChanges API (on which it depends) from Microsoft

Using Delphi to track changes made to folder?

為{幸葍}努か 提交于 2019-12-05 05:32:13
I need to writing a delphi program which will monitor a folder for changes (Add, update, rename and removal of files). Is the TShellChangeNotifier is way to go? To be honest, I have no idea how to use it. Please help. Thanks. jpfollenius This question might help. mghie's answer shows how to properly use ReadDirectoryChangesW . I think this article will help you: Monitoring System Shell Changes using Delphi Basically it analyzes the TShellChangeNotifier, discards it and then goes for a TSHChangeNotify which is basically a wrapper for the SHChangeNotify windows api function. i suggest using

monitoringDidFailForRegion when regioning for iBeacon, kCLErrorDomain error 5

不羁岁月 提交于 2019-12-05 02:22:52
问题 I am working on a simple App that uses CoreLocation in iOS7.1 to determine a pre-set iBeacon. My Code did work very well until it suddenly stopped. I didn't change anything in the code. The Error occured was "kCLErrorDomain error 5" on "monitoringDidFailForRegion" after start monitoring on "ViewDidLoad": self.locationManager = [[CLLocationManager alloc] init]; self.locationManager.delegate = self; NSUUID *uuid = [[NSUUID alloc] initWithUUIDString:@"0E82E0A4-03FF-4A92-9C87-1F978917BD51"]; self

How to use proximity sensor programmatically with iOS development?

倖福魔咒の 提交于 2019-12-05 02:20:53
After some googling, I can understand that the "proximity sensor" which is used to on/off screen when the device is away/near from the user. I watched this video (watch from 30th sec) and surprised about this cool stuff. I want to implement it in my app. But I come to know that there is no public API is available that can protect the screen lock when proximityMonitoringEnabled is YES . Then how can the above app did this? For clear understanding, I'm copying some code. Enable the proximity sensor: [[UIDevice currentDevice] setProximityMonitoringEnabled:YES]; Setup an observer for sensor change

How to determine who changed a file?

人走茶凉 提交于 2019-12-05 01:14:31
问题 In Windows, how can I programmatically determine which user account last changed or deleted a file? I know that setting up object access auditing may be an option, but if I use that I then have the problem of trying to match up audit log entries to specific files... sounds complex and messy! I can't think of any other way, so does anyone either have any tips for this approach or any alternatives? 回答1: You can divide your problem into two parts: Write to a log whenever a file is accessed.

Performance effect of enabling apache response time log directive

戏子无情 提交于 2019-12-05 00:24:50
问题 What affect will enabling the response time (%D) LogFormat directive have on apache performance? The response time is the time taken to serve a request in microseconds. Response time can be enabled like so: #LogFormat "%h %l %u %t \"%r\" %>s %b" # Default LogFormat LogFormat "%h %l %u %t \"%r\" %>s %b %D" # LogFormat including response time I have written a tool for monitoring and analysing backend script performance, apache-response-time, which requires response time data. I would like to

How can I measure the response and loading time of a webpage?

拈花ヽ惹草 提交于 2019-12-04 23:35:25
问题 I need to build a windows forms application to measure the time it takes to fully load a web page, what's the best approach to do that? The purpose of this small app is to monitor some pages in a website, in a predetermined interval, in order to be able to know beforehand if something is going wrong with the webserver or the database server. Additional info: I can't use a commercial app, I need to develop this in order to be able to save the results to a database and create a series of

Thread Pool Executor Monitoring Requirement

有些话、适合烂在心里 提交于 2019-12-04 20:07:20
In our production environments, we are using Thread Pool Executor to execute runntable task. I need to develop a Thread pool Heartbeat a monitoring system for Thread pool Executor Service: Every 60 seconds, the requirement is to collect following statistic about the Thread Pooled Executor: 1) size of the thread pool 2) length of queue waiting for a thread (a duration or time task waited in blocking queue before thread executed ) 3) Average wait time in queue during the last heartbeat interval 4) Current active thread 5) Current non active threads. I wanted to know is there any existing