Drees's picture

Hi there. I recently installed Observium for our medium sized company to see long time loads and storage usage.

Now i stumbled across a major problem for our Owncloud server. As we are often using Network storages and alternative mountpoints we got a mounted device on.

df -h
Filesystem      Size  Used Avail Use% Mounted on
udev            3.9G  8.0K  3.9G   1% /dev
tmpfs           799M  400K  799M   1% /run
/dev/xvda1      7.8G  2.8G  4.6G  38% /
none            4.0K     0  4.0K   0% /sys/fs/cgroup
none            5.0M     0  5.0M   0% /run/lock
none            3.9G     0  3.9G   0% /run/shm
none            100M     0  100M   0% /run/user
/dev/xvdf1      197G   57G  131G  31% /var/www/owncloud/data
/dev/xvdh1       50G   12G   36G  24% /mnt/cache

The storage on /var/www/owncloud/data is not listed in Observium at all.

A grep with an snmpwalk shows that informations regarding the storage are properly transported but ignored by Observium:

iso.3.6.1.2.1.25.2.3.1.3.45 = STRING: "/var/www/owncloud/data"
iso.3.6.1.2.1.25.3.8.1.2.15 = STRING: "/var/www/owncloud/data"

In the default.inc.php file are some configs where devices are ignored on purpose. Even after deleting all lines regarding ignore mounts:

 $config['ignore_mount_removable']  = 0; // Ignore removable disk storage
547 $config['ignore_mount_network']    = 0; // Ignore network mounted storage
548 $config['ignore_mount_optical']    = 0; // Ignore mounted optical discs
549
550 $config['ignore_mount'][] = "/kern";
551 $config['ignore_mount'][] = "/mnt/cdrom";
552 $config['ignore_mount'][] = "/proc";
553 // $config['ignore_mount'][] = "/dev";
554 $config['ignore_mount'][] = "/run";
555
556 $config['ignore_mount_string'][] = "packages";
557 $config['ignore_mount_string'][] = "devfs";
558 $config['ignore_mount_string'][] = "procfs";
559 $config['ignore_mount_string'][] = "UMA";
560 $config['ignore_mount_string'][] = "MALLOC";
561
562 $config['ignore_mount_regexp'][] = '/on: \/packages/';
563 $config['ignore_mount_regexp'][] = '/on: \/dev/';
564 $config['ignore_mount_regexp'][] = '/on: \/proc/';
565 $config['ignore_mount_regexp'][] = '/on: \/junos^/';
566 $config['ignore_mount_regexp'][] = '/on: \/junos\/dev/';
567 $config['ignore_mount_regexp'][] = '/on: \/jail\/dev/';
568 $config['ignore_mount_regexp'][] = '/^(dev|proc)fs/';
569 $config['ignore_mount_regexp'][] = '/^\/dev\/md0/';
570 $config['ignore_mount_regexp'][] = '/^\/var\/dhcpd\/dev,/';
571 $config['ignore_mount_regexp'][] = '/UMA/';
572 $config['ignore_mount_regexp'][] = '!/\.snapshot!';         // Netapp: dfFileSys.10:-->/vol/volssg2/.snapshot
573 $config['ignore_mount_regexp'][] = '/dfc#\d+\-bootflash/';  // Cisco DFC bootflash is used for the crash files, always free
574 $config['ignore_mount_regexp'][] = '/^DFC/';
575 $config['ignore_mount_regexp'][] = '/^\/run\//';


it still won't show in Observium.

Both servers are running on aws with a default ubuntu 16.04 without gui. Observium ist the newest version .

If anyone got a clue how to monitor /dev/xvdf1 197G   57G  131G  31% /var/www/owncloud/data help would be much appreciated.

Kind regards

Drees

Forum: 

Add new comment