checker.pl.patch
checker.pl.new 2020-07-16 11:05:26.324073264 +0200 | ||
---|---|---|
70 | 70 |
my $debuglevel : shared = 4; |
71 | 71 | |
72 | 72 |
# Plugins paths: |
73 |
my $nagiosPluginPath = 'plugins'; |
|
73 |
my $root_dir = "/usr/share/eqos/"; |
|
74 |
my $nagiosPluginPath = $root_dir."plugins"; |
|
74 | 75 | |
75 | 76 |
# database file : |
76 | 77 |
my $sqliteDatafile = '/var/lib/sqlite/eqos/eqosd.sqlite'; |
... | ... | |
310 | 311 | |
311 | 312 |
$dbh = DBI->connect("dbi:SQLite:dbname=$sqliteDatafile", "", "", { 'PrintError' => 1, 'PrintWarn' => 1, 'AutoCommit' => 1 }); |
312 | 313 |
$dbh->{'FetchHashKeyName'} = 'NAME_lc'; |
313 |
$dbh->{'unicode'} = 1; |
|
314 |
$dbh->{'sqlite_unicode'} = 1;
|
|
314 | 315 |
$dbh->do('PRAGMA synchronous = OFF'); |
315 | 316 | |
316 | 317 |
#&make_log (2, GREEN ." busy_timeout=".$dbh->func( 'busy_timeout' )); |