ryran / rebooty-inspector Goto Github PK
View Code? Open in Web Editor NEWInspect recent startup events to see if they were preceded by clean shutdowns
Inspect recent startup events to see if they were preceded by clean shutdowns
Would like to request this to be modified to support CentOS please.
yep.
Good idea Jack.
when using the glob option, it would be nice to know which file is being parsed for the specified reboot.
for example:
[jwaterwo@collab-shell ~]$ /git/Rebooty-inspector/Rebooty-inspector . -g -n1 -a
OS detected as RHEL 7
#[1] controller-a (3.10.0-229.1.2.el7.x86_64) startup at Apr 16 23:52:00 (most recent)
✘ NOT PRECEDED BY CLEAN SHUTDOWN!
Relevant log(s):
Apr 27 03:40:10 controller-a logrotate: ALERT exited abnormally with [1]
Apr 16 23:52:00 controller-a rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="687" x-info="http://www.rsyslog.com"] start
Apr 16 23:51:50 controller-a kernel: Linux version 3.10.0-229.1.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Fri Mar 6 17:12:08 EST 2015
#[2] controller-a (3.10.0-229.1.2.el7.x86_64) startup at Apr 24 15:00:21
✔ Preceded by clean shutdown
Relevant log(s):
Apr 24 14:55:47 controller-a rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="10527" x-info="http://www.rsyslog.com"] exiting on signal 15.
Apr 24 15:00:21 controller-a rsyslogd: [origin software="rsyslogd" swVersion="7.4.7" x-pid="700" x-info="http://www.rsyslog.com"] start
Apr 24 15:00:10 controller-a kernel: Linux version 3.10.0-229.1.2.el7.x86_64 ([email protected]) (gcc version 4.8.3 20140911 (Red Hat 4.8.3-9) (GCC) ) #1 SMP Fri Mar 6 17:12:08 EST 2015
After seeing these I then have to search the log files to determine WHICH file is actual contains this data.
Citellus is being used on daily basis over lot of sosreport and could benefit of rebooty parsing.
Tracked in risuorg/risu#321
I like this idea.
Could either be something that is always included or only visible when using --verbose
or --lines
.
So far, I've only run this on RHEL 5.11 (with sysklogd, rsyslog3, rsyslog5), RHEL 6.6, and RHEL 7.1. Haven't taken the time to do serious testing yet. Need to.
So far, only parsing of RHEL 5 with standard sysklogd works. Need to implement rsyslog3 and rsyslog5.
Who knows, maybe even RHEL 6.0 and 6.1 might need special treatment (from what I remember it was rsyslog4).
When looking at files with glob, the (most recent) tag was placedon an older reboot.
[jwaterwo@collab-shell ~]$ /git/Rebooty-inspector/Rebooty-inspector . -g -a
OS detected as RHEL 7
#[1] controller-a (3.10.0-229.1.2.el7.x86_64) startup at Apr 16 23:52:00 (most recent)
✘ NOT PRECEDED BY CLEAN SHUTDOWN!
#[2] controller-a (3.10.0-229.1.2.el7.x86_64) startup at Apr 24 15:00:21
✔ Preceded by clean shutdown
That is to say, why do we require the -r
option when we could just use the non-option-argument(s) as the sosroot, like xsos does.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.