Search found 61 matches

by montagdude
Thu Dec 07, 2017 5:10 am
Forum: User Contributions
Topic: Poor man's remote start/stop from phone
Replies: 2
Views: 1427

Poor man's remote start/stop from phone

Here is the situation. In order for my wife to actually start ZoneMinder when she leaves home, she needs a minimal amount of navigating and waiting. And honestly, waiting on web pages to load, logging in, clicking a few links, etc. is a bit tedious for me too. So I did some brainstorming, and this i...
by montagdude
Mon Dec 04, 2017 4:52 am
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] Wrong load and disk usage
Replies: 5
Views: 1411

Re: Wrong load and disk usage

I have been monitoring the load average more closely. I found that even if I had next to nothing running on the system, the lowest the load average would go was 1. It turns out it is because there is a process called "rtsx_usb_ms_2" that is constantly waiting on disk I/O. dan@zmserver:~# ps -e v | a...
by montagdude
Mon Dec 04, 2017 4:43 am
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started
Replies: 12
Views: 4020

Re: [SOLVED] /dev/shm keeps filling up when ZoneMinder is stopped and started

Hm, no, I haven't seen errors like that. I am running 1.30.4, though. It would be worth submitting a bug report if the same script worked fine on 1.30.x. If you haven't done so already, also check whether zm-alarm.pl has been changed in 1.31.x.
by montagdude
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: 4020

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...
by montagdude
Sun Dec 03, 2017 1:02 am
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] Wrong load and disk usage
Replies: 5
Views: 1411

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...
by montagdude
Sat Dec 02, 2017 7:50 pm
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] Wrong load and disk usage
Replies: 5
Views: 1411

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...
by montagdude
Sat Dec 02, 2017 7:46 pm
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] Wrong load and disk usage
Replies: 5
Views: 1411

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/www/htdocs/zm/e...
by montagdude
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: 4020

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...
by montagdude
Sat Dec 02, 2017 6:37 am
Forum: User Contributions
Topic: Instant notification on alarm + machine learning object detection
Replies: 22
Views: 10016

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...
by montagdude
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: 4020

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...
by montagdude
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: 4020

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...
by montagdude
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: 4020

[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...
by montagdude
Fri Dec 01, 2017 7:18 am
Forum: ZoneMinder 1.30.x
Topic: [SOLVED] Wrong load and disk usage
Replies: 5
Views: 1411

[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 ...
by montagdude
Wed Nov 29, 2017 4:35 pm
Forum: ZoneMinder 1.30.x
Topic: Analysis FPS
Replies: 7
Views: 3274

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...
by montagdude
Fri Nov 24, 2017 2:10 am
Forum: User Contributions
Topic: Instant notification on alarm + machine learning object detection
Replies: 22
Views: 10016

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 ...