Yet another HTML syslog generator script

Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload
Author Message
American_Jesus
DD-WRT Novice


Joined: 08 Sep 2013
Posts: 2

PostPosted: Sun Sep 08, 2013 17:41    Post subject: Yet another HTML syslog generator script Reply with quote
Hi
Not happy with HTML syslog generator scripts i've decided to create my own.

Features:
  • Messages in HTML table
  • crit/alert/err messages appears in red
  • configurable number of lines generated

Installation:
  1. put log_gen.sh in /tmp/www/ (with your favorite scp tool)
  2. chmod 700 /tmp/www/log_gen.sh
  3. Add cron job in Administrations panel
  4. */15 * * * * root /tmp/www/log_gen.sh
  5. (optional) Edit nlines on the script (default 500)


Syslog page will be available on http://<routerip>/user/syslog.html

Source available on GitHub Gist: gist.github.com/Generator/6467828
Fell free to fork it

_________________
WRT160n v1.1 (build 14311)
Sponsor
redhawk0
DD-WRT Guru


Joined: 04 Jan 2007
Posts: 11564
Location: Wherever the wind blows- North America

PostPosted: Mon Sep 09, 2013 16:59    Post subject: Re: Yet another HTML syslog generator script Reply with quote
American_Jesus wrote:
Hi
Not happy with HTML syslog generator scripts i've decided to create my own.

Features:
  • Messages in HTML table
  • crit/alert/err messages appears in red
  • configurable number of lines generated

Installation:
  1. put log_gen.sh in /tmp/www/ (with your favorite scp tool)
  2. chmod 700 /tmp/www/log_gen.sh
  3. Add cron job in Administrations panel
  4. */15 * * * * root /tmp/www/log_gen.sh
  5. (optional) Edit nlines on the script (default 500)


Syslog page will be available on http://<routerip>/user/syslog.html

Source available on GitHub Gist: gist.github.com/Generator/6467828
Fell free to fork it


looks nice...however, /tmp/www and /tmp/root won't survive a reboot. You will need to put the script in jffs or on a USB partition.

I put it in /mnt and it worked just fine.

redhawk

_________________
The only stupid question....is the unasked one.
American_Jesus
DD-WRT Novice


Joined: 08 Sep 2013
Posts: 2

PostPosted: Mon Sep 09, 2013 17:11    Post subject: Reply with quote
I'm aware of it, and the users must know it too before installing anything there.
Unfortunately not all routers/images have jffs/usb.

_________________
WRT160n v1.1 (build 14311)
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Contributions Upload All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum