ack sorry. I thought I had gotten that one.
On 14 March 2017 at 11:28, Patrick Uiterwijk <puiterwijk(a)redhat.com> wrote:
On Mon, Mar 13, 2017 at 5:21 PM, Kevin Fenzi <kevin(a)scrye.com>
wrote:
> Greetings.
>
> I noticed that our weekly script to send a note about which
> service/hosts were disabled has been failing. It has the wrong path to
> the status.dat file.
>
> Also, noc02 seems to have the wrong path in it's nagios.cfg file.
>
> This patch fixes both of those issues. Along with applying this, I
> would want to run the ansible playbook over noc01/02.
>
> +1s?
ack
>
> kevin
> --
> From 37de3e82650cbf3e9b651b3ebcf85d12e4a1bca7 Mon Sep 17 00:00:00 2001
> From: Kevin Fenzi <kevin(a)scrye.com>
> Date: Mon, 13 Mar 2017 17:16:42 +0000
> Subject: [PATCH] fix path to nagios status.dat file for cron script and also
> on noc02
>
> Signed-off-by: Kevin Fenzi <kevin(a)scrye.com>
> ---
> roles/nagios/server/files/check_nagios_notifications.py | 2 +-
> roles/nagios/server/files/nagios-external/nagios.cfg | 2 +-
> 2 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/roles/nagios/server/files/check_nagios_notifications.py
b/roles/nagios/server/files/check_nagios_notifications.py
> index 7e66202..574df43 100755
> --- a/roles/nagios/server/files/check_nagios_notifications.py
> +++ b/roles/nagios/server/files/check_nagios_notifications.py
> @@ -17,7 +17,7 @@ debug = 0
> EMAIL_FROM="nagios(a)fedoraproject.org"
> EMAIL_TO="sysadmin-noc-members(a)fedoraproject.org"
> #EMAIL_TO="athmane(a)fedoraproject.org"
> -nagios_status_file = '/var/log/nagios/status.dat'
> +nagios_status_file = '/var/spool/nagios/status.dat'
>
> class NagiosStatus:
> def __init__(self, filename):
> diff --git a/roles/nagios/server/files/nagios-external/nagios.cfg
b/roles/nagios/server/files/nagios-external/nagios.cfg
> index f75acc8..df31a8c 100644
> --- a/roles/nagios/server/files/nagios-external/nagios.cfg
> +++ b/roles/nagios/server/files/nagios-external/nagios.cfg
> @@ -107,7 +107,7 @@ resource_file=/etc/nagios/private/resource.cfg
> # The contents of the status file are deleted every time Nagios
> # restarts.
>
> -status_file=/var/log/nagios/status.dat
> +status_file=/var/spool/nagios/status.dat
>
>
>
> --
> 1.8.3.1
>
> _______________________________________________
> infrastructure mailing list -- infrastructure(a)lists.fedoraproject.org
> To unsubscribe send an email to infrastructure-leave(a)lists.fedoraproject.org
>
_______________________________________________
infrastructure mailing list -- infrastructure(a)lists.fedoraproject.org
To unsubscribe send an email to infrastructure-leave(a)lists.fedoraproject.org
--
Stephen J Smoogen.