NOTE: MUST BE SINGLE THREADED ACCESS!!!
The program awnotify.sh is called to send email/pager alerts and can me customized to your local environment.
#include "awsqlite.h"
#include "monitor.h"
#include "model_pstmt.h"
Go to the source code of this file.
Data Structures | |
| struct | aw_model_alert_slisting_s |
| struct | aw_model_event_slisting_s |
| struct | aw_model_group2user_s |
| struct | aw_model_group_listing_s |
| struct | aw_model_group_slisting_s |
| struct | aw_model_group_t |
| struct | aw_model_interface_detail_t |
| struct | aw_model_interface_listing_s |
| struct | aw_model_interface_name_t |
| struct | aw_model_interface_netmon_listing_s |
| struct | aw_model_netmon_s |
| struct | aw_model_node2group_s |
| struct | aw_model_node2nodegrp_s |
| struct | aw_model_node_detail_t |
| struct | aw_model_node_listing_s |
| struct | aw_model_node_slisting_s |
| struct | aw_model_node_t |
| struct | aw_model_nodeasset_t |
| struct | aw_model_nodegrp2node_s |
| struct | aw_model_nodegrp_listing_s |
| struct | aw_model_nodegrp_t |
| struct | aw_model_options_t |
| struct | aw_model_service2port_listing_s |
| struct | aw_model_service_detail_t |
| struct | aw_model_service_listing_s |
| struct | aw_model_service_name_t |
| struct | aw_model_service_netmon_listing_s |
| struct | aw_model_setting_t |
| struct | aw_model_stmt_t |
| struct | aw_model_subnet_listing_s |
| struct | aw_model_t |
| struct | aw_model_user2group_s |
| struct | aw_model_user_listing_s |
| struct | aw_model_user_slisting_s |
| struct | aw_model_user_t |
| struct | aw_model_userhandle_t |
| struct | aw_model_userinfo_t |
Defines | |
| #define | AW_MODEL_NETMESSAGE_DEFAULT_PORT 9999 |
Typedefs | |
| typedef aw_model_alert_slisting_s | aw_model_alert_slisting_t |
| typedef aw_model_event_slisting_s | aw_model_event_slisting_t |
| typedef aw_model_group2user_s | aw_model_group2user_t |
| typedef aw_model_group_listing_s | aw_model_group_listing_t |
| typedef aw_model_group_slisting_s | aw_model_group_slisting_t |
| typedef aw_model_interface_listing_s | aw_model_interface_listing_t |
| typedef aw_model_interface_netmon_listing_s | aw_model_interface_netmon_listing_t |
| typedef aw_model_netmon_s | aw_model_netmon_t |
| typedef aw_model_node2group_s | aw_model_node2group_t |
| typedef aw_model_node2nodegrp_s | aw_model_node2nodegrp_t |
| typedef aw_model_node_listing_s | aw_model_node_listing_t |
| typedef aw_model_node_slisting_s | aw_model_node_slisting_t |
| typedef aw_model_nodegrp2node_s | aw_model_nodegrp2node_t |
| typedef aw_model_nodegrp_listing_s | aw_model_nodegrp_listing_t |
| typedef aw_model_service2port_listing_s | aw_model_service2port_listing_t |
| typedef aw_model_service_listing_s | aw_model_service_listing_t |
| typedef aw_model_service_netmon_listing_s | aw_model_service_netmon_listing_t |
| typedef aw_model_subnet_listing_s | aw_model_subnet_listing_t |
| typedef aw_model_user2group_s | aw_model_user2group_t |
| typedef aw_model_user_listing_s | aw_model_user_listing_t |
| typedef aw_model_user_slisting_s | aw_model_user_slisting_t |
Enumerations | |
| enum | aw_model_netmon_class_t { AW_MODEL_INTERFACE_HANDLER = 1, AW_MODEL_SERVICE_HANDLER } |
Functions | |
| int32_t | aw_model_alert_user_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t user_id, u_int32_t limit, aw_model_alert_slisting_t *alert_slisting) |
| Init itertator to fill listing with data from alert table for alerts NOT acknowledged. Call user_slisting->iter.next() until <= 0 . | |
| const aw_model_userhandle_t * | aw_model_authenticate (aw_model_t *model, const byte_t *userid, const byte_t *password) |
| Return non-zero if authenticated. | |
| const aw_model_userhandle_t * | aw_model_CHAP (aw_model_t *model, const byte_t *userid, u_int32_t prefix, const byte_t *response) |
| Return non-zero if authenticated using CHAP. | |
| void | aw_model_close (aw_model_t *model) |
| Closes connection to the model database and frees resources. | |
| int32_t | aw_model_discover (aw_model_t *model, const aw_model_userhandle_t *handle) |
| Run network discovery as background process, update db (see aw_model_run_discover). | |
| int32_t | aw_model_discover_running (aw_model_t *model, const aw_model_userhandle_t *handle) |
| Return non-zero if discovery process is running. | |
| int32_t | aw_model_escalate_alert (aw_model_t *model, const aw_model_userhandle_t *handle) |
| If an alert has not been acknowlege with specfied time period then alert next user in group. | |
| int32_t | aw_model_event_today_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t limit, aw_model_event_slisting_t *event_slisting) |
| Init itertator to fill listing with data from event table for events today. Call user_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_execute_stmt (aw_model_t *model, aw_model_stmt_t *stmt) |
| Execute compiled sql statment. | |
| void | aw_model_finalize_stmt (aw_model_t *model, aw_model_stmt_t *stmt) |
| Free compiled sql statment. | |
| void | aw_model_free_handle (const aw_model_userhandle_t *handle) |
| Free object. | |
| int32_t | aw_model_group2users (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t groupid, aw_model_group2user_t *group2user) |
| Init itertator to update group membership. Call group2user->iter.next() until <= 0 . | |
| int32_t | aw_model_group_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *groupname) |
| Create a group record with specified name. | |
| int32_t | aw_model_group_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_group_listing_t *group_listing) |
| Itertator to fill listing with data from group table. Call group_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_group_node_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, aw_model_group_slisting_t *group_slisting) |
| Init itertator to fill listing with data from group table for node. Call group_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_group_notnode_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, aw_model_group_slisting_t *group_slisting) |
| Init itertator to fill listing with data from group table for groups NOT assoc w/node. Call group_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_group_notuser_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t userid, aw_model_group_slisting_t *group_slisting) |
| Init itertator to fill listing with data from group table for groups NOT assoc w/user. Call group_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_group_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t groupid, aw_model_group_t *group) |
| Fill group with data from group table. | |
| int32_t | aw_model_group_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_group_t *updated_group) |
| Update group record. | |
| int32_t | aw_model_group_user_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t userid, aw_model_group_slisting_t *group_slisting) |
| Init itertator to fill listing with data from group table for user. Call group_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_ia_event_insert (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interface_id, u_int32_t up, u_int32_t priority, aw_timestamp_t tstamp) |
| Insert interface availability event if up/down change, trigger will update interface table. | |
| int32_t | aw_model_interface_alert (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interface_id, u_int32_t up, aw_timestamp_t tstamp) |
| Generate an alert for an ia event. | |
| int32_t | aw_model_interface_create (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, const byte_t *ip) |
| Create a interface record with assoc node,ip. | |
| int32_t | aw_model_interface_list_by_node (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, u_int32_t deleted, aw_model_interface_listing_t *interface_listing) |
| Itertator to fill listing with data from interface table for an interface. Call interface_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_interface_name_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, aw_model_interface_name_t *interface_name) |
| Fill interface with data from interface table. | |
| int32_t | aw_model_interface_netmon_list (aw_model_t *model, const aw_model_userhandle_t *handle, aw_model_interface_netmon_listing_t *interface_netmon_listing) |
| Itertator to fill listing with data from interface table for an interface network probe. Call interface_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_interface_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, aw_model_interface_detail_t *interfacedetail) |
| Fill interface with data from interface table. | |
| int32_t | aw_model_interface_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_interface_detail_t *updated_interfacedetail) |
| Update interface record. | |
| const aw_model_userhandle_t * | aw_model_make_handle (u_int32_t userid, u_int32_t ro) |
| Return handle object. | |
| int32_t | aw_model_mdns_event_insert (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *ip, u_int32_t port, const byte_t *service, const byte_t *protocol, const byte_t *name, u_int32_t up, u_int32_t priority, aw_timestamp_t tstamp) |
| Insert mdns availability event if up/down change, trigger will update service table. | |
| int32_t | aw_model_message_alert (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *nodename, const byte_t *msg, aw_timestamp_t tstamp) |
| Generate an alert for an nm event. | |
| int32_t | aw_model_netmon_add_probe_by_name (aw_model_t *model, aw_model_netmon_class_t handler_class, u_int32_t id, const byte_t *name, const byte_t *ip, u_int32_t port, const byte_t *proto, const byte_t *handler, u_int32_t timeout, u_int32_t cycle, const byte_t *handlercron, const byte_t *maintcron, u_int32_t perf) |
| Add network monitoring service probe. | |
| void | aw_model_netmon_clear (aw_model_t *model) |
| UNDO aw_model_netmon_init(). | |
| void | aw_model_netmon_init (aw_model_t *model) |
| Init all network monitoring (call this only 1 time!). | |
| u_int32_t | aw_model_netmon_is_disabled (aw_model_t *model) |
| Test to see if network monitoring is running. | |
| void | aw_model_netmon_remove_probe (aw_model_t *model, aw_model_netmon_class_t handler_class, u_int32_t id) |
| Stop all particular network monitoring probe. | |
| void | aw_model_netmon_restart (aw_model_t *model) |
| Stop / start all network monitoring probes (if enabled). | |
| void | aw_model_netmon_start (aw_model_t *model) |
| Start all network monitoring probes. | |
| void | aw_model_netmon_stop (aw_model_t *model) |
| Stop all network monitoring probes. | |
| int32_t | aw_model_nm_event_insert (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *nodename, const byte_t *msg, u_int32_t priority, aw_timestamp_t tstamp) |
| Insert node message event. | |
| int32_t | aw_model_node2groups (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, aw_model_node2group_t *node2group) |
| Init itertator to update a node's group association for alerts. Call node2group->iter.next() until <= 0 . | |
| int32_t | aw_model_node_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *name) |
| Create a node record with assoc name. | |
| int32_t | aw_model_node_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_node_listing_t *node_listing) |
| Itertator to fill listing with data from node table. Call node_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_node_list_by_nodegrp (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, u_int32_t deleted, aw_model_node_listing_t *node_listing) |
| Itertator to fill listing with data from node table for a nodegrp. Call node_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_node_nodegrp_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, aw_model_node_slisting_t *node_slisting) |
| Init itertator to fill listing with data from node table for nodegrp. Call node_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_node_notnodegrp_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, aw_model_node_slisting_t *node_slisting) |
| Init itertator to fill listing with data from node table for nodes NOT assoc w/nodegrp. Call node_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_node_outages (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t limit, aw_model_node_listing_t *node_listing) |
| Itertator to fill listing with data from node table for thos with outages. Call node_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_node_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, aw_model_node_detail_t *nodedetail) |
| Fill node with data from node table. | |
| int32_t | aw_model_node_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_node_detail_t *updated_nodedetail) |
| Update node record. | |
| int32_t | aw_model_nodeasset_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, aw_model_nodeasset_t *nodeasset) |
| Fill nodeasset with data from nodeasset table. | |
| int32_t | aw_model_nodeasset_update (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodeid, const aw_model_nodeasset_t *nodeasset) |
| Fill nodeasset table with data from nodeasset. | |
| int32_t | aw_model_nodegrp2nodes (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t append, u_int32_t nodegrpid, aw_model_nodegrp2node_t *nodegrp2node) |
| Init itertator to update nodegrp membership. Call nodegrp2node->iter.next() until <= 0 . | |
| int32_t | aw_model_nodegrp_apply_active (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, u_int32_t val) |
| Set active indicator for all nodes in nodegrp. | |
| int32_t | aw_model_nodegrp_apply_deleted (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, u_int32_t val) |
| Set deleted indicator for all nodes in nodegrp. | |
| int32_t | aw_model_nodegrp_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *name) |
| Create a nodegrp record with assoc name. | |
| int32_t | aw_model_nodegrp_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_nodegrp_listing_t *nodegrp_listing) |
| Itertator to fill listing with data from nodegrp table. Call nodegrp_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_nodegrp_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t nodegrpid, aw_model_nodegrp_t *nodegrp) |
| Fill nodegrp with data from nodegrp table. | |
| int32_t | aw_model_nodegrp_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_nodegrp_t *updated_nodegrp) |
| Update nodegrp record. | |
| int32_t | aw_model_open (const byte_t *db, aw_monitor_t *mon, const aw_model_options_t *options, aw_model_t *model) |
| Opens a connection to the model database, creates a new database if there is not one currently. Associates monitor with model. | |
| void | aw_model_reset_stmt (aw_model_t *model, aw_model_stmt_t *stmt) |
| Reset compiled sql statment. | |
| int32_t | aw_model_run_discover (aw_model_t *model, const aw_model_userhandle_t *handle) |
| Run network discovery using a handler which detects completion (this is prefered way to run discovery). | |
| int32_t | aw_model_sa_event_insert (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t service_id, u_int32_t up, const byte_t *type, u_int32_t priority, aw_timestamp_t tstamp) |
| Insert service availability event if up/down change, trigger will update service table. | |
| void | aw_model_schedule_discovery (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *mode) |
| int32_t | aw_model_service2port_list (aw_model_t *model, const aw_model_userhandle_t *handle, aw_model_service2port_listing_t *service2port_listing) |
| Itertator to fill listing with data from sport2service table. Call service2port_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_alert (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t service_id, u_int32_t up, aw_timestamp_t tstamp) |
| Generate an alert for an sa event. | |
| int32_t | aw_model_service_create (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, const byte_t *service) |
| Create a service record with assoc interface,service. | |
| int32_t | aw_model_service_id_query (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *ip, u_int32_t port) |
| Get service id from ip/port. | |
| int32_t | aw_model_service_list_by_interface (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t interfaceid, u_int32_t deleted, aw_model_service_listing_t *service_listing) |
| Itertator to fill listing with data from service table for a service. Call service_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_name_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, aw_model_service_name_t *service_name) |
| Fill service with data from service table. | |
| int32_t | aw_model_service_netmon_list (aw_model_t *model, const aw_model_userhandle_t *handle, aw_model_service_netmon_listing_t *service_netmon_listing) |
| Itertator to fill listing with data from service table for an service network probe. Call service_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_service_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, aw_model_service_detail_t *servicedetail) |
| Fill service with data from service table. | |
| int32_t | aw_model_service_unique (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t serviceid, byte_t *ip, u_int32_t port, byte_t *proto) |
| Return non-zero if there WOULD be 2 ip,port,proto should this be inserted/updated. | |
| int32_t | aw_model_service_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_service_detail_t *updated_servicedetail) |
| Update service record. | |
| int32_t | aw_model_settings_query (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *kw, aw_model_setting_t *setting) |
| Fill setting object with data from settings table. | |
| int32_t | aw_model_settings_update (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *kw, const byte_t *val) |
| Update settings record. | |
| int32_t | aw_model_subnet_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *netmask) |
| Create a subnet record with assoc netmask. | |
| int32_t | aw_model_subnet_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_subnet_listing_t *subnet_listing) |
| Itertator to fill listing with data from subnet table. Call subnet_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_subnet_update (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t subnetid, u_int32_t active, u_int32_t deleted) |
| Update subnet record. | |
| int32_t | aw_model_user2groups (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t userid, aw_model_user2group_t *user2group) |
| Init itertator to update group membership. Call user2group->iter.next() until <= 0 . | |
| int32_t | aw_model_user_create (aw_model_t *model, const aw_model_userhandle_t *handle, const byte_t *loginid) |
| Create a user record with assoc loginid. | |
| int32_t | aw_model_user_group_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t groupid, aw_model_user_slisting_t *user_slisting) |
| Init itertator to fill listing with data from user table for group. Call user_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_user_list (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t deleted, aw_model_user_listing_t *user_listing) |
| Itertator to fill listing with data from user table. Call user_listing->iter.next() until <= 0 . | |
| int32_t | aw_model_user_notgroup_slist (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t groupid, aw_model_user_slisting_t *user_slisting) |
| Init itertator to fill listing with data from user table for users NOT assoc w/group. Call user_slisting->iter.next() until <= 0 . | |
| int32_t | aw_model_user_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t userid, aw_model_user_t *user) |
| Fill user with data from user table. | |
| int32_t | aw_model_user_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_user_t *updated_user) |
| Update user record. | |
| int32_t | aw_model_userinfo_query (aw_model_t *model, const aw_model_userhandle_t *handle, u_int32_t userid, aw_model_userinfo_t *userinfo) |
| Fill userinfo with data from userinfo table for handle. | |
| int32_t | aw_model_userinfo_update (aw_model_t *model, const aw_model_userhandle_t *handle, const aw_model_userinfo_t *updated_userinfo) |
| Update userinfo record. | |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
list for holding handlers to probe network |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
types of handlers |
|
||||||||||||||||||||||||
|
Init itertator to fill listing with data from alert table for alerts NOT acknowledged. Call user_slisting->iter.next() until <= 0 . aw_model_alert_user_slist
|
|
||||||||||||||||
|
Return non-zero if authenticated. aw_model_authenticate
|
|
||||||||||||||||||||
|
Return non-zero if authenticated using CHAP. aw_model_CHAP
|
|
|
Closes connection to the model database and frees resources. aw_model_close
|
|
||||||||||||
|
Run network discovery as background process, update db (see aw_model_run_discover). aw_model_discover
|
|
||||||||||||
|
Return non-zero if discovery process is running. aw_model_discover_running
|
|
||||||||||||
|
If an alert has not been acknowlege with specfied time period then alert next user in group. aw_model_escalate_alert
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from event table for events today. Call user_slisting->iter.next() until <= 0 . aw_model_event_today_slist
|
|
||||||||||||
|
Execute compiled sql statment. aw_model_execute_stmt
|
|
||||||||||||
|
Free compiled sql statment. aw_model_finalize_stmt
|
|
|
Free object. aw_model_make_handle
|
|
||||||||||||||||||||
|
Init itertator to update group membership. Call group2user->iter.next() until <= 0 . aw_model_group2users
|
|
||||||||||||||||
|
Create a group record with specified name. aw_model_group_create
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from group table. Call group_listing->iter.next() until <= 0 . aw_model_group_list
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from group table for node. Call group_slisting->iter.next() until <= 0 . aw_model_group_node_slist
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from group table for groups NOT assoc w/node. Call group_slisting->iter.next() until <= 0 . aw_model_group_notnode_slist
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from group table for groups NOT assoc w/user. Call group_slisting->iter.next() until <= 0 . aw_model_group_notuser_slist
|
|
||||||||||||||||||||
|
Fill group with data from group table. aw_model_group_query
|
|
||||||||||||||||
|
Update group record. aw_model_group_update
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from group table for user. Call group_slisting->iter.next() until <= 0 . aw_model_group_user_slist
|
|
||||||||||||||||||||||||||||
|
Insert interface availability event if up/down change, trigger will update interface table. aw_model_ia_event_insert
|
|
||||||||||||||||||||||||
|
Generate an alert for an ia event. aw_model_interface_alert
|
|
||||||||||||||||||||
|
Create a interface record with assoc node,ip. aw_model_interface_create
|
|
||||||||||||||||||||||||
|
Itertator to fill listing with data from interface table for an interface. Call interface_listing->iter.next() until <= 0 . aw_model_interface_list_by_node
|
|
||||||||||||||||||||
|
Fill interface with data from interface table. aw_model_interface_name_query
|
|
||||||||||||||||
|
Itertator to fill listing with data from interface table for an interface network probe. Call interface_listing->iter.next() until <= 0 . aw_model_interface_netmon_list
|
|
||||||||||||||||||||
|
Fill interface with data from interface table. aw_model_interface_query
|
|
||||||||||||||||
|
Update interface record. aw_model_interface_update
|
|
||||||||||||
|
Return handle object. aw_model_make_handle
|
|
||||||||||||||||||||||||||||||||||||||||||||
|
Insert mdns availability event if up/down change, trigger will update service table. aw_model_mdns_event_insert
|
|
||||||||||||||||||||||||
|
Generate an alert for an nm event. aw_model_message_alert
|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Add network monitoring service probe. aw_model_netmon_add_probe_by_name
|
|
|
UNDO aw_model_netmon_init(). aw_model_netmon_clear
|
|
|
Init all network monitoring (call this only 1 time!). aw_model_netmon_init
|
|
|
Test to see if network monitoring is running. aw_model_netmon_is_disabled
|
|
||||||||||||||||
|
Stop all particular network monitoring probe. aw_model_netmon_remove_probe
|
|
|
Stop / start all network monitoring probes (if enabled). aw_model_netmon_restart
|
|
|
Start all network monitoring probes. aw_model_netmon_start
|
|
|
Stop all network monitoring probes. aw_model_netmon_stop
|
|
||||||||||||||||||||||||||||
|
Insert node message event. aw_model_nm_event_insert
|
|
||||||||||||||||||||
|
Init itertator to update a node's group association for alerts. Call node2group->iter.next() until <= 0 . aw_model_node2groups
|
|
||||||||||||||||
|
Create a node record with assoc name. aw_model_node_create
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from node table. Call node_listing->iter.next() until <= 0 . aw_model_node_list
|
|
||||||||||||||||||||||||
|
Itertator to fill listing with data from node table for a nodegrp. Call node_listing->iter.next() until <= 0 . aw_model_node_list_by_nodegrp
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from node table for nodegrp. Call node_slisting->iter.next() until <= 0 . aw_model_node_nodegrp_slist
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from node table for nodes NOT assoc w/nodegrp. Call node_slisting->iter.next() until <= 0 . aw_model_node_notnodegrp_slist
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from node table for thos with outages. Call node_listing->iter.next() until <= 0 . aw_model_node_outages
|
|
||||||||||||||||||||
|
Fill node with data from node table. aw_model_node_query
|
|
||||||||||||||||
|
Update node record. aw_model_node_update
|
|
||||||||||||||||||||
|
Fill nodeasset with data from nodeasset table. aw_model_nodeasset_query
|
|
||||||||||||||||||||
|
Fill nodeasset table with data from nodeasset. aw_model_nodeasset_update
|
|
||||||||||||||||||||||||
|
Init itertator to update nodegrp membership. Call nodegrp2node->iter.next() until <= 0 . aw_model_nodegrp2nodes
|
|
||||||||||||||||||||
|
Set active indicator for all nodes in nodegrp. aw_model_nodegrp_apply_active
|
|
||||||||||||||||||||
|
Set deleted indicator for all nodes in nodegrp. aw_model_nodegrp_apply_deleted
|
|
||||||||||||||||
|
Create a nodegrp record with assoc name. aw_model_nodegrp_create
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from nodegrp table. Call nodegrp_listing->iter.next() until <= 0 . aw_model_nodegrp_list
|
|
||||||||||||||||||||
|
Fill nodegrp with data from nodegrp table. aw_model_nodegrp_query
|
|
||||||||||||||||
|
Update nodegrp record. aw_model_nodegrp_update
|
|
||||||||||||||||||||
|
Opens a connection to the model database, creates a new database if there is not one currently. Associates monitor with model. aw_model_open
|
|
||||||||||||
|
Reset compiled sql statment. aw_model_reset_stmt
|
|
||||||||||||
|
Run network discovery using a handler which detects completion (this is prefered way to run discovery). aw_model_run_discover
|
|
||||||||||||||||||||||||||||||||
|
Insert service availability event if up/down change, trigger will update service table. aw_model_sa_event_insert
|
|
||||||||||||||||
|
aw_model_schedule_discovery
|
|
||||||||||||||||
|
Itertator to fill listing with data from sport2service table. Call service2port_listing->iter.next() until <= 0 . aw_model_service2port_list
|
|
||||||||||||||||||||||||
|
Generate an alert for an sa event. aw_model_service_alert
|
|
||||||||||||||||||||
|
Create a service record with assoc interface,service. aw_model_service_create
|
|
||||||||||||||||||||
|
Get service id from ip/port. aw_model_service_id_query
|
|
||||||||||||||||||||||||
|
Itertator to fill listing with data from service table for a service. Call service_listing->iter.next() until <= 0 . aw_model_service_list_by_interface
|
|
||||||||||||||||||||
|
Fill service with data from service table. aw_model_service_name_query
|
|
||||||||||||||||
|
Itertator to fill listing with data from service table for an service network probe. Call service_listing->iter.next() until <= 0 . aw_model_service_netmon_list
|
|
||||||||||||||||||||
|
Fill service with data from service table. aw_model_service_query
|
|
||||||||||||||||||||||||||||
|
Return non-zero if there WOULD be 2 ip,port,proto should this be inserted/updated. aw_model_service_unique
|
|
||||||||||||||||
|
Update service record. aw_model_service_update
|
|
||||||||||||||||||||
|
Fill setting object with data from settings table. aw_model_settings_query
|
|
||||||||||||||||||||
|
Update settings record. aw_model_settings_update
|
|
||||||||||||||||
|
Create a subnet record with assoc netmask. aw_model_subnet_create
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from subnet table. Call subnet_listing->iter.next() until <= 0 . aw_model_subnet_list
|
|
||||||||||||||||||||||||
|
Update subnet record. aw_model_subnet_update
|
|
||||||||||||||||||||
|
Init itertator to update group membership. Call user2group->iter.next() until <= 0 . aw_model_user2groups
|
|
||||||||||||||||
|
Create a user record with assoc loginid. aw_model_user_create
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from user table for group. Call user_slisting->iter.next() until <= 0 . aw_model_user_group_slist
|
|
||||||||||||||||||||
|
Itertator to fill listing with data from user table. Call user_listing->iter.next() until <= 0 . aw_model_user_list
|
|
||||||||||||||||||||
|
Init itertator to fill listing with data from user table for users NOT assoc w/group. Call user_slisting->iter.next() until <= 0 . aw_model_user_notgroup_slist
|
|
||||||||||||||||||||
|
Fill user with data from user table. aw_model_user_query
|
|
||||||||||||||||
|
Update user record. aw_model_user_update
|
|
||||||||||||||||||||
|
Fill userinfo with data from userinfo table for handle. aw_model_userinfo_query
|
|
||||||||||||||||
|
Update userinfo record. aw_model_userinfo_update
|