[sos-devel] question about configuration file

Collins, Brian (GE Corporate, consultant) brian.collins at ge.com
Tue Sep 29 18:34:17 UTC 2015


In 1.7 some features like cgroups don't exist. I wanted a blanket of the simplest modules to just run a for loop to sosreport / scp the contents to a main server so I can awk grep and sed through it.  The highest revision I have seen in these servers is 2.2 and the lowest is 1.7. It's a one shot to gather most of the critical config files and compare to others. Some plugins will cause sosreport to hang. These seem to work on all of the referenced servers....

Thank you for the clarification. I believe I will just have to use the -o option in my for loop. 

It would be nice to have an only option in the sos.conf though.....

Brian Collins

-----Original Message-----
From: Bryn M. Reeves [mailto:bmr at redhat.com] 
Sent: Tuesday, September 29, 2015 1:45 PM
To: Collins, Brian (GE Corporate, consultant)
Cc: sos-devel at redhat.com
Subject: Re: [sos-devel] question about configuration file

On Tue, Sep 29, 2015 at 01:33:28PM +0000, Collins, Brian (GE Corporate, consultant) wrote:
> sosreport -o 
> anaconda,apache,bootloader,crontab,filesys,general,hardware,kernel,lib
> raries,lsbrelease,memory,networking,nscd,ntp,openssl,pam,process,rpm,s
> ar,sendmail,snmp,ssh,startup,system,udev,xinetd,yum,rhn,tomcat

It might help to explain why you want to exclude everything but a particular whitelist of plugins: it's not the common way of using the tool and although there are some existing users that do work this way they tend to approach the problem using a wrapper script (e.g.
RHEV/oVirt and various Gluster sub-projects).

> works by enabling ONLY these modules while the config file looking as such does not:
> [general]
> 
> #ftp_upload_url = 
> https://urldefense.proofpoint.com/v2/url?u=ftp-3A__example.com_incomin
> g&d=BQIBAg&c=IV_clAzoPDE253xZdHuilRgztyh_RiV3wUrLrDQYWSI&r=agoZV855bOR
> 3XD035MV1dqRRgPBvdNZcVcj77nLZNA4&m=kb1Fh4WynlhNJXmYLaw9NCNoDZ9higy9E1B
> 0998Fuek&s=z_-rYqfAsCNfSRx6ZRw46zVCWCsYJACmXEzbH7j6SAc&e=
> #gpg_keyring = /usr/share/sos/rhsupport.pub #gpg_recipient = 
> support at redhat.com smtp_server = None
> 
> [plugins]
> 
> enable = anaconda, apache, bootloader, crontab, filesys, general, 
> hardware, kernel, libraries, lsbrelease, memory, networking, nscd, 
> ntp, openssl, pam, process, rpm, sar, sendmail, snmp, ssh, startup, 
> system, udev, xinetd, yum, mysql, rhn, tomcat

See my other reply - an 'enable' option has never existed in this file - the documentation is pretty complete: there just are not that many options available in sos.conf.

Regards,
Bryn.





More information about the sos-devel mailing list