Webmin "monitor.pl" error (run via crontab)

The script /etc/webmin/status/monitor.pl runs via crontab.

0,5,10,15,20,25,30,35,40,45,50,55 * * * * /etc/webmin/status/monitor.pl

I see this error

postfix::is_postfix_running failed : Failed to query Postfix config command to get the current value of parameter process_id_directory: at ../web-lib-funcs.pl line 1397.

For example, last night three times. But not since then.

23:10

23:25

23:30

LZ

Status: 
Closed (fixed)

Comments

Not seen now for several hours.

LZ

How much RAM does your system have, and how much is free? The biggest cause of postconf failing that I've seen in the past is lack of RAM.

free -m

total used free shared buffers cached

Mem: 1996 1823 172 567 16 656

-/+ buffers/cache: 1150 845

Swap: 0 0 0

As you can see, swap is disabled.

LZ

So, 2 GB of RAM with very little usage?

free -m

total used free shared buffers cached

1996 1875 120 236 100 551

At this point, I have 2G, with 1.8G in use and 120M free.

top(1) reports......

KiB Mem: 2044204 total, 1785148 used, 259056 free, 106864 buffers

The Virtualmin report is

Real memory 1.13 GB used, 1.95 GB total

LZ

Yeah, I suspect you're running out of RAM.

Would it be possible to disable services you don't need? That can free up RAM.

You can disable services you don't need in Webmin -> Services -> Bootup and Shutdown.

You can also try disabling Apache modules you don't need.

OK. This has helped for other cron jobs.

LZ