function modgearmanxi_component_init() { global $modgearmanxi_component_name; $args = array(COMPONENT_NAME => $modgearmanxi_component_name, COMPONENT_AUTHOR => "Bryan Heden <*****@*****.**>", COMPONENT_DESCRIPTION => "Manage ModGearman daemon and workers from a central location from within Nagios XI.", COMPONENT_TITLE => "ModGearman XI Manager", COMPONENT_VERSION => "1.0.1", COMPONENT_DATE => "12/12/2016"); register_component($modgearmanxi_component_name, $args); register_callback(CALLBACK_MENUS_INITIALIZED, "modgearmanxi_component_addmenu"); }
function bpi_component_init() { global $bpi_component_name; $versionok = bpi_component_checkversion(); $desc = "IMPORTANT: Run the 'set_bpi_perms.sh' script after installation."; if (!$versionok) { $desc = "<b>Error: This component requires Nagios XI 2009R1.2B or later.</b>"; } $args = array(COMPONENT_NAME => $bpi_component_name, COMPONENT_AUTHOR => "Nagios Enterprises, LLC", COMPONENT_DESCRIPTION => "Advanced grouping and dependency tool. Can be used for specialized checks. " . $desc, COMPONENT_TITLE => "Nagios BPI"); register_component($bpi_component_name, $args); // add a menu link if ($versionok) { register_callback(CALLBACK_MENUS_INITIALIZED, 'bpi_component_addmenu'); } }