No joy with collectinfo.pl

I get an email every 5 minutes to one of my system user accounts with the following message:

Can’t locate ./virtual-server-lib.pl in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.8
/usr/local/share/perl/5.8.8 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8
/usr/local/lib/site_perl .) at /etc/webmin/virtual-server/collectinfo.pl line 7.

I ran some commands I saw in another thread from Jamie but no dice.

I just shut the cronjob off but I’d like to see these historical statistics. Any insight?

Thanks

Hmm…Something is broken somewhere. (I know, Captain Obvious here.)

What’s in collectinfo.pl? It ought to know how to setup the Webmin paths correctly, but yours doesn’t. Makes me think it’s not the right collectinto.pl…maybe it’s a copy of the one that lives in /usr/libexec/webmin/virtual-server or /usr/share/webmin/virtual-server? (This won’t work–Virtualmin creates the collectinfo in /etc with the right setup stuff for your system…if you just copy collectinfo.pl it’ll fail in exactly this way.)

Yep. Wrong version. Delete it, and then do the following:

[code:1]
cd /usr/libexec/webmin
export WEBMIN_CONFIG=/etc/webmin
export WEBMIN_VAR=/var/webmin
/usr/libexec/webmin/run-postinstalls.pl virtual-server
[/code:1]

Funny – that looks like the same string of commands that I mentioned earlier that I had already done; Jamie had this posted elsewhere in this forum.

However, I have no /usr/libexec/webmin today. (WTF?) Every day that I check this forum I see that I do not have the same setup as most. It’s quite annoying considering that I downloaded and installed the install.sh file from the Virtualmin site immediately after buying the pro version. On an empty Debian server box with a typical LAMP stack.

My Etch server is not unique, it’s not so custom. I could really care less about collectinfo running or not – I have my own utilities on this machine. What really annoyed me is not seeing: /usr/libexec/webmin

lol – I went to edit this message just now to reword it so I wouldn’t sound all fired-up and I was greeted with a page that read:

Hacking Attempt!

That was funny. Cookies work in my browser, I’m logged in! Whassup with this?

However, I have no /usr/libexec/webmin today. (WTF?) Every day that I check this forum I see that I do not have the same setup as most. It's quite annoying considering that I downloaded and installed the install.sh file from the Virtualmin site immediately after buying the pro version. On an empty Debian server box with a typical LAMP stack.

Don’t panic! It’s just a path difference on Debian. Sorry I didn’t customize it for you. :wink:

You’d do the exact same thing, except you’d replace /usr/libexec/webmin with /usr/share/webmin.

What really annoyed me is not seeing: /usr/libexec/webmin

If that’s really annoying, wait until you notice that Postfix is chrooted on Debian systems and not on any others. That’ll really get your goat. :wink:

Hacking Attempt!

That was funny. Cookies work in my browser, I’m logged in! Whassup with this?

Yeah, I’m working on it. I didn’t write the forum software. Don’t blame me. :wink:

Yeah, well, forum aside – the scripts are not being created:

0 root@hbserv1: /etc/webmin/virtual-server
Fri Sep 28, 10:38 # ls -la
total 276
drwxr-xr-x 13 root root 4096 2007-09-28 10:32 .
drwxr-xr-x 122 root root 4096 2007-09-28 10:31 …
drwx------ 3 root root 4096 2007-09-25 09:50 admins
-rwxr-xr-x 1 root root 8728 2007-08-02 16:55 autoreply.pl
drwx------ 2 root root 4096 2007-09-28 10:00 bandwidth
-rwxr-xr-x 1 root root 338 2007-09-24 17:48 bw.pl
-rw-r–r-- 1 root root 317 2007-09-24 17:48 bw-template
-rwxr-xr-x 1 root root 501 2007-09-10 19:48 clam-wrapper.pl
-rw-r–r-- 1 root root 42993 2007-09-25 09:56 collected
-rwxr-xr-x 1 root root 5434 2007-09-28 10:32 config
drwx------ 2 root root 4096 2007-09-28 10:31 domains
-rw-r–r-- 1 root root 659 2007-09-24 22:59 domain-template
-rwxr-xr-x 1 root root 352 2007-09-16 11:06 fcgiclear.pl
-rwxr-xr-x 1 root root 1886 2007-09-16 11:06 filter.pl
-rw-r–r-- 1 root root 639 2007-09-24 22:59 framefwd-template
-rw-r–r-- 1 root root 670 2007-09-28 10:27 fuega.acl
-rw-r–r-- 1 root root 669 2007-09-28 08:04 hemp.acl
-rw-r–r-- 1 root root 338 2007-09-28 10:31 hempbasics.acl
-rw-r–r-- 1 root root 5411 2007-09-25 18:09 last-config
-rwxr-xr-x 1 root root 348 2007-09-16 11:06 licence.pl
-rw-r–r-- 1 root root 56 2007-09-28 08:14 licence-status
-rw-r–r-- 1 root root 391 2007-09-16 11:06 local-template
-rw-r–r-- 1 root root 341 2007-09-28 10:27 madcarters.acl
-rwxr-xr-x 1 root root 348 2007-09-16 11:06 maillog.pl
-rw-r–r-- 1 root root 80 2007-09-28 10:31 map.alias
-rw-r–r-- 1 root root 144 2007-09-28 10:31 map.dom
-rw-r–r-- 1 root root 104 2007-09-28 10:31 map.gid
-rw-r–r-- 1 root root 80 2007-09-28 10:31 map.parent
-rw-r–r-- 1 root root 80 2007-09-28 10:31 map.reseller
-rw-r–r-- 1 root root 80 2007-09-28 10:31 map.subdom
-rw-r–r-- 1 root root 125 2007-09-28 10:31 map.user
drwxr-xr-x 2 root root 4096 2007-09-21 10:18 names
-rw-r–r-- 1 root root 1178 2007-09-27 12:36 overall-ratings
drwx------ 2 root root 4096 2007-09-25 16:54 plainpass
drwxr-xr-x 2 root root 4096 2007-09-28 10:31 procmail
-rwxr-xr-x 1 root root 871 2007-09-10 19:48 procmail-logger.pl
-rw-r–r-- 1 root root 347 2007-09-28 10:31 pungent-judy.acl
drwx------ 2 root root 4096 2007-09-20 22:33 ratings
-rw-r–r-- 1 root root 570 2007-09-25 18:10 reseller.acl
-rw-r–r-- 1 root root 242 2007-09-24 23:05 reseller-template
drwx------ 13 root root 4096 2007-09-25 16:56 scriptlog
-rwxr-xr-x 1 root root 354 2007-09-27 11:41 scriptwarn.pl
-rwxr-xr-x 1 root root 356 2007-09-16 11:06 sendratings.pl
drwxr-xr-x 7 root root 4096 2007-09-25 16:52 spam
-rw-r–r-- 1 root root 71 2007-09-28 10:31 spamclear
-rwxr-xr-x 1 root root 352 2007-09-21 00:15 spamclear.pl
-rwxr-xr-x 1 root root 354 2007-09-16 11:06 spamconfig.pl
-rw-r–r-- 1 root root 866 2007-09-16 11:06 subdomain-template
drwx------ 2 root root 4096 2007-09-28 10:32 templates
drwx------ 2 root root 4096 2007-09-24 23:57 template-scripts
-rw-r–r-- 1 root root 416 2007-09-24 23:05 update-template
-rw-r–r-- 1 root root 6 2007-09-25 16:54 userdb.lock
-rw-r–r-- 1 root root 380 2007-09-16 11:06 user-template
-rw-r–r-- 1 root root 359 2007-09-24 17:48 warnbw-template
-rwxr-xr-x 1 root root 352 2007-09-25 16:52 writelogs.pl

These are the locations for collectinfo.pl:

Sun Sep 23, 13:09 # locate collectinfo.pl
/etc/webmin/virtual-server/collectinfo.pl
/usr/share/webmin/virtual-server/collectinfo.pl

It was never created in /etc.

cat collectinfo.pl:

Sun Sep 23, 13:09 # cat /etc/webmin/virtual-server/collectinfo.pl
#!/usr/bin/perl

Collect various pieces of general system information, for display by themes

on their status pages. Run every 5 mins from Cron.

package virtual_server;
$main::no_acl_check++;
require ‘./virtual-server-lib.pl’;
$start = time();

Make sure we are not already running

if (&test_lock($collected_info_file)) {
print "Already running\n";
exit(0);
}
&lock_file($collected_info_file);

$info = &collect_system_info();
if ($info) {
&save_collected_info($info);
&add_historic_collected_info($info, $start);
}
&unlock_file($collected_info_file);
############################

These are the locations for collectinfo.pl:

Sun Sep 23, 13:09 # locate collectinfo.pl
/etc/webmin/virtual-server/collectinfo.pl
/usr/share/webmin/virtual-server/collectinfo.pl

It was never created in /etc.

cat collectinfo.pl:

Sun Sep 23, 13:09 # cat /etc/webmin/virtual-server/collectinfo.pl
#!/usr/bin/perl

Collect various pieces of general system information, for display by themes

on their status pages. Run every 5 mins from Cron.

package virtual_server;
$main::no_acl_check++;
require ‘./virtual-server-lib.pl’;
$start = time();

Make sure we are not already running

if (&test_lock($collected_info_file)) {
print "Already running\n";
exit(0);
}
&lock_file($collected_info_file);

$info = &collect_system_info();
if ($info) {
&save_collected_info($info);
&add_historic_collected_info($info, $start);
}
&unlock_file($collected_info_file);
############################