Project

General

Profile

Revision 3bebddc7

ID3bebddc772252e798f54ea876c42bb251314a77a
Parent a651e78d
Child 79c0fe97

Added by Francois POIROTTE almost 7 years ago

[#1690] Correction pour gérer correctement "/"

Evite un bug qui empêchait la supervision de la partition racine sur les
machines Linux.

Change-Id: Ib207369006140270302fb8d138159763389b2718
Refs: #1690

View differences:

src/plugins/vigilo/inc/monitoredcomputer.class.php
67 67
            $disk->getFromDB($cd['id']);
68 68
            $total = $disk->fields['totalsize'];
69 69

  
70
            if ('' === $disk->fields['mountpoint']) {
71
                continue;
72
            }
73

  
70 74
            $this->children[] =
71 75
                        $test = new VigiloTest('Partition');
72 76

  
73 77
            // On supprime les éventuels / ou \ finaux (p.ex. "C:\").
74 78
            $mountpoint = rtrim($disk->fields['mountpoint'], '/\\');
79
            if ('' === $mountpoint) {
80
                $mountpoint = '/';
81
            }
75 82
            $mountpoint = self::escapeRegex($mountpoint);
76 83

  
77 84
            // Si présence d'un ":", il s'agit probablement d'un volume Windows.

Also available in: Unified diff