Best way to publish logs and reports from shell scripts?


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Best way to publish logs and reports from shell scripts?
# 1  
Old 10-06-2015
Best way to publish logs and reports from shell scripts?

Hello,

I have been searching for some advice on this.

I'm new to linux in a sys-admin kind of role, and I'm often asked to get information by running basic commands in the linux shell. For example, how many jobs running, grep a number of files, run a random program and output the results, etc. and this all needs to be shared with management.

So far the only way to store this information is to send email via the shell scripts or to store in a simple text file. I don't really want to use a database since this information is so simple. I don't work for a web development shop so we don't have any sophisticated web tools. Would PHP/HTML be the best way, or just continue spamming people with emails?

How is this typically done in an organized way?

Thanks
# 2  
Old 10-06-2015
Not sure what exactly you are talking about. Sort of "Management Information System" or a "performance score card"? How would that info be accessed? e-mail? Intranet?
# 3  
Old 10-06-2015
RudiC,
Yes, so sort of like Tableau or Graphite if you've seen those tools for viewing data. I don't have fancy tools like that so I'm just wondering what are the best ways to create reports of system information or alerts.
# 4  
Old 10-06-2015
That can range from an EXCEL workbook on a central file server to an interactive HTML page on the intranet to DB with respective extraction forms.
# 5  
Old 10-24-2015
Been there, done that. I wrote an article about using shell scripting to automate tasks like this. Near the bottom of that guide I explain how to produce HTML reports with system information. If you have further questions about that article feel free to drop a note using the comment form.
Hope it helps!
 
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Publish and Subscribe to AES-256 Encrypted MQTT Messages to Node-RED from PHP Scripts

Various Node-Red crypto modules do not work with PHP, so to send an encrypted message from a PHP script (in this case from a Ubuntu server) to Node-RED we need our own code. After a few hours of searching, testing various libs, more testing and debugging, I got this PHP to Node-RED code... (0 Replies)
Discussion started by: Neo
0 Replies

2. Shell Programming and Scripting

Help with Shell Script to View Logs

Hi I'm very new to unix shell scripting. Im also new here in this forum. I'm a SQL Server DBA but I'm slowly learning Oracle and Sybase DB. Our Oracle and Sybase are on Unix platforms. Im slowly learning Linux Admin and Shell Scripting to automate tasks. I'm writing a script to view DB error... (4 Replies)
Discussion started by: Ricky777
4 Replies

3. Shell Programming and Scripting

script to get user id reports korn shell

Dear Friends, Can Any one provide me script to generate list of username with the gecos field. (cat /etc/passwd | cut -d: -f1,5) Please note i have to run this command from nim server and i have password less ssh access.(ssh hostname command) and i want a file to be generated on nim... (1 Reply)
Discussion started by: vinodchauhan123
1 Replies

4. Shell Programming and Scripting

Shell Script for GC Logs

Hi, I have a strange situation here, I want to archive gc.logs file, generated by a java application, the strange thing about gc.log file is is doesn't have any time/date stamp appended to it unlike other logs (catalina/access/error) and one more strange thing is when ever the application is... (6 Replies)
Discussion started by: Neeryan
6 Replies

5. Shell Programming and Scripting

calling 'n' number of shell scripts based on dependency in one shell script.

Hello gurus, I have three korn shell script 3.1, 3.2, 3.3. I would like to call three shell script in one shell script. i m looking for something like this call 3.1; If 3.1 = "complete" then call 3.2; if 3.2 = ''COMPlete" then call 3.3; else exit The... (1 Reply)
Discussion started by: shashi369
1 Replies

6. Shell Programming and Scripting

User1 runs User2 scripts and updates logs?Is it possible?

Guys I have an odd request in hand. User1 Group1,Group2 User2 Group2,Group1 As can be seen ,both users belong to each other's group as well. Now User1 is holding some scripts(in a folder) on which perms are: 750 ..meaning User2 can read and execute but the execution is never successful... (1 Reply)
Discussion started by: ak835
1 Replies

7. Shell Programming and Scripting

creating reports using shell schell script

please advise..very urgent. purpose of my script is that it should generate a report by running a sql script which is stored in a directory and pull the information from DB.script shld be in such a way that I just need to pass a parameter and it shld generate the report and store it in a... (1 Reply)
Discussion started by: complicated
1 Replies

8. AIX

Difference between writing Unix Shell script and AIX Shell Scripts

Hi, Please give me the detailed Differences between writing Unix Shell script and AIX Shell Scripts. Thanks in advance..... (0 Replies)
Discussion started by: haroonec
0 Replies

9. Filesystems, Disks and Memory

scripts for rotation and compression of sys logs

As a UNIX newbie, how can I create a (cron)script that rotates my syslogs on AIX 4.3.3 on a 24 hour basis and compresses the old logs ? TIA ! (1 Reply)
Discussion started by: fireblade
1 Replies
Login or Register to Ask a Question