Nagios Log Server on RHEL 6

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
krobertson71
Posts: 444
Joined: Tue Feb 11, 2014 10:16 pm

Re: Nagios Log Server on RHEL 6

Post by krobertson71 »

Just curious... your Primary size for your cluster is 287mb but when you look at /usr your /usr/local is 695m... where is the extra data coming from? Also noticed /usr/share was 290ish...

Just trying to understand for sizing.
.5
EDIT: I was just looking at mine and my /usr/share is 294m as well so must be from initial install as my cluster is only 5.5mb in size. Is all this extra 695 for /usr/local and 294 for /usr/share just part of the initial install or is there space set aside for the cluster/indexes to collect data into? If that make sense. Like you can make a db 100gb and the file will take that much space on the HD but the database itself may only have 100mb in it.. Hope that clarifies my question.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios Log Server on RHEL 6

Post by sreinhardt »

By default du actually lists block counts, not size, hence the -h flag. However that doesn't appear to translate to actual byte size as we really would like them. You should instead look at using the --apparent-size flag, which does appear to display correctly as it uses the size that would be transferred not ondisk size.

[root@localhost libexec]# du -sh /

Code: Select all

5.7G    /
[root@localhost libexec]# du -sh --apparent-size /

Code: Select all

9.8G    /
[root@localhost libexec]# du -sh --apparent-size /*

Code: Select all

7.5M    /bin
21M     /boot
7.8K    /dev
97M     /etc
9.5K    /home
301M    /lib
24M     /lib64
16K     /lost+found
4.0K    /media
0       /misc
4.0K    /mnt
0       /net
8.0K    /opt
5.1G    /proc
83M     /root
34M     /sbin
4.0K    /selinux
4.0K    /srv
143M    /store
153M    /sys
56K     /tmp
3.2G    /usr
776M    /var
Those numbers look much more correct when adding /usr and /var to match /.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
bdgoecke
Posts: 36
Joined: Wed Oct 22, 2014 3:41 pm

Re: Nagios Log Server on RHEL 6

Post by bdgoecke »

I installed Log Server on the "CentOS 6.5 x86_64 minimal" server. I think I have installed a few additional packages.

I believe /usr/share is all "system" stuff, docs-n-stuff for installed packages. I do not believe Nagios installs anything in there, but when we install system packages, they install quite a bit of stuff there. It should not grow much (if any) unless you add more packages.

Investigating /usr/local,

Code: Select all

[@LogServer-centos65-64bit local]$ du -sh *
8.0K    bin
4.0K    etc
4.0K    games
4.0K    include
4.0K    lib
4.0K    lib64
4.0K    libexec
522M    nagioslogserver
4.0K    sbin
92K     share
4.0K    src
178M    vmware
You can see I have added the vmware tools, that is a chunk of the "extra" space.

From digging around with my Log server, there are source files taking up and additional 212M.

That leaves the data files at about 311M. Which I would believe gives us about 5% overhead for the files/data .
Locked