Source: syslog-nagios-bridge Version: 1.0.1-4 Severity: normal Tags: patch Dear Maintainer,
Please update your package to deal with the nagios3 removal from Debian (#845765). Consider applying the attached patch. Kind Regards, Bas
diff -Nru syslog-nagios-bridge-1.0.1/debian/changelog syslog-nagios-bridge-1.0.1/debian/changelog --- syslog-nagios-bridge-1.0.1/debian/changelog 2014-08-03 18:35:25.000000000 +0200 +++ syslog-nagios-bridge-1.0.1/debian/changelog 2016-12-03 19:07:09.000000000 +0100 @@ -1,3 +1,10 @@ +syslog-nagios-bridge (1.0.1-4.1) UNRELEASED; urgency=medium + + * Non-maintainer upload. + * Use Icinga instead of Nagios (nagios3 removed from Debian) + + -- Bas Couwenberg <[email protected]> Sat, 03 Dec 2016 19:06:44 +0100 + syslog-nagios-bridge (1.0.1-4) unstable; urgency=low * Update pynag dependency to 0.9.1 or greater, fixing file_time bug. diff -Nru syslog-nagios-bridge-1.0.1/debian/control syslog-nagios-bridge-1.0.1/debian/control --- syslog-nagios-bridge-1.0.1/debian/control 2014-08-03 18:34:06.000000000 +0200 +++ syslog-nagios-bridge-1.0.1/debian/control 2016-12-03 19:05:30.000000000 +0100 @@ -11,7 +11,7 @@ Package: syslog-nagios-bridge Architecture: any -Depends: ${misc:Depends}, python, nagios3 | icinga, python-pynag (>= 0.9.1), python-netsyslog +Depends: ${misc:Depends}, python, icinga, python-pynag (>= 0.9.1), python-netsyslog Description: Syslog to Nagios integration syslog-nagios-bridge brings Syslog and Nagios together, listening for Syslog events from the network, determining when they meet an error diff -Nru syslog-nagios-bridge-1.0.1/debian/dirs syslog-nagios-bridge-1.0.1/debian/dirs --- syslog-nagios-bridge-1.0.1/debian/dirs 2014-08-02 12:31:03.000000000 +0200 +++ syslog-nagios-bridge-1.0.1/debian/dirs 2016-12-03 19:05:52.000000000 +0100 @@ -1,2 +1,3 @@ -etc/nagios3 -etc/nagios3/syslog.d +etc/icinga +etc/icinga/objects +etc/icinga/objects/syslog.d diff -Nru syslog-nagios-bridge-1.0.1/debian/install syslog-nagios-bridge-1.0.1/debian/install --- syslog-nagios-bridge-1.0.1/debian/install 2014-08-02 12:30:44.000000000 +0200 +++ syslog-nagios-bridge-1.0.1/debian/install 2016-12-03 19:05:58.000000000 +0100 @@ -1,2 +1,2 @@ usr/bin/syslog-nagios-bridge -syslog-bridge.conf etc/nagios3/ +syslog-bridge.conf etc/icinga/ diff -Nru syslog-nagios-bridge-1.0.1/debian/patches/icinga.patch syslog-nagios-bridge-1.0.1/debian/patches/icinga.patch --- syslog-nagios-bridge-1.0.1/debian/patches/icinga.patch 1970-01-01 01:00:00.000000000 +0100 +++ syslog-nagios-bridge-1.0.1/debian/patches/icinga.patch 2016-12-03 19:06:11.000000000 +0100 @@ -0,0 +1,88 @@ +Description: Use Icinga instead of Nagios. +Author: Bas Couwenberg <[email protected]> + +--- a/README.txt ++++ b/README.txt +@@ -26,7 +26,7 @@ Installation + + Copy syslog-nagios-bridge.py to a suitable location (e.g. /usr/local/bin) + +-Copy the configuration file to a suitable location (e.g. /etc/nagios3) ++Copy the configuration file to a suitable location (e.g. /etc/icinga) + + Update the config file settings + +@@ -41,11 +41,11 @@ For example, append the following to /et + Make sure the port number matches the "bind_port" in syslog-bridge.conf + + syslog-nagios-bridge.py automatically creates service definitions for each syslog +-tag name that it detects. It can put them directly into the nagios configuration directories ++tag name that it detects. It can put them directly into the Icinga configuration directories + or it can generate them in some other place and you can copy them over manually. + +-In any case, for Nagios to report on a particular host/syslog tag, there must be +-a corresponding service definition in /etc/nagios3/conf.d/whatever.cfg. To alert ++In any case, for Icinga to report on a particular host/syslog tag, there must be ++a corresponding service definition in /etc/icinga/objects/whatever.cfg. To alert + on errors from the httpd process, you may use the following: + + define service{ +@@ -59,17 +59,17 @@ define service{ + } + + After doing the configuration, start the bridge and restart/reload the +-syslog daemon and Nagios itself: ++syslog daemon and Icinga itself: + + # su - nagios -c /usr/local/bin/syslog-nagios-bridge.py + # service rsyslog restart +-# service nagios3 reload ++# service icinga reload + + The relevant services will go into the CRITICAL state after error events +-are detected by syslog-nagios-bridge. Nagios has no way to know when ++are detected by syslog-nagios-bridge. Icinga has no way to know when + the logs have been checked and whether anybody has taken action to + correct the errors. Consequently, the services will remain in the CRITICAL +-state indefinitely. A user must go into the Nagios web interface ++state indefinitely. A user must go into the Icinga web interface + and use the option "Submit passive check result for this service" + to put the service back in the OK state. Normally this is only done + after manually investigating the error. +--- a/syslog-bridge.conf ++++ b/syslog-bridge.conf +@@ -1,7 +1,7 @@ + + # Log file for our own activity. If not specified, syslog is used. + # (take care to avoid a feedback loop!) +-log_file = "/var/log/nagios3/syslog-bridge.log" ++log_file = "/var/log/icinga/syslog-bridge.log" + + # Default level is WARNING + # (take care to avoid a feedback loop!) +@@ -11,11 +11,11 @@ log_file = "/var/log/nagios3/syslog-brid + bind_port = 30514 + + # The check_result_path configured in nagios.cfg: +-checkresult_dir = "/var/lib/nagios3/spool/checkresults" ++checkresult_dir = "/var/lib/icinga/spool/checkresults" + +-# A directory where generated service defintion files can be ++# A directory where generated service definition files can be + # placed. +-svc_def_dir = "/etc/nagios3/syslog.d" ++svc_def_dir = "/etc/icinga/objects/syslog.d" + + # Generated service definitions should inherit from this template: + svc_tmpl = "generic-service" +--- a/syslog-nagios-bridge.py ++++ b/syslog-nagios-bridge.py +@@ -210,7 +210,7 @@ if __name__ == '__main__': + "config_file", + nargs="?", + help="configuration file", +- default="/etc/nagios3/syslog-bridge.conf") ++ default="/etc/icinga/syslog-bridge.conf") + args = parser.parse_args() + + # read the configuration file diff -Nru syslog-nagios-bridge-1.0.1/debian/patches/series syslog-nagios-bridge-1.0.1/debian/patches/series --- syslog-nagios-bridge-1.0.1/debian/patches/series 1970-01-01 01:00:00.000000000 +0100 +++ syslog-nagios-bridge-1.0.1/debian/patches/series 2016-12-03 18:58:16.000000000 +0100 @@ -0,0 +1 @@ +icinga.patch diff -Nru syslog-nagios-bridge-1.0.1/debian/postinst syslog-nagios-bridge-1.0.1/debian/postinst --- syslog-nagios-bridge-1.0.1/debian/postinst 2014-08-02 12:52:33.000000000 +0200 +++ syslog-nagios-bridge-1.0.1/debian/postinst 2016-12-03 19:06:17.000000000 +0100 @@ -10,7 +10,7 @@ exit 1 fi -ETC_DIR=/etc/nagios3/syslog.d +ETC_DIR=/etc/icinga/objects/syslog.d if [ ! -d ${ETC_DIR} ]; then mkdir -p ${ETC_DIR}

