Freeze Break Request: fix nagios status.dat path

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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?

kevin
--
From 37de3e82650cbf3e9b651b3ebcf85d12e4a1bca7 Mon Sep 17 00:00:00 2001
From: Kevin Fenzi <kevin@xxxxxxxxx>
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@xxxxxxxxx>
---
 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@xxxxxxxxxxxxxxxxx"
 EMAIL_TO="sysadmin-noc-members@xxxxxxxxxxxxxxxxx"
 #EMAIL_TO="athmane@xxxxxxxxxxxxxxxxx"
-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

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
infrastructure mailing list -- infrastructure@xxxxxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to infrastructure-leave@xxxxxxxxxxxxxxxxxxxxxxx

[Index of Archives]     [Fedora Development]     [Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [KDE Users]

  Powered by Linux