system status

Anything you want added or changed in future versions of ZoneMinder? Post here and there's a chance it will get in! Search to make sure it hasn't already been requested.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

system status

Post by jameswilson »

Phil, for the viewer app i think it would be useful to have a system info bit
could you add a means of queiring the states of the system that zm currently know about
eg disk usage load etc
If it was made available like the alarm info but wont need to be quieried as often
Im sure there are other ways to get this info but it it would mean another service on the server, but maybe this would be a better way to go what do you think?

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

You can use email notication for that using logwatch can't you? I don't think you would want that info available to everyone. It would give some an idea on how long you can store video for.

Also there is http://phpsysinfo.sourceforge.net/ that works really nice. I install it on all my machines in a password protected apache directory. Might want to have a look at it if you haven't seen it yet. Also works with various board sensors useing lmsensors and others to get temp and voltage readings.

Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

corey what i was thinking was to be able to see certain info in the app afetr you have logged on, not email out

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

If sysinfo has all the things your looking for you could create a simple menu in a header file and include it in the zm.php file. Then you can get to it after you log in and have easy access to it.

Regards,
Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

id think that was fine, but phil is/has altered the alarm part of zm so that i can query the satatus of the monitors, ir alarm/normal/alert to use in the new and upcoming alarm module for the windows viewer. I would like another window that shows the current status of the zm servers configured into the app, The more services it requires outside zm that are not there in a stock zm install, (your distro or live cd) all i will/we will get is system info dont work etc etc. But i see what your saying
James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
cordel
Posts: 5210
Joined: Fri Mar 05, 2004 4:47 pm
Location: /USA/Washington/Seattle

Post by cordel »

I plan on making mostlikely a framed menu for zm and any other web items like sysinfo at some time. That way it's easy to add things to it.
There are other utilitys out there as well for clustering etc.. like heartbeat. Some day I'm hoping to get time to go though and learn them. Webmin is supposed to work with clustering as well but I'm not sure how this would work out with zm. If some one had all IP cams then using something like heartbeat would be good if you have a cluster of zm nodes. If one machine fails then the others could pick up the cams till the one that failed comes back on line.

Some day hopefully

Cordel
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i must admit that the idea of this clustering appeals to me too. I have fitted a zm in a collega it has 16 composite cams and 7 ip cams
2 gig ram
1 TB HD
p4 3.2 Ghz
And is well in but to be honest i doubt it could go any higher than 32. This is more than enough i accept that but im a big believer in if i can i want to and from what i understand of clustering you can group machines together as some sort of 'big blue' or whatever takes on the chess people these days. id like to have a play because of reduancy and performance
Imagine what 10 amd4800 X2's could do as a team (im thinking the team could do around 100 cams in real time (25fps))

But it is real dream stuff i know nowhere near enough

yet.......!!!!!!!!!!
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi James,

I can get zmu to show more ZM related stats but I think Corey is right in saying that to get system status that isn't ZM releated directly it's probably easier to have a more extensible solution that doesn't rely on ZM having to be changed just to pass through stuff that isn't directly related.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

i was only thinking of showing zm related info as i cant see why you would want anything else, i was thinking of things like diskusage, earliest recording, load etc just the maybe events in the last hour total, I know i caould do all this with a sql query and maybe this would be the way to go?
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

The disk stuff you can't get from the DB (and this was the sort of thing I think may be best sourced elsewhere, though possibly not) but everything else you can easily. If you give me some detail about what you want I can always provide the queries.

Phil
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

just a status window really showing current status, i was hoping for input from others as to what (in a perfect world) would be useful there, some stuff is useful but other stuff is just cosmetic like events last hour etc.

I have been looking at other dvr software for ideas and i recently read a review on a commercial dvr and it was slated for not having a status screen, initailly i thought of just disk usage, no events last hour and earliest recorded info

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

Phil i have had a problem on one of my machines where the filter didnt run to purge and it stopped recording, but it carried on streaming. One problem with the windows app is i rarely go to the we interface and the enduser never goes to it, and as such didnt see it was stopped.
So i need to gather this info from somwhere then get zm4ms to check that zm is currently running and has no problems.
Obviously serious problems will stop it streaming and this will be noticed. SO ideally all i need to know is current state ie running stopped.
And the hard disk capacity %, just the info that is currently on the console.
What do you think is the best way to retrieve this info and could/should it be added to the alarm status thing we have been discussing.

Let me know your thoughts

James
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
Ruler
Posts: 235
Joined: Mon Nov 08, 2004 9:02 pm
Location: Bay City, MI

Post by Ruler »

An idea for this would be to have a definable variable somewhere that's initially set blank. The result of whatever command entered here would be displayed on the main screen. This would be dangerous as somebody could feasibly do a rm -rf /* and kill their own system, but would also allow people to pull what status info they wanted and display it.
This message is made up of not less than 90% recycled electrons.
jameswilson
Posts: 5111
Joined: Wed Jun 08, 2005 8:07 pm
Location: Midlands UK

Post by jameswilson »

would i be able to pass this command over ip?. I see your thinking there as it would allow complete customistion and allow any command entered. I was thinking of quering say zms or phpsysinfo etc to get the relevant info and display it in a pretty format, ie bar graph for current usage or pie chart etc. The rest of the info would be text based, like earliest recoding held, total number of events etc. Mainly i want to ensure all cams are actually recording
James Wilson

Disclaimer: The above is pure theory and may work on a good day with the wind behind it. etc etc.
http://www.securitywarehouse.co.uk
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

Hi James,

I'm a bit behind all the forums as I'm trying to get all sorts of things done by Xmas. Basically I think what you probably want is the output of the zmdc.pl status or check commands which gives a brief summary of what is running and what isn't. Nothing should be stopped ordinarily though unless explicitly told to do so. Currently zmdc uses unix sockets which are not accessible from outside of the server. I can probably modify it to use inet ones so you could do a direct connection. There are issues with opening it up though which should be considered, not to mention that all the scripts are being ripped apart and reassembled at the moment!

Phil
Post Reply