Re: State of ispman?

Robert Middleswarth <[email protected]> Sat, 23 Apr 2011 14:58:00 -0400
Newsgroups gmane.comp.isp.ispman.user
Message-ID <[email protected]>
This is a multi-part message in MIME format.
--------------030102010602000304010508
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Atif,

There is always interest.  ISPman has been pretty dead for several years
but it fills my needs very well.  It excels at supporting mail servers
that process large numbers of emails.  Each of my MX boxes currently
process more then 500,000 emails a day.  That includes Amavis, SA,
ClamAV, etc as well using LDAP for everything under postfix.  Even will
all that running on the boxes there is still room to grow on the boxes.
 These are PIV boxes not power houses.  I have no doubt a new system
with decent IO could do millions.

Once we converted ispman-agent from the daemon that crashed all the time
to a cron task ispman just works and does what we need it to do.
Unfortunately I don't know perl well enough to make it a proper command
line option so I could submit a patch or I would.

For the record I made the following changes to ispman-agent.

Inside the file /opt/ispman/bin/ispman-agent I commented out the
following line.

##      Change from Daemon to cron runable agent.
##        sleep( 60 * $agentFrequency );
        unlink $pid_file && exit(0);

Then created a cron job to run the agent every 5 mins.  You can reduce
the time down some but in my group we found that 5 min that always ran
on the numbers was predictable and manageable.

/etc/cron.d/ispman_agent
#!/bin/bash
*/5 * * * * root /opt/ispman/bin/ispman-agent nodetach

PS I also added to following script on the master ldap system.  For
nightly backups.  It is simple but it keeps ldap happy.
/etc/cron.daily/ispman_daily_maintaince .  Note I run the webservice and
master ldap on the same box so the script might has some dependence on
the full ispman install but I don't think so.

Thanks
Robert

On 12/18/2009 09:45 PM, Atif Ghaffar wrote:
> If there is interest, I can revive the isp-director codebase to a state
> where it is as usuable as the ispman project.
> 
> 
> On Thu, Dec 17, 2009 at 6:05 PM, anebi.bg <http://anebi.bg>@gmail.com
> <http://gmail.com> <anebi.bg <http://anebi.bg>@gmail.com
> <http://gmail.com>> wrote:
> 
>     Hi,
> 
>     i have checked some months ago different panels like ispCP and
>     ispConfig, but i really didn't find any better application like
>     architectures and organization of things inside like ISPMan.
> 
>     I remember that Atif Ghaffar was started isp-director project, but it
>     looks that it will not continue to be developed as Atif informed
>     already.
> 
>     We are still using ISPMan, but we are also looking for an good
>     alternative.
> 
> 
>     ------------------------------------------------------------------------------
>     This SF.Net email is sponsored by the Verizon Developer Community
>     Take advantage of Verizon's best-in-class app development support
>     A streamlined, 14 day to market process makes app distribution fast
>     and easy
>     Join now and get one step closer to millions of Verizon customers
>     http://p.sf.net/sfu/verizon-dev2dev
>     _______________________________________________
>     Ispman-users mailing list
>     [email protected]
>     <mailto:[email protected]>
>     https://lists.sourceforge.net/lists/listinfo/ispman-users
> 
> 
> 
> 
> -- 
> best regards
> Atif Ghaffar
> 
> 
> 
> ------------------------------------------------------------------------------
> This SF.Net email is sponsored by the Verizon Developer Community
> Take advantage of Verizon's best-in-class app development support
> A streamlined, 14 day to market process makes app distribution fast and easy
> Join now and get one step closer to millions of Verizon customers
> http://p.sf.net/sfu/verizon-dev2dev 
> 
> 
> 
> _______________________________________________
> Ispman-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/ispman-users


--------------030102010602000304010508
Content-Type: text/plain;
 name="ispman_daily_maintaince"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
 filename="ispman_daily_maintaince"

#!/bin/bash
## Config Options.
# Backup directory location e.g /backups
BACKUPDIR="/etc/ldap/backup"
# Which day do you want weekly backups? (1 to 7 where 1 is Monday)
DOWEEKLY=7
# Choose Compression type. (gzip or bzip2)
COMP=bzip2
# slapcat options.  Should generally be blank.
OPT=""                       # OPT string for use with slapcat ( see man slapcat )

## Actually script.
DATE=`date +%Y-%m-%d_%Hh%Mm`                            # Datestamp e.g 2002-09-21
DOW=`date +%A`                                                  # Day of the week e.g. Monday
DNOW=`date +%u`                                         # Day number of the week 1 to 7 where 1 represents Monday
DOM=`date +%d`                                                  # Date of the Month e.g. 27
M=`date +%B`                                                    # Month e.g January
W=`date +%V`                                                    # Week Number e.g 37


# Create required directories
if [ ! -e "$BACKUPDIR" ]                # Check Backup Directory exists.
        then
        mkdir -p "$BACKUPDIR"
fi

if [ ! -e "$BACKUPDIR/daily" ]          # Check Daily Directory exists.
        then
        mkdir -p "$BACKUPDIR/daily"
fi

if [ ! -e "$BACKUPDIR/weekly" ]         # Check Weekly Directory exists.
        then
        mkdir -p "$BACKUPDIR/weekly"
fi
if [ ! -e "$BACKUPDIR/monthly" ]        # Check Monthly Directory exists.
        then
        mkdir -p "$BACKUPDIR/monthly"
fi

if [ ! -e "$BACKUPDIR/latest" ] # Check Latest Directory exists.
then
	mkdir -p "$BACKUPDIR/latest"
fi
eval rm -fv "$BACKUPDIR/latest/*"

# Functions

# Database ldap function
dbdump () {
slapcat $OPT $1
return 0
}

# Compression function plus latest copy
SUFFIX=""
compression () {
if [ "$COMP" = "gzip" ]; then
        gzip -f "$1"
        echo
        echo Backup Information for "$1"
        gzip -l "$1.gz"
        SUFFIX=".gz"
elif [ "$COMP" = "bzip2" ]; then
        echo Compression information for "$1.bz2"
        bzip2 -f -v $1 2>&1
        SUFFIX=".bz2"
else
        echo "No compression option set, check advanced settings"
fi
cp $1$SUFFIX "$BACKUPDIR/latest/"
return 0
}

echo Backup Start Time `date`
echo ======================================================================
# Monthly Full Backup of all Databases
if [ $DOM = "01" ]; then
	echo Monthly Backup of LDAP tree...
	dbdump "-l $BACKUPDIR/monthly/ispman.$DATE.$M.ldif"
        compression "$BACKUPDIR/monthly/ispman.$DATE.$M.ldif"
        BACKUPFILES="$BACKUPFILES $BACKUPDIR/monthly/ispman.$DATE.$M.ldif$SUFFIX"
        echo ----------------------------------------------------------------------
fi

# Weekly Backup
if [ $DNOW = $DOWEEKLY ]; then
	echo Weekly Backup of LDAP tree...
	echo
	echo Rotating 5 weeks Backups...
        if [ "$W" -le 05 ];then
        	REMW=`expr 48 + $W`
	elif [ "$W" -lt 15 ];then
        	REMW=0`expr $W - 5`
	else
		REMW=`expr $W - 5`
        fi
	eval rm -fv "$BACKUPDIR/weekly/ispman.week.$REMW.*"
        echo
       	dbdump "-l $BACKUPDIR/weekly/ispman.week.$W.$DATE.ldif"
        compression "$BACKUPDIR/weekly/ispman.week.$W.$DATE.ldif"
        BACKUPFILES="$BACKUPFILES $BACKUPDIR/weekly/ispman.week.$W.$DATE.ldif$SUFFIX"
        echo ----------------------------------------------------------------------
# Daily Backup
else
	echo Daily Backup of LDAP Tree...
        echo
        echo Rotating last weeks Backup...
        eval rm -fv "$BACKUPDIR/daily/*.$DOW.ldif.*"
        echo
        dbdump "-l $BACKUPDIR/daily/ispman.$DATE.$DOW.ldif"
        compression "$BACKUPDIR/daily/ispman.$DATE.$DOW.ldif"
        BACKUPFILES="$BACKUPFILES $BACKUPDIR/daily/ispman.$DATE.$DOW.ldif$SUFFIX"
        echo ----------------------------------------------------------------------
fi
echo Backup End Time `date`
echo ======================================================================
echo Total disk space used for backup storage..
echo Size - Location
echo `du -hs "$BACKUPDIR"`
echo

echo Now cleaning up ISPMan Sessions
cd /opt/ispman/bin/
/opt/ispman/bin/ispman.removeEmptySessions

--------------030102010602000304010508
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

------------------------------------------------------------------------------
Fulfilling the Lean Software Promise
Lean software platforms are now widely adopted and the benefits have been 
demonstrated beyond question. Learn why your peers are replacing JEE 
containers with lightweight application servers - and what you can gain 
from the move. http://p.sf.net/sfu/vmware-sfemails
--------------030102010602000304010508
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

_______________________________________________
Ispman-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ispman-users

--------------030102010602000304010508--