forked from geekle/sinago
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.php
More file actions
30 lines (23 loc) · 677 Bytes
/
Copy pathconfig.php
File metadata and controls
30 lines (23 loc) · 677 Bytes
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
27
28
29
30
<?php
/**
Sinago Configuration
*/
// $ROOT is set to application root.
function __autoload($class) {
global $ROOT;
include ($ROOT."/lib/" . $class . '.php');
}
// Logging
error_reporting(E_ALL);
if (isset($_GET['debug'])){
ini_set('display_errors', 1);
}
ini_set('log_errors', 1);
ini_set('error_log', $ROOT . '/log/errors.log');
// Nagios External Command File - Sinago writes the commands to this file
// e.g. /var/lib/nagios3/rw/nagios.cmd
$commandfile = $ROOT."/command.log";
// Nagios Status File - Sinago reads status information from this file
// e.g. /var/cache/nagios3/status.dat
$statusfile = $ROOT."/status.dat";
?>