Skip to content

Commit 8f4bef4

Browse files
authored
Merge pull request #1389 from liangxin1300/20240415_drop_nagios
Dev: Drop nagios related code, the help text, and the man page
2 parents 7c80f38 + 09b5c8e commit 8f4bef4

File tree

6 files changed

+1
-18
lines changed

6 files changed

+1
-18
lines changed

crmsh/config.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -270,7 +270,6 @@ def get(self, value):
270270
'pe_state_dir': opt_dir('%(varlib)s/pacemaker/pengine'),
271271
'heartbeat_dir': opt_dir('%(varlib)s/heartbeat'),
272272
'hb_delnode': opt_program('', ('%(datadir)s/heartbeat/hb_delnode',)),
273-
'nagios_plugins': opt_dir('%(libdir)s/nagios/plugins'),
274273
'hawk_wizards': opt_dir('%(wwwdir)s/hawk/config/wizard'),
275274
},
276275
'color': {

crmsh/ra.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def ra_classes():
5151
if can_use_crm_resource():
5252
l = crm_resource("--list-standards")
5353
else:
54-
l = ["heartbeat", "lsb", "nagios", "ocf", "stonith", "systemd"]
54+
l = ["heartbeat", "lsb", "ocf", "stonith", "systemd"]
5555
l.sort()
5656
return cache.store("ra_classes", l)
5757

@@ -125,9 +125,6 @@ def systemd_types():
125125
l = os_types_list("/etc/init.d/*")
126126
elif ra_class == "stonith":
127127
l = stonith_types()
128-
elif ra_class == "nagios":
129-
l = [x.replace("check_", "")
130-
for x in os_types_list("%s/check_*" % config.path.nagios_plugins)]
131128
elif ra_class == "systemd":
132129
l = systemd_types()
133130
l = list(set(l))
@@ -184,9 +181,6 @@ def ra_meta(ra_class, ra_type, ra_provider):
184181
_rc, l = stdout2list("/usr/sbin/%s -o metadata" % ra_type)
185182
else:
186183
_rc, l = stdout2list("stonith -m -t %s" % ra_type)
187-
elif ra_class == "nagios":
188-
_rc, l = stdout2list("%s/check_%s --metadata" %
189-
(config.path.nagios_plugins, ra_type))
190184
return l
191185

192186

doc/crm.8.adoc

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3065,11 +3065,6 @@ Grouped resources are started in the order they appear in the group,
30653065
and stopped in the reverse order. If a resource in the group cannot
30663066
run anywhere, resources following it in the group will not start.
30673067

3068-
`group` can be passed the "container" meta attribute, to indicate that
3069-
it is to be used to group VM resources monitored using Nagios. The
3070-
resource referred to by the container attribute must be of type
3071-
`ocf:heartbeat:Xen`, `ocf:heartbeat:VirtualDomain` or `ocf:heartbeat:lxc`.
3072-
30733068
Usage:
30743069
...............
30753070
group <name> <rsc> [<rsc>...]
@@ -3083,8 +3078,6 @@ Example:
30833078
...............
30843079
group internal_www disk0 fs0 internal_ip apache \
30853080
meta target_role=stopped
3086-
3087-
group vm-and-services vm vm-sshd meta container="vm"
30883081
...............
30893082

30903083
[[cmdhelp_configure_load,import the CIB from a file]]

doc/website-v1/configuration.adoc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,6 @@ crm_dtd_dir = /usr/share/pacemaker
7373
pe_state_dir = /var/lib/pacemaker/pengine
7474
heartbeat_dir = /var/lib/heartbeat
7575
hb_delnode = /usr/share/heartbeat/hb_delnode
76-
nagios_plugins = /usr/lib64/nagios/plugins
7776
7877
[color]
7978
style = color

etc/crm.conf.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,6 @@ ocf_root = @OCF_ROOT_DIR@
5151
; pe_state_dir = <detected>
5252
; heartbeat_dir = <detected>
5353
; hb_delnode = /usr/share/heartbeat/hb_delnode
54-
; nagios_plugins = /usr/lib/nagios/plugins
5554

5655
; [color]
5756
; style = color

test/unittests/test.conf

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ crm_dtd_dir = .
99
pe_state_dir = .
1010
heartbeat_dir = .
1111
hb_delnode = ./hb_delnode
12-
nagios_plugins = .

0 commit comments

Comments
 (0)