Search found 88 matches
- Sun Dec 03, 2017 4:25 am
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
- Replies: 12
- Views: 12208
Re: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
I see....nice. I made a daemon using the zm-alarm.php script which I use as a base to modify too do various functions according to the state of the monitors. This example is to send one email only for a set period of time..... https://forums.zoneminder.com/viewtopic.php?p=103057#p103057 Can I try o...
- Sun Dec 03, 2017 1:02 am
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] Wrong load and disk usage
- Replies: 5
- Views: 4195
Re: Wrong load and disk usage
I found a couple pages that explain the difference between CPU utilization and load average. Apparently, the load average is not really just the average utilization over a length of time. It is possible to have a low utilization but high load average, or vice versa. http://blog.scoutapp.com/articles...
- Sat Dec 02, 2017 7:50 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] Wrong load and disk usage
- Replies: 5
- Views: 4195
Re: Wrong load and disk usage
Regarding the disk load, this comes from the php function sys_getloadavg. It is also the same number that uptime and htop report. Anyone know where that number comes from? It does not agree with what top and /proc/stat report, and it seems way too high, considering it remains above 1 even when neith...
- Sat Dec 02, 2017 7:46 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] Wrong load and disk usage
- Replies: 5
- Views: 4195
Re: Wrong load and disk usage
So I've dug a little deeper into the disk usage issue. It turns out that the numbers come from the php functions disk_total_space and disk_free_space. I made this simple php script to test it: <?php $total = disk_total_space("/var/www/htdocs/zm/events"); $free = disk_free_space("/var/...
- Sat Dec 02, 2017 7:37 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
- Replies: 12
- Views: 12208
Re: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
question.... are you using a script similar to zm-alarm.pl to detect events and send the email?? I do the same thing but I do not have the memory map being retained issue that you mention. My scripts for ZM event detection are based on zm-alarm.pl Yes, it's similar to that but a bit more complicate...
- Sat Dec 02, 2017 6:37 am
- Forum: User Contributions
- Topic: Instant notification on alarm + machine learning object detection
- Replies: 35
- Views: 74210
Re: Instant notification on alarm
So I discovered a problem with this script. When ZoneMinder stops, the running script prevents the memory map in /dev/shm from being deleted, and when ZoneMinder starts up again, a new one is created. This leads to increasing memory usage every time ZoneMinder is started. Unfortunately, calling zmMe...
- Fri Dec 01, 2017 11:47 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
- Replies: 12
- Views: 12208
Re: /dev/shm keeps filling up when ZoneMinder is stopped and started
Well, I believe I figured out my problem with /dev/shm. I have a script that sends automatic notifications when motion is detected. (I know there is a native way to do this in ZM, but it is not instantaneous. See my post in the User Contributions forum.) This keeps running even when ZoneMinder itsel...
- Fri Dec 01, 2017 9:23 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
- Replies: 12
- Views: 12208
Re: /dev/shm keeps filling up when ZoneMinder is stopped and started
I'm certain that this isn't simply an issue of not having enough RAM. I am using a single 1280x960 camera at 3FPS, with the standard 50 frame buffer. The /dev/shm usage increases predictably by about 12% each time I restart ZoneMinder. You are correct that the total size of /dev/shm is 2 GB. I am go...
- Fri Dec 01, 2017 8:25 pm
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
- Replies: 12
- Views: 12208
[SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
Ugh, more issues with my new server. These ones are actually serious, unlike the load and disk usage display issues in my other thread. I noticed that /dev/shm kept getting more and more full every time I started and stopped ZoneMinder (changing the run state). After about 5-10 of these, it filled u...
- Fri Dec 01, 2017 7:18 am
- Forum: ZoneMinder 1.30.x
- Topic: [SOLVED] Wrong load and disk usage
- Replies: 5
- Views: 4195
[SOLVED] Wrong load and disk usage
I am running ZoneMinder 1.30.4 on Slackware (using the build script here: http://slackbuilds.org/repository/14.2/system/ZoneMinder/ , modified only to bump the version to 1.30.4). I recently migrated the database from my laptop, where I was testing it, to a new dedicated server. This server is just ...
- Wed Nov 29, 2017 4:35 pm
- Forum: ZoneMinder 1.30.x
- Topic: Analysis FPS
- Replies: 8
- Views: 34618
Re: Analysis FPS
Not sure if this is the key, but it seems there's a dedicated (different) buffer is analysis_fps is set: https://github.com/ZoneMinder/ZoneMinder/blob/master/src/zm_monitor.cpp#L1369:L1419 Maybe this is only copying the frames being analyzed to it, and therefore only storing those as opposed to the...
- Fri Nov 24, 2017 2:10 am
- Forum: User Contributions
- Topic: Instant notification on alarm + machine learning object detection
- Replies: 35
- Views: 74210
Re: Instant notification on alarm
Okay, so actually I'm not done yet. :D In the process of testing this script, I realized that a new event is assigned as soon as a monitor goes into alarm state. Therefore, it's not necessary to check whether the monitor is in alarm state, only whether a new event is available. This has the benefit ...
- Thu Nov 23, 2017 7:42 pm
- Forum: User Contributions
- Topic: Instant notification on alarm + machine learning object detection
- Replies: 35
- Views: 74210
Re: Instant notification on alarm
Cool! I only just realized that the alerts weren't really instantaneous. I also like that this enables you to send it to multiple email addresses. Is there any way you think you could modify this to send a notification to one email address or another based on which zone was triggered? So for exampl...
- Thu Nov 23, 2017 6:13 pm
- Forum: ZoneMinder 1.30.x
- Topic: Can't initiate email notifications
- Replies: 23
- Views: 12768
Re: Can't initiate email notifications
This may have been asked before, but do you have your filter set to run in the background? What if you create a new filter that is not set to run in the background, set it to email you, and then hit Execute? Make sure it is something that will return a match. You can use Submit to check.
- Thu Nov 23, 2017 6:45 am
- Forum: User Contributions
- Topic: Instant notification on alarm + machine learning object detection
- Replies: 35
- Views: 74210
Re: Instant notification on alarm
A couple more tweaks: 1. Allow sending notifications to more than one address. Just enter multiple addresses in the @toaddrs list. 2. I was previously getting at least two alerts for each event, one for being in alarm/alert/tape state, and the other for a new event. I added a variable alarm_overload...