Thursday, July 10, 2008

Webminstats error: sh: -S: invalid option in /etc/webmin/sysstats/sysstats.pl

After upgrading the webmin module “Webminstats” the cron-job started to send every three minutes an eMail like this one:

From: root@ (Cron Daemon)
To: root@
Subject: Cron /etc/webmin/sysstats/sysstats.pl
Content-Type: text/plain; charset=ANSI_X3.4-1968
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
X-Cron-Env:
Date: Thu, 10 Jul 2008 13:24:02 +0200
Message-Id: <1215689042.170398.14108.nullmailer@>
X-MailCleaner-Information: Please contact server@t-p.com for more information
X-MailCleaner: Found to be clean
X-MailCleaner-SpamCheck: not spam, SpamAssassin (cached, score=-4.399,
required 5, ALL_TRUSTED -1.80, BAYES_00 -2.60)
X-CTCH-RefID: str=0001.0A0B0201.4875F164.0098,ss=1,fgs=0
X-cff-SpamScore: 0(/)
X-cff-SpamReport: —– —– Message is unknown to the spam scanner.
X-cff-LastScanner: av

sh: -S: invalid option
Usage: sh [GNU long option] [option] …
sh [GNU long option] [option] script-file …
GNU long options:
–debug
–debugger
–dump-po-strings
–dump-strings
–help
–init-file
–login
–noediting
–noprofile
–norc
–posix
–protected
–rcfile
–restricted
–verbose
–version
–wordexp
Shell options:
-irsD or -c command or -O shopt_option (invocation only)
-abefhkmnptuvxBCHP or -o option

 

Solution

The problem was only solved after I disabled the cronjob, then deleted the module (first make backup of /etc/webmin/sysstats/modules/ !!). After I reinstalled the same version of Webminstats and copy back the backup, the error didn’t appear again (of corse you have to open the webminstats-page at least once for scanning an to reactivate the cronjob).

It seams that is problem started after I made an update of webmin and webminstats. But on other machines I did the same update without receiving errors.

 

Posted by schmidi2 at 12:42:39
Comments

Leave a Reply