%ip_address% - the ip address of the target.Three optional variables are avaivable within SNM to assist module parameters:.The module is required to exit gracefully in the event of a failure.SNM validates this, returning UNKNOWN if invalid. The module must return a single numeric value.Modules must be located in SNM's \lib directory.If modules are used, the following requirements apply: When configuring the templates file (eg templates.xml), modules may be configured If you have a requirement for a module and need assistance, please contact the author via the Timeout = the maximum amount of time (seconds) to wait for a connection. Which will return 1 or a query failure (generating an alert). Statistic = an integer between 0 and 5 where:Īll of the statistics return a value except for status, Server_url = url for your shoutcast server including port information and WITHOUT playlist, In a in targets.xml use DNASstatus::query( 'server_url', 'statistic', 'timeout' ) This does NOT work for Icecast or other shoutcast "compatible" servers.Įnsure perl module LWP-UserAgent is installed: Returns statistics on a SHOUTcast DNAS server. Timeout = The requests is aborted if no activity on the connection is observed for timeout Type = the DNS query type, either: 'NS', 'A', 'MX', 'CNAME', 'SOA', 'TXT' or 'search' Lookuphost = the name of the host to look up Server_ip = the IP address of the DNS server In a in targets.xml use DNScheck::query( 'server_ip', 'lookuphost', 'type', 'timeout' ) The DNS query is valid if the return is non-empty. Note: This means that the time it takes for the complete transaction might be longer Time_out = The requests is aborted if no activity on the connection is observed for timeout seconds. Url = the identity of an Internet link or resource In a in targets.xml use Webmon::header('url', 'time_out') The query is valid if the HTTP request returns a status code 2xx 'Success' in accordance with rfc2616. Outputs the latency of a valid HTTP query In a in targets.xml use Tcpping::query('ip_address', 'port_num') The tcp connection can be any port number (ftp = 21, telnet = 23, smtp = 25, http = 80, etc) Outputs the latency for creating a tcp (socket) connection to a target Mysqlstatus::status( 'database', 'variable', 'ip_address', 'user', 'password', Grant USAGE on DATABASE to identified byīe sure to flush privileges so that the new privileges and user are Stuff - no selects, inserts, deletes etc): Privileges to this database (USAGE only allows running stats and basic Recommendation is to create a new empty database and give a user USAGE Otherwise, your system is left insecure because it (Then change the '%' in the user table row to the actual hostname that Machine, use a SELECT USER() query to see how you really did connect. Which you are connecting, you should put a row with '%' as the HostĬolumn value in the user table. If you do not know the IP number or hostname of the remote machine from Remote hostname and username that you are using when trying to connect. You can fix this by setting up a MySQL account for the combination of is not allowed to connect to this MySQL server" Host, it means there is no row in the MySQL user table with a Host value If the following error occurs when you try to connect from a remote If using MySQL with firewalls, set an exception on the firewall Where: variable is one of those referenced in: In a in targets.xml use Mysqlstats::stats( 'database', 'variable', 'ip_address', 'user', 'password' ) Otherwise, the system maybe left insecure as itĪllows connections from any host for the given username.) The actual hostname that shows up in the log. (Then change the '%' in the user table row to USER() query to see how you really did connect. After trying to connect from the client machine, use a SELECT Of the remote machine from which you are connecting, you should put a row with '%' as the HostĬolumn value in the user table. If you do not know the IP number or hostname Username that you are using when trying to connect. This can overcome by by setting up a MySQL account for the combination of remote hostname and Is not allowed to connect to this MySQL server" No row in the MySQL user table with a Host value that matches the remote host: "Host. If the following error occurs when you try to connect from a remote host, it means there is If using MySQL on Windows XP SP2, set an exception on the firewall for MySQL (default = TCP Install perl module Net-mysql: ppm install Net-mysql Outputs current statistics of a mysql server Where counter_type is one of: apache_total_hits In a in targets.xml use Apachestats::stats('ip_address', 'counter_type') Outputs current statistics of an apache web serverĮnsure the following is in nf of the target apache server: LoadModule status_module libexec/apache/mod_status.so A description, installation and configuration instructions as well as references are provided for
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |