[mrtg] Strange error when using UCD-DISKIO-MIB
Steve Shipway
s.shipway at auckland.ac.nz
Thu Feb 19 22:12:36 CET 2009
> Further testing shows that if I set "Forks: 1" then I can run mrtg in
...
> Also, if I try to check all 48 drives in both servers via a single config
> file/mrtg run, then it fails. If I split the config file to check the two
> servers one after the other in separate mrtg runs (24 drives each), then
> it succeeds.
I think you're running out of file descriptors. See what 'ulimit -n'
returns (you might need a different set of options depending on your OS).
Do the appropriate things to set the FD limit to 1024 or even higher.
Linux example:
[root at slayer src]# ulimit -n
1024
[root at slayer src]# ulimit -a
core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 40958
max locked memory (kbytes, -l) 32
max memory size (kbytes, -m) unlimited
open files (-n) 1024
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 10240
cpu time (seconds, -t) unlimited
max user processes (-u) unlimited
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
[root at slayer src]# ulimit -n 2048
[root at slayer src]# ulimit -n
2048
Add this line to /etc/security/limits.conf (if you use the 'mrtg' user to
run the mrtg processes):
mrtg - nproc 1024
Steve
-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/x-pkcs7-signature
Size: 3133 bytes
Desc: not available
Url : http://lists.oetiker.ch/pipermail/mrtg/attachments/20090220/ea075a72/attachment.bin
More information about the mrtg
mailing list