3 include_once('/opt/monitor/op5/nacoma/include/import.inc.php');
5 function usage($msg = false)
10 echo "Usage: find_configured.php </path/to/nagios.cfg>\n";
16 $nagios_cfg = $Config['main'];
20 $nagios_cfg = $argv[1];
21 if (!is_file($nagios_cfg))
22 usage("$nagios_cfg is not a file");
24 $Config['main'] = $nagios_cfg;
25 $obj_array = import_object_configuration();
26 echo join("\n", array_keys($index['host'])) . "\n";
27 echo join("\n", array_keys($index['service'])) . "\n";