monitoring-plugins/monitoring-plugins-README.SUSE-check_dhcp
Lars Vogdt dd6cd0cb02 Accepting request 1194151 from home:lrupp:branches:server:monitoring
- update to 2.4.0
  General
  + Use C99 booleans @RincewindsHat
  + Improve negate plugin helptext @euniceremoquillo
  + Add new test function for percentage expressions @RincewindsHat
  Single Plugins
  + check_mailq: remove trailing whitespaces @sni
  + check_mailq: unify tabs/spaces @sni
  + check_oracle: Shellcheck fixes @RincewindsHat
  + check_ups: output ups.realpower if supported @sbraz
  + check_disk: add -n short option for --ignore-missing @sni
  + check_procs: Improve help text, mentioning excluded processes @shartge
  + check_procs: Generalise wording, remove mentioning of nrpe @shartge
  + check_curl: add haproxy protocol option @emriver
  + check_disk: increase alert precision @sni
  + check_ircd: IPv6 support @oxzi
  + check_nwstat: adds percentage used space
  + check_swap: Possibility to run check_swap without thresholds @Napsty
  + check_ups: additional alarm conditions @RincewindsHat
  + check_http/check_curl: added a --regex-state option to change the state of a regex check @andreasbaumann
  General Fixes
  + Fixes for -Wsign-compare @RincewindsHat
  + Fix logic in is_uint64_t to fix type-limit warning @RincewindsHat
  + Prevent -lcrypto from showing up in Makefile dependencies @EricFromCanada
  + Change irritating NULL assignment @RincewindsHat
  Single Plugin Fixes
  + check_dbi: Compiler warning for uninitialized variable @RincewindsHat
  + check_curl: Initialize pointer before usage @RincewindsHat
  + check_ntp: Initialize intermediate results in any case @RincewindsHat
  + check_tcp: Fixes an error with using the wrong type for a variable @RincewindsHat

OBS-URL: https://build.opensuse.org/request/show/1194151
OBS-URL: https://build.opensuse.org/package/show/server:monitoring/monitoring-plugins?expand=0&rev=123
2024-08-16 14:13:03 +00:00

61 lines
1.9 KiB
Plaintext

README.SUSE for monitoring-plugins-dhcp
== check_dhcp and SuSEfirewall ==
If you run the check_dhcp script on the server, please make sure your UDP ports
67 and 68 on the _client_ are opened in the firewall. You also need to allow
to receive broadcasts for this interface. Otherwise the script will be unable
to detect anything.
Example:
If your client uses the "external" interface for the check, the entries in
/etc/sysconfig/SuSEfirewall2 should look like:
FW_SERVICES_EXT_UDP="67 68"
FW_ALLOW_FW_BROADCAST_EXT="67 68"
== Special privileges ==
To be "safe per default", SUSE doesn't install this plugin with the
suid bit set. There are two recommended ways about overriding this on
your system:
=== Set the suid bit ===
Copy the prepared permissions file from this directory to the right place
in your file system:
~ # cp /usr/share/doc/packages/monitoring-plugins-common/example/permissions.d/monitoring-plugins \
/etc/permissions.d/monitoring-plugins
...afterwards adapt the file /etc/permissions.d/monitoring-plugins to your needs
(see comments in the file) and run:
~ # SuSEconfig --module permissions
or (on newer openSUSE distributions without SuSEconfig):
~ # chkstat --system --set
This will set the correct permissions (from now on also during an update).
=== Alternative: Use sudo to grant the permission and modify your plugin config ===
This way you just need an entry like:
nagios ALL = NOPASSWD: /usr/lib/nagios/plugins/check_dhcp
in ''/etc/sudoers'' and an adapted command definition like the following:
define command{
command_name check_dhcp
command_line /usr/bin/sudo $USER1$/check_dhcp <other_options_here>
}
== Apparmor profile ==
Please check /etc/apparmor.d/usr.lib.nagios.plugins.check_dhcp if you are using
the --extra-opts option. The Apparmor profile allows to open every file below
the /etc/monitoring-plugins/ directory read only for this. All files in other
directories are not allowed.