lp:~xavpaice/charm-nrpe

Owned by Xav Paice
Get this repository:
git clone https://git.launchpad.net/~xavpaice/charm-nrpe
Only Xav Paice can upload to this repository. If you are Xav Paice please log in for upload directions.

Branches

Name Last Modified Last Commit
LP1971156 2022-05-03 06:28:05 UTC
update run-nrpe-check action for quoted args

Author: Xav Paice
Author Date: 2022-05-03 06:28:05 UTC

update run-nrpe-check action for quoted args

lp1970775 2022-04-29 02:18:29 UTC
ensure permissions on plugins are correct

Author: Xav Paice
Author Date: 2022-04-29 02:04:30 UTC

ensure permissions on plugins are correct

1970360 2022-04-26 04:20:28 UTC
update mode of nagios_plugin3.py

Author: Xav Paice
Author Date: 2022-04-26 04:20:28 UTC

update mode of nagios_plugin3.py

update_docs 2022-03-08 04:07:11 UTC
update docs for nagios_master config

Author: Xav Paice
Author Date: 2022-03-08 04:07:11 UTC

update docs for nagios_master config

lp1964027 2022-03-08 01:44:25 UTC
Use rsync only if required

Author: Xav Paice
Author Date: 2022-03-07 22:20:45 UTC

Use rsync only if required

Only install rsync if export_nagios_definitions=True.
Do not use rsync if nagios_master is set but
export_nagios_definitions=False.

Previously if nagios_master is set, the charm behaves as if
export_nagios_definitions=True, however there are circumstances
requiring nagios_master to be set that do not require the rsync service
to be configured.

Fixes-bug: LP:#1964027

add_charmcraft 2022-03-03 21:06:50 UTC
Remove version from charmcraft

Author: Xav Paice
Author Date: 2022-03-03 21:06:50 UTC

Remove version from charmcraft

Because there is no means to automate the version file in charmcraft, we
cannot expect auto builds using Launchpad recipes to get the version
file correct. For now, remove it from charmcraft.yaml to allow auto
builds in Launchpad to complete.

fix_lint 2022-01-31 21:18:29 UTC
Fix lint issues

Author: Xav Paice
Author Date: 2022-01-31 04:21:23 UTC

Fix lint issues

Black no longer supports Python 2.7, remove NRPE plugin to resolve.
Add Black formatting verification for tests.
Update charmhelpers.

Also add --keep-faulty-model to functests

charmhelpers-update 2021-09-27 02:18:35 UTC
update charmhelpers

Author: Xav Paice
Author Date: 2021-09-27 02:18:35 UTC

update charmhelpers

lp1937888-2 2021-09-24 02:39:38 UTC
Add target-address to relation data

Author: Xav Paice
Author Date: 2021-09-24 02:39:38 UTC

Add target-address to relation data

The Nagios charm makes use of a relation-data item named target-address,
which is used for connections from Nagios to the remote unit (NRPE).
If target-address is not set, Nagios then uses ingress-address, and if
that's not set, private-address. Both ingress-address and
private-address are automatically set by Juju, but updated by the nrpe
charm.

This change adds target-address to the relation data which is controlled
by the NRPE charm from the start, as under some circumstances the
ingress-address is overwritten by Juju.

lp1937888 2021-09-20 05:42:56 UTC
Remove pre-Juju 2.3 support for ingress

Author: Xav Paice
Author Date: 2021-09-20 05:42:56 UTC

Remove pre-Juju 2.3 support for ingress

Determines the ingress address using info only avaialbe after Juju 2.3
was released.

update_tests 2021-07-30 02:58:51 UTC
Add submodules to build step

Author: Xav Paice
Author Date: 2021-07-30 02:58:51 UTC

Add submodules to build step

bug/1925278 2021-04-22 01:21:01 UTC
Add python-openstackclient to functests

Author: Xav Paice
Author Date: 2021-04-22 01:21:01 UTC

Add python-openstackclient to functests

Since b46f13ef113e690493364dabc87821699626d8e6 in zaza, if running tests
on an OpenStack cloud provider, each bundle test concludes with a
cleanup routine that needs the python-openstackclient package in
requirements.txt for the tox environment, plus the OS_ environment vars
exported/passed through such that the Openstack client actually works.
If these are not set, the test fails on the first bundle cleanup and
does not continue to the remaining bundles.

bug/1924960 2021-04-19 23:17:17 UTC
Update check_netns.sh when id is included

Author: Xav Paice
Author Date: 2021-04-19 23:17:17 UTC

Update check_netns.sh when id is included

On systems where net namespaces have an ID associated, the output of
ip netns list includes that information. This change updates the means
to collect the list of namespaces to just include the names.

bug/1924959 2021-04-19 22:33:45 UTC
Update check_status_file.py for py3

Author: Xav Paice
Author Date: 2021-04-19 22:33:45 UTC

Update check_status_file.py for py3

The Nagios plugin check_status_file.py was not compatible with Python 3,
changed what is needed to allow this to run with Python v3.

relation-assertion 2020-07-30 00:35:57 UTC
Add support for empty nagios_master config

Author: Xav Paice
Author Date: 2020-07-30 00:35:57 UTC

Add support for empty nagios_master config

The default setting for nagios_master is "None" (string). This adds
support for that to be the empty string and the (unlikely) event that
it's set to None.

master-check-lacpdu 2020-07-27 01:43:54 UTC
Lint and rebase fixes for LACPDU check

Author: Xav Paice
Author Date: 2020-07-26 22:31:29 UTC

Lint and rebase fixes for LACPDU check

dev/check_mtu 2020-07-26 21:58:10 UTC
minor rework on check_mtu.py

Author: Xav Paice
Author Date: 2020-07-26 21:32:21 UTC

minor rework on check_mtu.py

Adjust some wording and layout in response to review feedback for the
check_mtu.py NRPE check.

bug/1824882 2020-03-11 00:30:50 UTC
Add NRPE check for readonly filesystems

Author: Xav Paice
Author Date: 2020-03-06 03:22:15 UTC

Add NRPE check for readonly filesystems

Adds check_ro_filesystem check, looping all filesystems and alerting
CRITICAL if they're readonly. Only applies to non-container units.

Closes-Bug: #1824882

bug/1742669 2020-03-03 02:24:11 UTC
Add nrpe.d files for local monitors

Author: Xav Paice
Author Date: 2020-03-03 02:24:11 UTC

Add nrpe.d files for local monitors

Reviews the 'monitors' config item for local checks, and adds the nrpe.d
files so that they're implemented.

Closes-Bug: #1742669

revert-9edfedcf38d9507685097fb397986802193301ce 2020-02-17 01:57:47 UTC
Revert "hooks/nrpe_helpers.py: fix yaml.load warning"

Author: Xav Paice
Author Date: 2020-02-17 01:57:47 UTC

Revert "hooks/nrpe_helpers.py: fix yaml.load warning"

This reverts commit 9edfedcf38d9507685097fb397986802193301ce.

nrpe-address 2019-06-13 05:54:03 UTC
add config param for Nagios hosts we cannot specify via relation

Author: Xav Paice
Author Date: 2019-06-13 05:54:03 UTC

add config param for Nagios hosts we cannot specify via relation

xfs_checks 2019-05-16 02:48:18 UTC
Fix check_xfs_errors

Author: Xav Paice
Author Date: 2019-05-16 02:48:18 UTC

Fix check_xfs_errors

There was a bug in check_xfs_errors where the time comparison failed,
and so any xfs errors in dmesg would alert regardless of how old.

lp1822901 2019-04-10 05:37:58 UTC
Change defaults for check_swap_activity

Author: Xav Paice
Author Date: 2019-04-10 05:37:58 UTC

Change defaults for check_swap_activity

The check_swap_activity alert was paging for just about any use of swap,
but Linux is supposed to use swap at least sometimes. This change
increases the default to be more likely to page only when swap is
thrashing.

Closes-bug: #1822901

arp_cache 2019-03-13 21:08:52 UTC
Add check_arp_cache

Author: Xav Paice
Author Date: 2019-03-11 08:54:33 UTC

Add check_arp_cache

Adds a new default check for non-container units that compares the
number of arp entries against the kernel limits configured, and alerts
if >80%.

xfs_checks_default_off 2017-11-21 21:28:41 UTC
[trivial] switch check_xfs to default to off

Author: Xav Paice
Author Date: 2017-11-21 21:28:41 UTC

[trivial] switch check_xfs to default to off

lp1730567 2017-11-07 06:50:28 UTC
Fix LP: #1730567 and updated config.yaml docs

Author: Xav Paice
Author Date: 2017-11-07 06:50:28 UTC

Fix LP: #1730567 and updated config.yaml docs

individual_checks 2017-11-07 03:47:52 UTC
Make some default checks optional

Author: Xav Paice
Author Date: 2017-11-06 20:25:29 UTC

Make some default checks optional

Some of the checks (e.g. check_disk_root) are not valuable on lxd units,
this change adds a few config options to disable more of the checks.

machine-id 2017-10-10 16:33:15 UTC
[xavpaice] added machine_id to monitors relation data

Author: Xav Paice
Author Date: 2017-10-10 16:33:15 UTC

[xavpaice] added machine_id to monitors relation data

lp1712977 2017-08-28 23:34:05 UTC
Update charmhelpers

Author: Xav Paice
Author Date: 2017-08-28 23:34:05 UTC

Update charmhelpers

Collect rev 786 of charmhelpers which fixes lp1712977

lp1711473 2017-08-18 04:46:51 UTC
Add nagios_host_context to hostname when nagios_hostname_type is host.

Author: Xav Paice
Author Date: 2017-08-18 04:37:58 UTC

Add nagios_host_context to hostname when nagios_hostname_type is host.

update_charmhelpers 2017-08-11 01:02:14 UTC
Update charmhelpers

Author: Xav Paice
Author Date: 2017-08-11 01:02:14 UTC

Update charmhelpers

With Juju 2.1.x in some cases the upgrade of nrpe will fail, this update
fixes that problem.

fix_conntrack 2017-07-31 02:34:13 UTC
[xavpaice, r=] add condition to conntrack check

Author: Xav Paice
Author Date: 2017-07-31 02:34:13 UTC

[xavpaice, r=] add condition to conntrack check

The conntrack check has a test to determine if the module is loaded, but
in some LXD environments the module is loaded but we still can't read
conntrack_max. This adds an extra condition to reduce the nagios noise.

lp-1659728 2017-02-19 22:28:29 UTC
[xavpaice] return OK if nf_conntrack_max not present

Author: Xav Paice
Author Date: 2017-02-19 22:28:29 UTC

[xavpaice] return OK if nf_conntrack_max not present

master 2017-02-19 21:24:51 UTC
[xavpaice] charmhelpers sync incl osplatform

Author: Xav Paice
Author Date: 2017-02-19 21:24:51 UTC

[xavpaice] charmhelpers sync incl osplatform

134 of 34 results
This repository contains Public information 
Everyone can see this information.

Subscribers