www.quest.com logo
No cats were harmed in the making of this logo
 
 
 
 
Name: maint.pl.v2.11.tar.gz
Date Modified: 2008-04-10
Sections: Maintenance (Enable/Disable)
Downloads: 11045
Overall Rating:
      (28   votes)
Features:
Ease of Use:
File Size: 18,599 bytes
License: GNU GPL  
Description: A perl CGI script that creates a web interface for disabling host/test pairs. This is a replacement for bb-servmaint.sh, maint.pl V1.x and en-dis.cgi utilities.

V2.11 fixes the hostname parsing when auto-selecting the host and test from a HOSTSVC request. This is useful when selecting the Maintenance icon from a failing hostsvc page. A wrench icon is included to add to HTML headers.
How would you rate this?
  View All   |  Only Positive    |  Only Negative 
mtneagle   2008-04-29 02:41:16 might want to add disabler and reason
On my 2.9 version I put in a column with the disablers name and the reason they gave. > diff maint.pl maint.pl.old 835,836d834 < my $reasons = ""; < my $by = ""; 865c863 < $output .= "<tr><th align=center><code>Enable?</code></th><th><code>Host</code></th><th><code>Test</code></th><th><code>Offline Until</code></th><th><code>Reasons</code></th></tr>n"; --- > $output .= "<tr><th align=center><code>Enable?</code></th><th><code>Host</code></th><th><code>Test</code></th><th><code>Offline Until</code></th></tr>n"; 881,888d878 < if (/^Reason/) { < s/^Reason://; < $reasons = $_; < } < if (/Disabled/) { < s/(^w+sw+:)|(ats.+$)//g; < $by = $_; < } 898c888 < $output .= "<td><b><code>$offtime</code></b></td><td>$by:$reasons</td></tr>n"; --- > $output .= "<td><b><code>$offtime</code></b></td></tr>n";
      1    2     3    4    5
Features    
Ease    
Overall    
fcalegari   2008-04-11 23:32:56 ahhhh
ahhh
      1    2     3    4    5
Features    
Ease    
Overall    
fcalegari   2008-04-11 23:32:29 Hola
Hola
      1    2     3    4    5
Features    
Ease    
Overall    
bjonas   2007-05-26 02:59:44 Excellent piece of software
MUCH better than bb-enadis.sh. There is an issue, however, with the HOSTSVC detection in the REFERER -- it fails for hosts with have a dash in the name. Find the line that says this (around line 262 or so): $tmp=~/?HOSTSVC=([w|-|,]*).(w*)/; Either simply swap the position of the '-' and the ',', or change it to this: $tmp=~/?HOSTSVC=([w,-]*).(w*)/; (If you do the latter, you might take the '|' characters out of the "if ($http_referer =~ /?HOSTSVC=[w|,|-]*.w*/) {" line above it, too. They aren't needed in a character class in a regex.)
      1    2     3    4    5
Features    
Ease    
Overall    
gga   2006-12-01 21:57:43 Absolut nice peace of code
a realy useful plugin for bb. But i had to change some parts. We are running FreeBSD 5.4: at sub BuildATqueue #$atjobfield = 4; $atjobfield = 8; and #my @atq_line=split(/[t]/,$line); my @atq_line = split(" ",$line); regards flori
      1    2     3    4    5
Features    
Ease    
Overall    
dnk   2006-05-02 10:19:48 good
good
      1    2     3    4    5
Features    
Ease    
Overall    
tomski   2006-03-07 04:59:02 Fantastic
Thank you tschmidt this is great , just what we needed . If you run BB get this !
      1    2     3    4    5
Features    
Ease    
Overall    
ealbert1976   2005-12-26 22:52:53 It will use it in the future.
Hereafter, it actually introduces and it moves it.
      1    2     3    4    5
Features    
Ease    
Overall    
Adam   2005-08-03 13:10:54 Great script!
Works great!
      1    2     3    4    5
Features    
Ease    
Overall    
msabatino   2005-04-06 23:50:43 mnmccsa'1'
njfdnjvdf
      1    2     3    4    5
Features    
Ease    
Overall    
   
 

Designed and Hosted by Website Managers