Uploaded image for project: 'openATTIC'
  1. openATTIC
  2. OP-1462

'Check_CephPool_<fsid>_rbd.xml' could not be found

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Duplicate
    • Affects Version/s: 2.0.13
    • Fix Version/s: None
    • Component/s: Monitoring: Nagios
    • Labels:
      None

      Description

      root@dev-skrah-cassiopeia:/srv/openattic# ll /var/lib/pnp4nagios/perfdata/dev-skrah-cassiopeia.master.dns/ | grep Ceph
      -rw-rw-r-- 1 nagios nagios 4600944 Aug 30 09:12 Check_CephCluster_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef.rrd
      -rw-rw-r-- 1 nagios nagios   10301 Aug 30 09:12 Check_CephCluster_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef.xml
      root@dev-skrah-cassiopeia:/srv/openattic# tail /var/log/openattic/openattic.log      
      SystemError: XML file '/var/lib/pnp4nagios/perfdata/dev-skrah-cassiopeia.master.dns/Check_CephPool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.xml' could not be found for the cluster with FSID '3fe352aa-23b5-41a1-8700-79e4fc1dd0ef'. There are two possible reasons: a) The Ceph cluster was just added to openATTIC and 'oaconfig install' was executed. -> Please wait some time until Nagios runs again and creates the file. b) You haven't run 'oaconfig install' after adding the Ceph cluster to openATTIC -> Please run 'oaconfig install' to create all needed configuration files for Nagios.
      set_performance_data_options failed
      Traceback (most recent call last):
        File "/srv/openattic/backend/ceph/models.py", line 154, in set_performance_data_options
          ("pools", CephPool.objects.all()))
        File "/srv/openattic/backend/ceph/models.py", line 268, in _get_cluster_rrd
          xmlpath = get_xml_path(fsid, "Check_CephPool_{}_{}".format(fsid, pool.name))
        File "/srv/openattic/backend/ceph/models.py", line 260, in get_xml_path
          .format(xmlpath, fsid))
      SystemError: XML file '/var/lib/pnp4nagios/perfdata/dev-skrah-cassiopeia.master.dns/Check_CephPool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.xml' could not be found for the cluster with FSID '3fe352aa-23b5-41a1-8700-79e4fc1dd0ef'. There are two possible reasons: a) The Ceph cluster was just added to openATTIC and 'oaconfig install' was executed. -> Please wait some time until Nagios runs again and creates the file. b) You haven't run 'oaconfig install' after adding the Ceph cluster to openATTIC -> Please run 'oaconfig install' to create all needed configuration files for Nagios.
      root@dev-skrah-cassiopeia:/srv/openattic# ll /var/lib/pnp4nagios/perfdata/dev-skrah-cassiopeia.master.dns/Check_CephPool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.xml
      ls: cannot access /var/lib/pnp4nagios/perfdata/dev-skrah-cassiopeia.master.dns/Check_CephPool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.xml: No such file or directory
      root@dev-skrah-cassiopeia:/srv/openattic# 
      
      cat cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.cfg
      # Generating Host stanza for 'dev-skrah-cassiopeia.master.dns' is disabled.          
                                                                                           
                                                                                           
      define service {                                                                     
              host_name                 dev-skrah-cassiopeia.master.dns                    
              service_description       Check CephPool 3fe352aa-23b5-41a1-8700-79e4fc1dd0ef rbd    
              contact_groups            openattic_admins                                   
                                                                                           
              check_command             check_cephpool!3fe352aa-23b5-41a1-8700-79e4fc1dd0ef rbd                                                                                                               
                                                                                           
                                                                                           
              normal_check_interval     5                                                  
              retry_check_interval      1                                                  
              max_check_attempts        4                                                  
              notification_interval     0                                                  
              notification_options      w,u,c,r                                                    
              notification_period       24x7                                               
              check_period              24x7                                               
              }                                                                            
                                                                                           
       (END)       
      
      root@dev-skrah-cassiopeia:/etc/nagios3/conf.d# ls                                                                                                                                                       
      cephcluster_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef.cfg                     cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_rbd.cfg        openattic.cfg                                                     
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_cephfs_data.cfg            cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_.rgw.root.cfg  openattic_contacts.cfg                                            
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_cephfs_metadata.cfg        contacts_nagios2.cfg                                         openattic_static.cfg                                              
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_default.rgw.control.cfg    extinfo_nagios2.cfg                                          openattic_static.cfg.dpkg-new                                     
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_default.rgw.data.root.cfg  generic-host_nagios2.cfg                                     pnp4nagios.cfg                                                    
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_default.rgw.gc.cfg         generic-service_nagios2.cfg                                  services_nagios2.cfg                                              
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_default.rgw.log.cfg        hostgroups_nagios2.cfg                                       timeperiods_nagios2.cfg                                           
      cephpool_3fe352aa-23b5-41a1-8700-79e4fc1dd0ef_default.rgw.users.uid.cfg  localhost_nagios2.cfg    
      
      curl -s -u openattic http://172.16.92.210/openattic/api/ceph/3fe352aa-23b5-41a1-8700-79e4fc1dd0ef?format=json | jq '.'
      Enter host password for user 'openattic':
      {
        "fsid": "3fe352aa-23b5-41a1-8700-79e4fc1dd0ef",
        "name": "ceph",
        "health": "HEALTH_OK",
        "performance_data_options": {}
      }
      
      nagios@dev-skrah-cassiopeia:/etc/nagios3/conf.d$ tail   /var/log/nagios3/nagios.log                                                                                                                     
      [1472542245] npcdmod: Copyright (c) 2008-2009 Hendrik Baecker (andurin@process-zero.de) - http://www.pnp4nagios.org                                                                                     
      [1472542245] npcdmod: /etc/pnp4nagios/npcd.cfg initialized                                                                                                                                              
      [1472542245] npcdmod: spool_dir = '/var/spool/pnp4nagios/npcd/'.                                                                                                                                        
      [1472542245] npcdmod: perfdata file '/var/spool/pnp4nagios/nagios/perfdata.dump'.                                                                                                                       
      [1472542245] npcdmod: Ready to run to have some fun!                                                                                                                                                    
      [1472542245] Event broker module '/usr/lib/pnp4nagios/npcdmod.o' initialized successfully.                                                                                                              
      [1472542255] Warning: Return code of 127 for check of service 'Check CephPool 3fe352aa-23b5-41a1-8700-79e4fc1dd0ef .rgw.root' on host 'dev-skrah-cassiopeia.master.dns' was out of bounds. Make sure the
       plugin you're trying to run actually exists.                                                                                                                                                           
      [1472542285] Warning: Return code of 127 for check of service 'Check CephPool 3fe352aa-23b5-41a1-8700-79e4fc1dd0ef cephfs_data' on host 'dev-skrah-cassiopeia.master.dns' was out of bounds. Make sure
      he plugin you're trying to run actually exists.                                                                                                                                                         
      [1472542315] Warning: Return code of 127 for check of service 'Check CephPool 3fe352aa-23b5-41a1-8700-79e4fc1dd0ef cephfs_metadata' on host 'dev-skrah-cassiopeia.master.dns' was out of bounds. Make su
      re the plugin you're trying to run actually exists.                                                                                                                                                     
      [1472542335] Warning: Return code of 127 for check of service 'Check CephPool 3fe352aa-23b5-41a1-8700-79e4fc1dd0ef default.rgw.control' on host 'dev-skrah-cassiopeia.master.dns' was out of bounds. Mak
      e sure the plugin you're trying to run actually exists.    
      
      oaconfig  --version
      1.6.3                                           
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned
              Reporter:
              swagner Sebastian Wagner
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: