Centralize Report In Linux

Dear Friends ,

I have more that 20 linux server running into my environment . It is very difficult for me to take system report like ( Disk usage, user session information etc) . So I want to prepare a centralized report on a linux server so that I can take the following report :

1) Disk usage (df -h)
2) Session Login/Logout report (lastlog/last)

Is there any available tool in linux to prepare it or give me a good idea to manage it .


Similar Content



About Install Awstats

I follow the URL to install awstats , the installation process seems successful .

http://thelinuxfaq.com/90-how-to-ins...os-fedora-rhel

But when I try to run the report by
Code:
http://192.168.0.1/awstats/awstats.pl?config=mydomain.com ,

it pops the error.

Code:
Not Found

The requested URL /awstats/awstats.pl was not found on this server.

then I create /awstats/awstats.pl in DocumentRoot directory , now when I re-try to run the report , it display the program code of the awstats.pl but not show the report , would advise what is wrong ?

Incorrect Disk Space Of External Disk

I have an external disk connected to a raspberry pi to act as a nas, which I am accessing from a linux mint desktop machine.
The nas disk is 30GB, but according to my desktop machine, which connects through the file browser via samba, only around 318MB are reported as available.
If I try to copy a 400MB file it tells me there is insufficient space.
The disk is currently empty, so all 30GB should be available.

On the nas box, cfdisk seems to report the disk size and the partition size correctly:
Code:
                          cfdisk (util-linux 2.20.1)

                              Disk Drive: /dev/sda
                        Size: 30016659456 bytes, 30.0 GB
              Heads: 64   Sectors per Track: 32   Cylinders: 28626

    Name        Flags      Part Type  FS Type          [Label]        Size (MB)
 ------------------------------------------------------------------------------
    sda1        Boot        Primary   ext4                             30016.66*

I'm not sure where to look next.

Keep Watch On Directory

Is there any tool or command in linux to keep watch on directory.
root user should get the report of all the changes made with files in the dir.

Send Emails In HTML Format Through Mailx

I have created a sql file and it will create a HTML file with query result.But I'm unable to retrieve a html body in my email instead am getting a mail body with html tags.Please help

sql----

--sample HTML report.
--
-- Usage: sqlplus LOGON @script OUTPUT_FILENAME
--

-- Activate HTML output and configure the generated markup.
SET MARKUP HTML ON SPOOL ON -
HEAD '<title>My Report</title> -
<style type="text/css"> -
table { background: #eee; font-size: 80%; } -
th { background: #ccc; } -
td { padding: 0px; } -
</style>'

-- Dump results to the file that is given on the command line.
SPOOL &1

-- Only dump to file, not to the terminal.
SET TERMOUT OFF

-- Titles and formatting of columns.
COLUMN name HEADING 'Name'
--COLUMN job HEADING 'Job Title'
--COLUMN salary HEADING 'Salary' FORMAT $99,990

-- The query
--
select tablespace_name from dba_tablespaces;
/

-- Close file, which also closes the HTML tags.
SPOOL OFF

-- Back to non-HTML output
SET MARKUP HTML OFF


mailx command----

mailx -s 'file system' c.bambarandage@prima.com.lk < sam.html

Thanks,
Charith.

Total Linux Newbie Wanting To Set Up Home Lab

Hi,
I work in a company where job security isnt too great at the moment, so I'd like to learn new things, the main one being Linux.

Talking to a tech guy at work he says the best bet to replicate an office environment would be Red Hat, so I would like to install Red Hat Linux Enterprise V7 but am finding it difficult to find an open source website offering a free download for it.
Does anyone have a particular website they get their Linux from at all please?

Also, excuse this very ignorant question, but I'd like to set up a server within my Vmware Workstation 10 environment, plus 3 desktops - would that need Linux Red Hat server plus Linus Red Hat desktop software?

If the above has already been answered then I will happily follow a thread that you could point me too please instead?

Thanks in anticipation,
Clank

SSH Login To Server Always Fail Upon First Attempt

Noticed recently that my first SSH attempt (using putty) to a Red Hat server always fail. Must leave the failed session on, then the second SSH attempt will succeed. If I close the failed ssh session, the second attempt will also fail as well.

This issue only cropped up about two weeks ago and it also happens to other users for this RHEL server only. I am using putty(release 0.64) but other users are connecting to it via command line SSH in their Linux desktop. Not aware of any changes done to this RHEL server recently.

Any suggestions on where should I start looking into?

Remove Chars ^@ From Text File In Linux System Location

Hello Freinds,

This is Vijay. I am new this forum and current skills are oracle ERP. My report is generating a text file in linux system location
like /u02/positivepay/p1.txt

The file p1.txt when generated in window system it is seen as below.
003664831509O0000005005000000564300063017 Universal Incorporated
003664831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

When generated in linux system chars "^@" are seen before each letter from VI editor.
^@0^@03664831509O0000005005000000564300063017 Universal Incorporated
^@0^@0^@3^@6^@64831509O0000005009000000297000063017 Universal Incorporated
003664831509O0000018012000001600000061517 Johnson Painting Specialists

how to remove these chars and any special chars from the generated file


Thanks,
Vijay
Phoenix, Arizona

Creating A Large Tar Ile Form A Sequence Of Small Tar Files And One Files Is Missing

I am trying to put back together a big atr file from some smaller tar files that I created several years ago. The issue is that in order to tar this large file, I must put each file back using the command

tar -xMf cd-1.tar
Prepare volume #2 for 'cd-1.tar' and hit return:n cd-2.tar
Prepare volume #3 for 'cd-2.tar' and hit return:n cd-3.tar
and so forth.

I have fourteen files cd-1.tar through cd-15.tar. The cd-9.tar files is missing and I assume that it is gone. Now when I type the commands in I get the following:

Code:
-linux tarfile]$ tar -xMf cd-1.tar
Prepare volume #2 for `cd-1.tar' and hit return: n cd-2.tar
Prepare volume #3 for `cd-2.tar' and hit return: n cd-3.tar
Prepare volume #4 for `cd-3.tar' and hit return: n cd-4.tar
Prepare volume #5 for `cd-4.tar' and hit return: n cd-5.tar
Prepare volume #6 for `cd-5.tar' and hit return: n cd-6.tar
Prepare volume #7 for `cd-6.tar' and hit return: n cd-7.tar
Prepare volume #8 for `cd-7.tar' and hit return: n cd-8.tar
Prepare volume #9 for `cd-8.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: n cd-10.tar
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)
Prepare volume #9 for `cd-10.tar' and hit return: 
tar: This volume is out of sequence (10755138772 - 4889670868 != 6598651392)

As you can see I do not have cd-9.tar. That stops the untarring cold. However, I have cd-10.tar,cd-11.tar,cd-12.tar,cd-13.tar,cd-14.tar,cd-15.tar. Now I may have these files, but they cannot be put back in the main file because cd-9.tar is missing and everything must be put in sequentially.

Is there a way to complete this sequence of steps and add all fourteen files to the files bigbackup leaving out cd-9.tar? That means that the bigbackup file will be incomplete, but that is better than no file or having bigbackup missing six files on the back end.

Any help appreciated.

Thanks in advance.

Respectfully,


Newport_j

Virtualbox-guest-modules: Requires Linux<4.0

I am running Antergos Linux 64 bit on virtual box. when I try to do full system upgrade I get a error:

resolving dependencies...
looking for conflicting packages...
error: failed to prepare transaction (could not satisfy dependencies)
:: virtualbox-guest-modules: requires linux<4.0


I am using Ubuntu as my host OS and it's kernel version is 3.13.0-49-generic and in Antergos is using 3.19.3-3-ARCH. I guess both are less than linux 4.0

I don't know how to solve this.

Slackware 14.1/adduser Command/session Files

Hello All,

Under root we create a user named "template" using the adduser command which is used to setup a kde GUI logon screen for all users. When a user's name is initially used to sign on we get a window on the GUI that states "Run as Template. The action you requested needs additional privileges. Please enter password for template." (Note: No password for template is used.) There are four files that have been observed:
/usr/bin/hp-systray-session (followed by numbers)
/usr/bin/akonadi_agent_launcher-session (follwed by numbers)
/usr/bin/khelpcenter-session (followed by numbers)
/usr/bin/nepomukcontroller-session (followed by numbers).

When we logout then log back in,this window does not appear again on the GUI.

Any help for this one?

Thanks.

Regards,

Jeff