Hi!<br><br>I have Nagios installed on a 1GB partition, with everything installed under a nagios directory on that partition. I did not expect Nagios to start consuming a large amount of space, and now that it is, I cannot determine why or in what files, which is baffling.<br>
<br>I've found the biggest culprit is the var/spool/checkresults directory within the Nagios installation. a `du` command on the directory shows that it is using 287MB. However, when I `ls -la` within that directory, I can't see any file using more than a single kilobyte, and there aren't that many files. However, an `ls -ld` on the directory itself shows that the directory itself is using 286MB. That doesn't make sense to me, and so I'm looking for input! I wonder if the following approach would help correct things (but I'd like to understand why they're in this state first): Stop nagios, move the checkresults directory to checkresults.old, make a new checkresults directory, copy all the old files into it, remove the empty .old directory, start nagios.<br>
<br>The filesystem is JFS, if that makes any difference.<br><br>Here is raw output of what I'm seeing:<br><br>root@indhlcwww1:/mnt/data/share/nagios-3.2.0/var/spool/checkresults<br># du -h<br>287M .<br><br>root@indhlcwww1:/mnt/data/share/nagios-3.2.0/var/spool/checkresults<br>
# ls -laSrh<br>total 287M<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cZar4eF.ok<br>-rw------- 1 nagios nagios 0 2010-01-04 19:15 cy8clT1.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cXaj1gN.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cvWmN4R.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cVvx4M8.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cvtm0Hd.ok<br>-rw------- 1 nagios nagios 0 2009-12-06 01:27 cvqSGDK<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cv6pJ1B.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 ctwW4SD.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cTpIKAl.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cTm3Vzw.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 ctCCihr.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 csRsM4M.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cryC1Dq.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cRR4Ubm.ok<br>-rw------- 1 nagios nagios 0 2009-11-27 23:24 cqqacdj<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cq75lkN.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cnxxq4z.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cnDr6c0.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cmxnujo.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cMPxHgo.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cMf26lf.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cLksJml.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 ckVnJcE.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cjjgyfh.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cjCc8ov.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 chokVz4.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cHN3b3M.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cHlsWuh.ok<br>-rw------- 1 nagios nagios 0 2009-12-11 19:19 checkyTpLfU<br>-rw------- 1 nagios nagios 0 2009-11-05 04:12 checkXbP1al<br>-rw------- 1 nagios nagios 0 2009-11-04 12:53 checkWx0m6z<br>
-rw------- 1 nagios nagios 0 2009-11-05 04:12 checkwpqhVE<br>-rw------- 1 nagios nagios 0 2009-12-29 17:23 checkvMraRW<br>-rw------- 1 nagios nagios 0 2009-12-11 19:20 checkqWrl04<br>-rw------- 1 nagios nagios 0 2009-11-04 12:53 checkQq7MX0<br>
-rw------- 1 nagios nagios 0 2009-12-29 17:23 checknzRtjN<br>-rw------- 1 nagios nagios 0 2009-11-05 04:12 checkM6htUZ<br>-rw------- 1 nagios nagios 0 2009-11-27 23:24 checkhVbOzY<br>-rw------- 1 nagios nagios 0 2009-11-17 12:43 checkEVDugp<br>
-rw------- 1 nagios nagios 0 2009-11-04 12:53 checkd4A1MS<br>-rw------- 1 nagios nagios 0 2009-11-05 04:12 checkBXX71Z<br>-rw------- 1 nagios nagios 0 2009-11-27 23:24 checkBLCU9i<br>-rw------- 1 nagios nagios 0 2009-11-04 12:53 checkAaA6Qr<br>
-rw------- 1 nagios nagios 0 2009-12-06 01:27 check8avYJJ<br>-rw------- 1 nagios nagios 0 2009-12-29 17:23 cGZFyHr<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cgBr4Y1.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 cFxFlm3.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 cD2T5eV.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 caw2Ihv.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 c9iVtCP.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 c7QYuXc.ok<br>
-rw------- 1 nagios nagios 0 2010-01-26 15:23 c75znoT.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 c6NV5yW.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 c59UhZL.ok<br>-rw------- 1 nagios nagios 0 2010-01-26 15:23 c1m1KIr.ok<br>
drwxr-xr-x 3 root root 8 2009-10-20 01:44 ../<br>-rw------- 1 nagios nagios 249 2009-11-17 15:03 check47CLdy<br>-rw------- 1 nagios nagios 252 2009-11-17 15:03 checkAE7iMM<br>-rw------- 1 nagios nagios 277 2009-11-17 15:03 checkaNpheC<br>
-rw------- 1 nagios nagios 278 2010-01-26 15:23 checkWDzCTc<br>-rw------- 1 nagios nagios 279 2010-01-26 15:23 checkpLyZS3<br>-rw------- 1 nagios nagios 280 2010-01-26 15:23 checkVSgE8U<br>-rw------- 1 nagios nagios 281 2010-01-26 15:23 check6txgYX<br>
-rw------- 1 nagios nagios 285 2009-11-17 15:03 checkQXTDa5<br>-rw------- 1 nagios nagios 394 2010-01-26 15:23 cD2T5eV<br>-rw------- 1 nagios nagios 395 2010-01-26 15:23 cgBr4Y1<br>-rw------- 1 nagios nagios 397 2010-01-26 15:23 cZar4eF<br>
-rw------- 1 nagios nagios 397 2010-01-26 15:23 ctwW4SD<br>-rw------- 1 nagios nagios 401 2010-01-26 15:23 ctCCihr<br>-rw------- 1 nagios nagios 401 2010-01-26 15:23 cjCc8ov<br>-rw------- 1 nagios nagios 403 2010-01-26 15:23 cHlsWuh<br>
-rw------- 1 nagios nagios 404 2010-01-26 15:23 cRR4Ubm<br>-rw------- 1 nagios nagios 408 2009-12-01 08:38 cV0kCF9<br>-rw------- 1 nagios nagios 409 2010-01-26 15:23 cTpIKAl<br>-rw------- 1 nagios nagios 409 2010-01-26 15:23 cq75lkN<br>
-rw------- 1 nagios nagios 412 2010-01-26 15:23 cTm3Vzw<br>-rw------- 1 nagios nagios 412 2009-12-11 19:20 ch4XVu5<br>-rw------- 1 nagios nagios 413 2010-01-26 15:23 c1m1KIr<br>-rw------- 1 nagios nagios 416 2010-01-26 15:23 c9iVtCP<br>
-rw------- 1 nagios nagios 417 2010-01-26 15:23 chokVz4<br>-rw------- 1 nagios nagios 418 2010-01-26 15:23 cVvx4M8<br>-rw------- 1 nagios nagios 418 2010-01-26 15:23 cnxxq4z<br>-rw------- 1 nagios nagios 418 2010-01-26 15:23 cLksJml<br>
-rw------- 1 nagios nagios 427 2010-01-26 15:23 cXaj1gN<br>-rw------- 1 nagios nagios 433 2010-01-26 15:23 ckVnJcE<br>-rw------- 1 nagios nagios 435 2010-01-26 15:23 cnDr6c0<br>-rw------- 1 nagios nagios 437 2010-01-26 15:23 cvWmN4R<br>
-rw------- 1 nagios nagios 437 2010-01-26 15:23 c6NV5yW<br>-rw------- 1 nagios nagios 438 2010-01-26 15:23 cMPxHgo<br>-rw------- 1 nagios nagios 440 2010-01-26 15:23 cMf26lf<br>-rw------- 1 nagios nagios 442 2010-01-26 15:23 cmxnujo<br>
-rw------- 1 nagios nagios 442 2010-01-26 15:23 c59UhZL<br>-rw------- 1 nagios nagios 445 2009-11-05 04:12 cdarn2Z<br>-rw------- 1 nagios nagios 447 2010-01-26 15:23 csRsM4M<br>-rw------- 1 nagios nagios 465 2010-01-26 15:23 cjjgyfh<br>
-rw------- 1 nagios nagios 467 2010-01-26 15:23 cryC1Dq<br>-rw------- 1 nagios nagios 473 2010-01-26 15:23 cHN3b3M<br>-rw------- 1 nagios nagios 474 2010-01-26 15:23 c7QYuXc<br>-rw------- 1 nagios nagios 498 2010-01-26 15:23 cv6pJ1B<br>
-rw------- 1 nagios nagios 499 2010-01-26 15:23 c75znoT<br>-rw------- 1 nagios nagios 504 2010-01-26 15:23 cFxFlm3<br>-rw------- 1 nagios nagios 506 2010-01-26 15:23 cvtm0Hd<br>-rw------- 1 nagios nagios 507 2010-01-26 15:23 caw2Ihv<br>
drwxrwxr-x 2 nagios nagios 286M 2010-01-26 15:23 ./<br><br>root@indhlcwww1:/mnt/data/share/nagios-3.2.0/var/spool/checkresults<br># ls -ldh<br>drwxrwxr-x 2 nagios nagios 286M 2010-01-26 15:24 ./<br><br clear="all">Thank you in advance for any advice!<br>
-- <br>Casey Allen Shobe<br><a href="mailto:casey@shobe.info">casey@shobe.info</a><br>