1 include ..
/..
/Makefile.omd
7 SRCDIR
= $(NAME
)-$(VERSION
)
8 ROOTDIR
= \\\
$$ENV{OMD_ROOT
}
9 SITE
= \\\
$$ENV{OMD_SITE
}
10 TESTDIR
= ..
/..
/t
/packages
/check_multi
/t
13 #--with-nagios-name=<nagios|icinga> set nagios name (there might be some clones ;)) (default:nagios)
14 #--with-action_url="$(OMD_SITE)/pnp4nagios/index.php/graph?host=\\\$$HOSTNAME\\\$$&srv=\\\$$SERVICEDESC\\\$$"
16 --libexecdir
="$(ROOTDIR)/lib/nagios/plugins" \
17 --prefix="$(ROOTDIR)" \
18 --with-action_mouseover
=1 \
19 --with-add_tag_to_list_entries
=0 \
20 --with-cancel_before_global_timeout
=0 \
21 --with-checkresults_dir
="$(ROOTDIR)/tmp/nagios/checkresults" \
22 --with-child_interval
=0.0 \
23 --with-child_timeout
=11 \
24 --with-client_perl
="/usr/bin/perl" \
25 --with-cmdfile_update_interval
=86400 \
27 --with-complain_unknown_macros
=1 \
28 --with-config_dir
="$(ROOTDIR)/etc/$(NAME)" \
29 --with-cumulate_ignore_zero
=1 \
30 --with-cumulate_max_rows
=5 \
31 --with-empty_output_is_unknown
=1 \
32 --with-ethtool
="/sbin/ethtool" \
34 --with-extended_perfdata
=1 \
35 --with-extinfo_in_status
=0 \
36 --with-feed_passive_autocreate
=0 \
37 --with-feed_passive_dir
="$(ROOTDIR)/etc/$(NAME)/feed_passive" \
38 --with-feed_passive_dir_permissions
=0750 \
40 --with-file_extension
="cmd" \
41 --with-html_ascii_notification
=0 \
42 --with-ignore_missing_cmd_file
=0 \
43 --with-illegal_chars
="\r" \
44 --with-image_path
="/$(SITE)/nagios/images" \
46 --with-indent_label
=1 \
47 --with-livestatus
="$(ROOTDIR)/tmp/run/live" \
48 --with-loose_perfdata
=1 \
50 --with-nagios-user
=$(SITE
) \
51 --with-nagios-group
=$(SITE
) \
52 --with-no_checks_rc
=3 \
53 --with-notes_url
="/${SITE}/wiki/doku.php?id=start&idx=none" \
54 --with-objects_cache
="$(ROOTDIR)/var/nagios/objects.cache" \
55 --with-objects_cache_delimiter
="," \
56 --with-omd_environment
=1 \
57 --with-parent_timeout
=60 \
58 --with-perfdata_pass_through
=0 \
60 --with-plugin_path
="$(ROOTDIR)/lib/nagios/plugins" \
61 --with-pnp_add2url
="" \
62 --with-pnp_url
="/$(SITE)/pnp4nagios" \
63 --with-pnp_version
=0.6 \
65 --with-report_inherit_mask
=-1 \
67 --with-snmp_community
="public" \
68 --with-snmp_port
=161 \
69 --with-status_dat
="$(ROOTDIR)/tmp/nagios/status.dat" \
70 --with-style_plus_minus
="" \
71 --with-tag_notes_link
="" \
72 --with-target
="_self" \
73 --with-tmp_dir
="$(ROOTDIR)/tmp/check_multi" \
74 --with-tmp_dir_permissions
=01777 \
75 --with-tmp_etc
="$(ROOTDIR)/tmp/check_multi/etc" \
78 tar xzf
$(NAME
)-latest-
$(VERSION
).
tar.gz
79 cd
$(SRCDIR
) ; .
/configure
$(CONFIGUREOPTS
)
80 $(MAKE
) -C
$(SRCDIR
) all
84 test -d
$(DESTDIR
)$(OMD_ROOT
)/lib
/nagios
/plugins || \
85 mkdir
-p
$(DESTDIR
)$(OMD_ROOT
)/lib
/nagios
/plugins
86 install -m
755 $(SRCDIR
)/plugins
/check_multi
$(DESTDIR
)$(OMD_ROOT
)/lib
/nagios
/plugins
89 test -d
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/check_multi || \
90 mkdir
-p
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/check_multi
91 install -m
644 $(SRCDIR
)/README
$(DESTDIR
)$(OMD_ROOT
)/share
/doc
/check_multi
93 #--- allow to find testdir in plugin directory
94 test -L check_multi || ln
-s
$(SRCDIR
) check_multi
97 # Optional target called to create additional files below skel
103 $(MAKE
) build
&& $(MAKE
) install
106 #wget --no-clobber my-plugin.de/check_multi/check_multi-stable-$(VERSION).tar.gz
107 wget
--no-clobber my-plugin.de
/check_multi
/check_multi-latest.
tar.gz
110 #rm check_multi-stable-$(VERSION).tar.gz
111 #wget --no-clobber my-plugin.de/check_multi/check_multi-stable-$(VERSION).tar.gz
112 rm check_multi-latest-
$(VERSION
).
tar.gz
113 wget
--no-clobber my-plugin.de
/check_multi
/check_multi-latest.
tar.gz