Displaying system uptime

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.
Post Reply
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Displaying system uptime

Post by pchan »

A very simple request...I think.

Currently displayed is date/time, load, and disk%. Sometimes my system reboots and I don't even know it so it'd be nice to see a periodic update of system uptime.
phrax
Posts: 2
Joined: Tue Jan 04, 2005 6:07 pm
Location: Vancouver, BC

rebooting server mystery

Post by phrax »

I have a suggestion for tracking down your 'rebooting' problem. Instead of trying to determine when your machine died by looking at the video streams of ZM, you could redirect the console output of your system to the serial port and connect that serial port to another machine with a null modem cable which just logs everything coming into the serial port.

With that information, anything useful printed to the console prior to rebooting would be logged on a secondary machine and not lost in the reboot.

Alternatively, you would want to just check your uptime and investigate your logs around that time to see if anything interesting was happening. Also for monitoring, and not OS specific, you could setup a cron job (scheduled task) to ping or check a service (http,ftp,smtp,etc.) on your 'rebooting' server to see if/when it's up. That would be useful if it was happening while you're not looking.

I realize this isn't the correct forum to discuss this, but I wanted to offer my suggestions to help you determine your problem.
-nils
pchan
Posts: 50
Joined: Thu Jan 15, 2004 9:38 pm

Post by pchan »

It's actually a power supply issue. Seems the voltage drops periodically hence causing the system to just reboot. I swapped out the pwr supply and it's been up for nearly 18hrs again.
Ruler
Posts: 235
Joined: Mon Nov 08, 2004 9:02 pm
Location: Bay City, MI

Post by Ruler »

How would you set up that serial connection/console redirection phrax? Sounds like something that would be excellent for one of my machines - keeps kernel panicing, but only does it every few weeks. I've been writing down (by hand) as many of the error codes and debug info, but it would be nice to be able to just dump it to a file as you describe. Also, if console IO was redirected to a serial port in such a manner, I'd still be able to log into the box on a different session, correct?

Sorry to hijack your thread pchan - sounds like you've got your rebooting problem solved. Displaying the uptime is a good idea though. One of those 'cool' features that would probably be extremely easy to add. :)
User avatar
zoneminder
Site Admin
Posts: 5215
Joined: Wed Jul 09, 2003 2:07 pm
Location: Bristol, UK
Contact:

Post by zoneminder »

I'll look at making the system info display customisable so you can choose which of the elements to display.

Phil
Post Reply