Search
j0ke.net Open Build Service
>
Projects
>
server:monitoring
>
icinga-nagtrap
> nagtrap-1.5.0_plugin.patch
Sign Up
|
Log In
Username
Password
Cancel
Overview
Repositories
Revisions
Requests
Users
Advanced
Attributes
Meta
File nagtrap-1.5.0_plugin.patch of Package icinga-nagtrap (Revision 5)
Currently displaying revision
5
,
show latest
--- plugin/plugin_db.conf.orig 1970-01-01 01:00:00.000000000 +0100 +++ plugin/plugin_db.conf 2013-11-02 12:36:52.674511386 +0100 @@ -0,0 +1,6 @@ +my $dbHost = "localhost"; +my $dbName = "snmptt"; +my $dbUser = "<YOUR DB USER>"; +my $dbPass = "<YOUR DB PASSWORD>"; +my $dbTable = "snmptt"; +my $dbTableUnknown = "snmptt_unknown"; --- plugin/check_jobs.pl.in.orig 2013-11-02 12:34:30.935086664 +0100 +++ plugin/check_jobs.pl.in 2013-11-02 12:35:44.486705000 +0100 @@ -21,11 +21,7 @@ # # # ==================== Database connect information ==================== -my $dbHost = "localhost"; -my $dbName = "nagtrap"; -my $dbUser = "root"; -my $dbPass = ""; -my $dbTable = "snmptt_jobs"; +require "@sysconfdir@/plugin_db.conf"; # ==================== Debugging ==================== my $enableDebug = "0"; --- plugin/check_snmptraps.pl.in.orig 2013-11-02 12:34:21.551088535 +0100 +++ plugin/check_snmptraps.pl.in 2013-11-02 12:36:37.966708859 +0100 @@ -21,12 +21,7 @@ # # # ==================== Database connect information ==================== -my $dbHost = "localhost"; -my $dbName = "snmptt"; -my $dbUser = "<YOUR DB USER>"; -my $dbPass = "<YOUR DB PASSWORD>"; -my $dbTable = "snmptt"; -my $dbTableUnknown = "snmptt_unknown"; +require "@sysconfdir@/plugin_db.conf"; # ==================== Debugging ==================== my $enableDebug = "0"; --- plugin/Makefile.in.orig 2013-11-02 12:37:12.738512929 +0100 +++ plugin/Makefile.in 2013-11-02 12:38:01.450322856 +0100 @@ -38,6 +38,7 @@ install: for file in *.pl; \ do $(INSTALL) -m 755 $(INSTALL_OPTS) $$file $(DESTDIR)$(MONITORING_LIBEXECDIR); done + $(INSTALL) -m 644 $(INSTALL_OPTS) plugin_db.conf $(DESTDIR)$(SYSCONFDIR) clean: rm -f Makefile