File/bin/flap_detect.php

Description

/opt/nac/bin/flap_detect

Long description for file: program input: Read syslog every few minutes via cron Count events and see if over threshold, if yes, count vlans and systems and send a detailed email to the switch notify person and conf->email_user, restart the port, and block a system, depending on the vlan/system count. Note: make sure you run this 7x24, since its measures the delta between calls. so if it does not run from 22:00 to 06:00 for example, it may give a false alert at 06:00. program output: Send email alerts

PHP version 5

LICENSE: This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation.

Includes
 require_once ("funcs.inc.php") (line 33)
 require_once ("snmp_defs.inc.php") (line 34)
Functions
msg (line 61)
void msg ( $msg1)
  • $msg1
react (line 67)
void react ( $cnt,  $switch,  $port)
  • $cnt
  • $switch
  • $port

Documentation generated on Mon, 06 Feb 2012 01:10:34 +0100 by phpDocumentor 1.4.0