Agents and groups¶
Agents, groups, planned downtimes, clusters, custom fields and the remote configuration files.
Generated automatically from help_screen() in pandorafms/pandora_server/util/pandora_manage.pl (version 8.0NG.805 Build 260915, branch develop, commit 4f61789e07). Do not edit by hand; run make admin-cli-ref.
Options¶
--create_agent¶
<agent_name> <operating_system> <group> <server_name> [<address> <description> <interval> <alias_as_name>]
Create agent
--update_agent¶
<agent_name> <field_to_change> <new_value> [<use_alias>]
Update an agent field. The fields can be the following: agent_name, address, description, group_name, interval, os_name, disabled (0-1), parent_name, cascade_protection (0-1), icon_path, update_gis_data (0-1), custom_id
--delete_agent¶
<agent_name> [<use_alias>]
Delete agent
--disable_group¶
<group_name>
Disable agents from an entire group
--enable_group¶
<group_name>
Enable agents from an entire group
--create_group¶
<group_name> [<parent_group_name> <icon> <description>]
Create an agent group
--delete_group¶
<group_name>
Delete an agent group
--update_group¶
<group_id> [<group_name> <parent_group_name> <icon> <description>]
Update an agent group
--stop_downtime¶
<downtime_name>
Stop a planned downtime
--create_downtime¶
<downtime_name> <description> <date_from> <date_to> <id_group> <monday> <tuesday> <wednesday> <thursday> <friday> <saturday> <sunday> <periodically_time_from> <periodically_time_to> <periodically_day_from> <periodically_day_to> <type_downtime> <type_execution> <type_periodicity> <id_user>
Create a planned downtime
--add_item_planned_downtime¶
<id_downtime> <id_agente1,id_agente2,id_agente3...id_agenteN> <name_module1,name_module2,name_module3...name_moduleN>
Add a items planned downtime
--get_all_planned_downtimes¶
<name> [<id_group> <type_downtime> <type_execution> <type_periodicity>]
Get all planned downtime
--get_planned_downtimes_items¶
<name> [<id_group> <type_downtime> <type_execution> <type_periodicity>]
Get all items of planned downtimes
--set_planned_downtimes_deleted¶
<name>
Deleted a planned downtime
--get_module_id¶
<agent_id> <module_name>
Get the id of an module
--get_module_custom_id¶
<agentmodule_id>
Get the custom_id of given module
--set_module_custom_id¶
<agentmodule_id> [<custom_id>]
Set (or erase if empty) the custom_id of given module
--get_agent_group¶
<agent_name> [<use_alias>]
Get the group name of an agent
--get_agent_group_id¶
<agent_name> [<use_alias>]
Get the group ID of an agent
--get_agent_modules¶
<agent_name> [<use_alias>]
Get the modules of an agent
--get_agent_status¶
<agent_name> [<use_alias>]
Get the status of an agent
--get_agents_id_name_by_alias¶
<agent_alias> [<strict>]
List id and alias of agents mathing given alias
--get_agents¶
[<group_name> <os_name> <status> <max_modules> <filter_substring> <policy_name> <use_alias>]
Get list of agents with optative filter parameters
--delete_conf_file¶
<agent_name> [<use_alias>]
Delete a local conf of a given agent
--clean_conf_file¶
<agent_name> [<use_alias>]
Clean a local conf of a given agent deleting all modules, policies, file collections and comments
--get_bad_conf_files¶
Get the files bad configured (without essential tokens)
--locate_agent¶
<agent_name> [<use_alias>]
Search a agent into of nodes of metaconsole. Only Enterprise.
--migration_agent_queue¶
<id_node> <source_node_name> <target_node_name> [<db_only>]
Migrate agent only metaconsole
--migration_agent¶
<id_node>
Is migrating the agent only metaconsole
--new_cluster¶
<cluster_name> <cluster_type> <description> <group_id>
Creating a new cluster
--add_cluster_agent¶
<json_data:[{"id":5,"id_agent":2},{"id":5,"id_agent":3}]>
Adding agent to cluster
--add_cluster_item¶
<json_data:[{"name":"Swap_Used","id_cluster":5,"type":"AA","critical_limit":80,"warning_limit":60},{"name":"TCP_Connections","id_cluster":5,"type":"AA","critical_limit":80,"warning_limit":60}]>
Adding item to cluster
--delete_cluster¶
<id_cluster>
Deleting cluster
--delete_cluster_agent¶
<id_agent> <id_cluster>
Deleting cluster agent
--delete_cluster_item¶
<id_item>
Deleting cluster item
--get_cluster_status¶
<id_cluster>
Getting cluster status
--set_disabled_and_standby¶
<id_agent> <id_node> <value>
Overwrite and disable and standby status
--reset_agent_counts¶
<id_agent>
Resets module counts and alert counts in the agents
--agent_update_custom_fields¶
<id_agent> <type_field> <field_to_change> <new_value>
Update an agent custom field. The fields can be the following: Serial number, Department ... and types can be 0 text and 1 combo