-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 2.0.14
-
Fix Version/s: 2.0.15
-
Component/s: Backend, Monitoring: Nagios
-
Labels:None
-
Story Points:1
-
Sprint:Sprint 17
Since the get_name method in backend/ceph/models.py raises a LookupError if the related cluster could not be found, the check_cephcluster plugin fails with this error:
openattic@dev-vinara:/srv/openattic/backend/nagios/plugins$ ./check_cephcluster <fsid> Traceback (most recent call last): File "./check_cephcluster", line 132, in <module> main() File "./check_cephcluster", line 123, in main status = ClusterStatus(CephCluster.get_status(args[0])) File "/srv/openattic/backend/ceph/models.py", line 140, in get_status return rados[fsid].mon_command(status_command) File "/srv/openattic/backend/ceph/models.py", line 55, in __getitem__ cluster_name = CephCluster.get_name(fsid) File "/srv/openattic/backend/ceph/models.py", line 125, in get_name raise LookupError() LookupError
The plugin needs to except this error, print a "CRITICAL" statement and return exit code 2.