Helper class for nacoma. More...
Static Public Member Functions | |
static | link ($path=false, $img=false, $title=false) |
Check if a link to Nacoma should be displayed This depends on if Nacoma is actually available and if the user is authorized to use it. | |
static | allowed () |
Check if the current user is allowed to use Nacoma. | |
static | delHost ($host) |
Delete host (and associated services) using monitor CLI api. | |
static | getHostgroupForService ($service) |
Given a service name, returns the name of the hostgroup this service belongs to, or false if it is a host service. | |
static | delService ($service) |
Delete the service using monitor CLI api. |
Helper class for nacoma.
Copyright 2009 op5 AB op5, and the op5 logo are trademarks, servicemarks, registered servicemarks or registered trademarks of op5 AB. All other trademarks, servicemarks, registered trademarks, and registered servicemarks mentioned herein may be the property of their respective owner(s). The information contained herein is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE WARRANTY OF DESIGN, MERCHANTABILITY, AND FITNESS FOR A PARTICULAR PURPOSE.
static nacoma::allowed | ( | ) | [static] |
Check if the current user is allowed to use Nacoma.
static nacoma::delHost | ( | $ | host | ) | [static] |
Delete host (and associated services) using monitor CLI api.
$host | string host to be deleted |
static nacoma::delService | ( | $ | service | ) | [static] |
Delete the service using monitor CLI api.
$service | string service to be deleted, format HOST;SERVICE |