[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
monit on linux 2.4
From: |
Arkadiusz Miskiewicz |
Subject: |
monit on linux 2.4 |
Date: |
Sat, 14 Jun 2003 22:11:08 +0000 |
User-agent: |
Mutt/1.4.1i |
While reading sysdep_LINUX.c from cvs:
int init_process_info_sysdep(void) {
struct stat buf;
/* I hope this is okay hack to get the total memsize. (-: */
if ( stat("/proc/kcore", &buf) != 0 ) {
return FALSE;
}
Well, that's not going to work since on 2.4 kernel:
address@hidden arekm]# LANG=C ls -l /proc/kcore
ls: /proc/kcore: No such file or directory
free from procps package checks available memory by parsing
/proc/meminfo so similar code could be used in monit, too.
--
Arkadiusz MiĆkiewicz CS at FoE, Wroclaw University of Technology
arekmatssedotpl AM2-6BONE, 1024/3DB19BBD, arekm(at)ircnet, PLD/Linux
- monit on linux 2.4,
Arkadiusz Miskiewicz <=