LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   I would like to collect the count of the reboots that occur of my Linux servers (https://www.linuxquestions.org/questions/linux-newbie-8/i-would-like-to-collect-the-count-of-the-reboots-that-occur-of-my-linux-servers-803353/)

Jim4522 04-21-2010 02:20 PM

I would like to collect the count of the reboots that occur of my Linux servers
 
I have a pool of approximately 1,000 Linux servers and I would like to get a total count of reboots that occurred on those servers each month. I would like to collect this reboot count at the end of each month. Can anyone tell me what the best way to get this count. Jim4522

TB0ne 04-21-2010 02:55 PM

Quote:

Originally Posted by Jim4522 (Post 3943044)
I have a pool of approximately 1,000 Linux servers and I would like to get a total count of reboots that occurred on those servers each month. I would like to collect this reboot count at the end of each month. Can anyone tell me what the best way to get this count. Jim4522

Kinda like asking "how high is up?" Would depend greatly on what you've got in place now.

Do you have an enterprise SNMP monitor (like Smarts/Openview/etc.?) that such data is aggregated to? Central syslog server?

If it was me, I would have one little MySQL server sitting somewhere (probably on said central syslog server, my workstation, whatever), and put a script onto the various boxes I wanted to monitor. That script would run at system startup (and shutdown, ideally), to do nothing but shove a record into the SQL database. A simple query with pretty much any tool (Excel, OpenOffice, etc.), could pull out reports, as could a command-line query.


All times are GMT -5. The time now is 04:09 PM.