Announcement

Collapse
No announcement yet.

check_snmp_storage.pl and graph

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • check_snmp_storage.pl and graph

    Hello,

    I want to monitor and graphe multiple disk in one check, and I only found check_snmp_storage.pl that could do that.

    I run it fine, perfdata are reliable :
    Code:
    Performance Data        '/mnt/disk1'=4149395MB;4873983;4978800;0;5240842 '/mnt/disk2'=3938774MB;4873983;4978800;0;5240842 '/mnt/disk3'=4244850MB;4873983;4978800;0;5240842 '/mnt/disk4'=4267812MB;4873983;4978800;0;5240842
    But when I want to show the graph, the values are very ... strange :
    Storage-data.jpg

    What am I missing ?

    Regards

  • #2
    OK, some more details :

    I've checked the data a bit closer, and it seems to be a "unit" problem :

    4149395MB will show on the graph as 3.96M : 4149395 /1024 /1024 = 3.96
    3938774MB will show on the graph as 3.46M : 3938774 /1024 /1024 = 3.76
    ...

    So, it seems the [UOM] is not treated correctly, because "MB" is a legal value, according to https://nagios-plugins.org/doc/guidelines.html#AEN200

    Is it a problem with rrdtool ? or centreon ?

    Regards

    Comment


    • #3
      Hi,

      I've checked a bit further in the "metrics", and the min/max (0;5240842) values seem not to ke kept between the perfdata and the rrd file :

      /mnt/disk1'=4149395MB;4873980;4978800;0;5240842

      Code:
      # rrdtool info 1031.rrd 
      filename = "1031.rrd"
      rrd_version = "0003"
      step = 300
      last_update = 1421143786
      header_size = 792
      ds[value].index = 0
      ds[value].type = "GAUGE"
      ds[value].minimal_heartbeat = 3000
      ds[value].min = NaN
      ds[value].max = NaN
      ds[value].last_ds = "3127748"
      ds[value].value = 8.9453592800e+08
      ds[value].unknown_sec = 0
      rra[0].cf = "AVERAGE"
      rra[0].rows = 51840
      rra[0].cur_row = 38496
      rra[0].pdp_per_row = 1
      rra[0].xff = 5.0000000000e-01
      rra[0].cdp_prep[0].value = NaN
      rra[0].cdp_prep[0].unknown_datapoints = 0
      rra[1].cf = "AVERAGE"
      rra[1].rows = 4320
      rra[1].cur_row = 41
      rra[1].pdp_per_row = 12
      rra[1].xff = 5.0000000000e-01
      rra[1].cdp_prep[0].value = 3.1277880400e+06
      rra[1].cdp_prep[0].unknown_datapoints = 0
      centStorage_metric2.jpg

      I've been thinking of creating my own graph like the following one :

      graph_multiple_vol.jpg

      but if min/max are not stored, I'm running out of idea...

      Any help appreciated...
      Regards

      Comment


      • #4
        Hello,



        Based on the values of performance data, your partitions are terabytes. Is it really okay?

        Regards.
        /!\Pas de support en message privé - No support in private message/!\

        "Il se faut entraider, c'est la loi de la nature." © Jean de La Fontaine

        Comment


        • #5
          Yes, it is actually TeraBytes volumes:

          Code:
          $ df -hP
          Sys. fich.                                             Taille Util. Dispo Uti% Monté sur
           dev/sdb                                                 5,0T  2,9T  2,2T  57% /mnt/disk1
           /dev/sdc                                                 5,0T  3,5T  1,6T  70% /mnt/disk2
           /dev/sdd                                                 5,0T  3,2T  1,9T  63% /mnt/disk3

          Comment

          Working...
          X