File: use-correct-path-to-status.dat

package info (click to toggle)
libnagios-object-perl 0.21.20-2.1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,040 kB
  • sloc: perl: 3,198; makefile: 9
file content (26 lines) | stat: -rw-r--r-- 786 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
Description: Fix the man page to show the path of where Debian's
 Nagios puts its status.dat.
Origin: vendor
Author: Ryan Niebur <ryan@debian.org>
Reviewed-by: Salvatore Bonaccorso <carnil@debian.org>
Last-Update: 2010-12-22
Forwarded: not-needed

--- a/lib/Nagios/StatusLog.pm
+++ b/lib/Nagios/StatusLog.pm
@@ -130,13 +130,13 @@
 
  # for Nagios v2.0
  my $log = Nagios::StatusLog->new(
-                Filename => "/var/opt/nagios/status.dat",
+                Filename => "/var/cache/nagios2/status.dat",
                 Version  => 2.0
            );
 
  # for Nagios v3.0
  my $log = Nagios::StatusLog->new(
-                Filename => "/var/opt/nagios/status.dat",
+                Filename => "/var/cache/nagios3/status.dat",
                 Version  => 3.0
            );