Download 6 installation and configuration

Transcript
API Calls
<str_warning>
<min_critical>
<max_critical>
<str_critical>
<history_data>
<configuration_data> This is the definition block of the agent that will be inserted in
the config file of the policy agent.
• <enable_unknown_events> (only in version 5)
•
•
•
•
•
•
Examples
http://127.0.0.1/pandora_console/include/api.php?
op=set&op2=add_data_module_policy&id=1&other=data_module_policy_example_name~2~data
%20module%20created%20by%20Api~2~0~0~50.00~10~20~180~~21~35~~1~module_begin
%0dmodule_name%20pandora_process%0dmodule_type%20generic_data%0dmodule_exec%20ps
%20aux%20|%20grep%20pandora%20|%20wc%20-l
%0dmodule_end&other_mode=url_encode_separator_~&apipass=1234&user=admin&pass=pandora
28.3.2.18. set add_SNMP_module_policy
Add a SNMP module in the policy pass as id in the parameter. Call syntax: •
•
•
•
op=set (compulsory) op2=add_snmp_module_policy (compulsory) id=<id_policy> (compulsory) should be a policy Id. other=<serialized parameters> (compulsory) are the module configuration and data, serialized in the following order: •
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
•
<name_module>
<disabled>
<id_module_type>
<id_module_group>
<min_warning>
<max_warning>
<str_warning>
<min_critical>
<max_critical>
<str_critical>
<ff_threshold>
<history_data>
<module_port>
<snmp_version>
<snmp_community>
<snmp_oid>
<module_interval>
<post_process>
<min_value>
<max_value>
346