I receive the following via email every time the collectinfo.pl cron job runs:
Subject: Cron <root@arial> /etc/webmin/virtual-server/collectinfo.pl
sh: ifconfig: command not found
Of course, ifconfig is "found" and can be run at the command line.
I decided to replace the "ifconfig" command in collectinfo.pl with /sbin/ifconfig as a temporary (possible) fix, and searched through both instance of collectinfo.pl found through "locate" on my system:
but could not find any reference to "ifconfig" in either of them.
This is Virtualmin GPL 1.472 (which still shows up as 1.470) running on a CentOS 5.3 Minimial VMWare appliance. I installed using the install.sh script, then restored a Virtualmin servers backup from my crashed stand alone server. I went immediately from the install to the restore, so I don’t know if I was receiving the collectinfo.pl error prior to the restore or not. I do know that the collectinfo.pl error did not occur on the stand-alone server.
I have temporarily disabled the collectinfo.pl cron job so I won’t receive error emails every 5 minutes, but any thoughts on what is wrong and how to fix it?