We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 43e4fb3 commit 8532d69Copy full SHA for 8532d69
Specialized Areas/CMDB/CMDB Health Check/health_check.js
@@ -0,0 +1,10 @@
1
+var ga = new GlideAggregate('cmdb_ci_appl');
2
+ga.addQuery('operational_status', 2); // Non-operational
3
+ga.addQuery('install_status', 1); // Installed
4
+ga.addAggregate('COUNT');
5
+ga.query();
6
+var total = 0;
7
+if (ga.next()) {
8
+ total = ga.getAggregate('COUNT');
9
+}
10
+gs.info('Application CIs installed but not in operational count: ' + total);
0 commit comments