false, 'ip' => '10.93.253.2/32'); // MUSTLISTEN $mustlisten[] = 'tcp6/:::22'; $mustlisten[] = 'tcp/127.0.0.1:53'; $mustlisten[] = 'tcp6/:::80'; $mustlisten[] = 'tcp/91.191.155.10:443'; $mustlisten[] = 'udp/127.0.0.1:53'; $mustlisten[] = 'tcp/0.0.0.0:4949'; // CHECKMOUNTS // ATTENTION : checkmounts n'est executé que si "warnings" (de l'url) n'est pas à "yes" checkmounts('proc', '/proc', 'proc'); checkmounts('sysfs', '/sys', 'sysfs'); checkmounts('udev', '/dev', 'tmpfs'); checkmounts('devpts', '/dev/pts', 'devpts'); checkmounts('/dev/ram0', '/', 'tmpfs'); checkmounts('binfmt_misc', '/proc/sys/fs/binfmt_misc', 'binfmt_misc'); checkmounts('/dev/sda3', '/', 'ext3'); checkmounts('/dev/sda4', '/home', 'ext3'); /* NEW SYNTAX */ $test_diskfree_args = $test_io_args = $test_mysql_args = $test_raid_args = $test_smart_args = $test_supervise_args = $extra_tests = $extra_tests_warnings = $test_postgres_args = array(); $basepath = '/home/sdfrance/www'; $disabling_by_file = FALSE; // check of $basepath/disable-monitoring, only set to true if this is a zenexity server // DISKFREE (warning only) $test_diskfree = TRUE; $test_diskfree_args[] = array('/', 95); $test_diskfree_args[] = array('/home', 95); // DNS $test_dns = TRUE; // GLSA (cron, has it's own url) $test_glsa = TRUE; $test_glsa_file = $basepath . '/glsa.html'; // IO $test_io = TRUE; $test_io_args[] = '/tmp'; $test_io_args[] = '/home/tmp'; // KERNEL $test_kernel = TRUE; // LOAD (warning only) $test_load = TRUE; // MAIL $test_mail = TRUE; // MEMORY (warning only) $test_memory = TRUE; // MYSQL $test_mysql = FALSE; //$test_mysql_args[] = array('host', 'user', 'pass', 'database', 'slave', array('09:00' => 20, '12:00' => 2000, '15:00' => 30, '19:30' => 25) ); //$test_mysql_args[] = array('host', 'user', 'pass', 'database', 'master' ); // POSTGRESQL $test_postgres = FALSE; //$test_postgres_args[] = array('host', 'port', 'database', 'user', 'password'); // RAID (cron) $test_raid = FALSE; //$test_raid_args[] = array('tw_cli', 'c0:p0 c0:p1'); //$test_raid_args[] = array('megacli', 'c0:e1:s1 c0:e1:s2'); //$test_raid_args[] = array('sas2ircu', 'c0:e1:s1 c0:e1:s2'); //$test_raid_args[] = array('mpt', 'log:0 phys:0 phys:1'); //$test_raid_args[] = array('areca', 'rsf:0 rsf:1'); // cf "areca-cli rsf info" // SMART (cron, warning only) $test_smart = TRUE; $test_smart_file = '/var/run/sdf-smart'; $test_smart_args[] = '/dev/sda'; //$test_smart_args[] = '-d 3ware,2 /dev/sdb'; // SUPERVISE (cron) $test_supervise = TRUE; $test_supervise_file = '/var/run/sdf-supervise'; //$test_supervise_args[] = 'dnscache'; //$test_supervise_args[] = 'qmail-send'; // TIME $test_time = TRUE; // EXTRA TESTS //$extra_tests[] = array('file_name', 'function_name', '1st_argument_variable_name', 'optional_2nd_argument_variable_name'); // drdb //$tests_drbd = TRUE; //$extra_tests[] = array('tests_drbd.php', 'tests_drbd', 'tests_drbd'); // mongodb //$test_mongodb = TRUE; //$extra_tests[] = array('test_mongodb.php', 'test_mongodb', 'test_mongodb'); // command tests // $test_commands[] = 'tests/http_200.php http://www.google.com/intl/en/about.html'; // $test_commands[] = 'tests/http_200.php http://www.google.com/intl/en/about.html 209.85.148.106'; // test url on a specific host // $test_commands[] = 'ping -c1 -W3 1.2.3.4'; // $test_commands[] = 'ps faux | grep [a]pache';