CN111093221B - Wireless network monitoring system based on centralized network - Google Patents

Wireless network monitoring system based on centralized network Download PDF

Info

Publication number
CN111093221B
CN111093221B CN202010218105.XA CN202010218105A CN111093221B CN 111093221 B CN111093221 B CN 111093221B CN 202010218105 A CN202010218105 A CN 202010218105A CN 111093221 B CN111093221 B CN 111093221B
Authority
CN
China
Prior art keywords
timestamp
information
file
status
record
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN202010218105.XA
Other languages
Chinese (zh)
Other versions
CN111093221A (en
Inventor
张福军
陆昕
罗豪
李峰
徐璐璟
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Green Man Technology Co ltd
Original Assignee
Green Man Technology Co ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Green Man Technology Co ltd filed Critical Green Man Technology Co ltd
Priority to CN202010218105.XA priority Critical patent/CN111093221B/en
Publication of CN111093221A publication Critical patent/CN111093221A/en
Application granted granted Critical
Publication of CN111093221B publication Critical patent/CN111093221B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04WWIRELESS COMMUNICATION NETWORKS
    • H04W24/00Supervisory, monitoring or testing arrangements
    • H04W24/04Arrangements for maintaining operational condition
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L41/00Arrangements for maintenance, administration or management of data switching networks, e.g. of packet switching networks
    • H04L41/02Standardisation; Integration
    • H04L41/0246Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols
    • H04L41/0266Exchanging or transporting network management information using the Internet; Embedding network management web servers in network elements; Web-services-based protocols using meta-data, objects or commands for formatting management information, e.g. using eXtensible markup language [XML]
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04LTRANSMISSION OF DIGITAL INFORMATION, e.g. TELEGRAPHIC COMMUNICATION
    • H04L43/00Arrangements for monitoring or testing data switching networks
    • H04L43/08Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters
    • H04L43/0805Monitoring or testing based on specific metrics, e.g. QoS, energy consumption or environmental parameters by checking availability

Landscapes

  • Engineering & Computer Science (AREA)
  • Computer Networks & Wireless Communication (AREA)
  • Signal Processing (AREA)
  • Environmental & Geological Engineering (AREA)
  • Data Exchanges In Wide-Area Networks (AREA)

Abstract

The invention relates to the technical field of network monitoring, in particular to a wireless network monitoring system based on a centralized network, which comprises a plurality of AP access points and a Nagios platform, wherein the states of the AP access points are input to the Ngios platform for monitoring.

Description

Wireless network monitoring system based on centralized network
Technical Field
The invention relates to the technical field of network monitoring, in particular to a wireless network monitoring system based on a centralized network.
Background
With the rapid development of wireless network communication, a large number of wireless communication products are oriented to the market. Due to the fact that a network topological structure is complex, when a network fails, reasons can be found timely, corresponding coping and solving methods are adopted, and for network managers, skills of the network managers are higher and higher. Under the conditions of a large number of servers or relatively complex application environments and the occurrence of problems such as network paralysis, abnormal operation of a computer and the like, the fault occurring link can be quickly analyzed according to the alarm information given by the monitoring system, and how to process the problems is solved, so that the time required for removing the faults is shortened. And (3) establishing an AP + AC monitoring system on the basis of the Nagios platform, and compiling the nrpe plug-in through the shell script. And recording the state of the AP, and taking the MAC address of the AP as a basis for judging the state of the AP.
Because the wireless network adopts a centralized network, the number of the APs is large, and the state of the AP cannot be updated after the AP drifts through the IP address of the AP, so that the MAC address of the AP is used as a basis.
Due to the fact that a network topological structure is complex, when a network fails, reasons can be found timely, corresponding coping and solving methods are adopted, and for network managers, skills of the network managers are higher and higher. Under the conditions of a large number of servers or relatively complex application environments and the conditions of problems such as network paralysis, abnormal operation of a computer and the like, the fault occurring link can be quickly analyzed according to the alarm information given by the monitoring system, and how to process the problems, so that the time required for eliminating the faults is shortened
Therefore, the method can help network maintenance personnel to locate the problem AP in time and eliminate the fault, so that the problem AP can recover the operation as soon as possible and is obviously a problem worthy of deep study. For users, the existing network monitoring system does not provide a function capable of monitoring the AP connection state in real time, and can only check the relevant information of the APs in normal operation by connecting the corresponding AC management system platforms.
For network management personnel, a platform capable of checking the states of a plurality of APs is integrated, so that the requirement of logging in a plurality of AC equipment management platforms every time can be eliminated, and the trouble of routing inspection on the APs is reduced; more often, the attention of the manager is not only those APs which are normally operating and online, but also those APs which are online but are not online for some reason or cannot be connected to the online normally.
Disclosure of Invention
The invention aims to provide a wireless network monitoring system based on a centralized network, which aims to solve the problems that in the prior art, a large amount of time is needed for network troubleshooting and repairing during network failure, and the repairing is easy to occur.
In order to achieve the purpose, the invention provides the following technical scheme: a wireless network monitoring system based on a centralized network comprises a plurality of AP access points and a Nagios platform, wherein the states of the AP access points are input to the Ngios platform for monitoring, and the monitoring system is realized by the following steps:
(1) executing a timing task through a boom command to acquire an IP address of an AP, a state of the AP, an MAC address of the AP, an Access point client type of a wireless Access client which is associated with the AP, the IP address of the Access point client of the wireless Access client and a timestamp during generation;
(2) executing the script to obtain a list of the APs and establishing a file for each AP;
(3) checking whether the AP file name exists, if so, taking the last record, checking whether the information is changed, if not, only updating the time stamp, otherwise, adding the record to the file end, and updating the time stamp.
Preferably, according to step (3), the operation flow for updating the AP state is:
① when the file of the checked AP does not exist, the returned information is Critical, Cannot finished thisa AP, the returned value is 2;
② if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is not equal to the last TimeStamp LastTimeStamp, returning the information as Normal AP and status isuP with a return value of 0, otherwise, returning the information as Abnormal AP and status is DOWN with a return value of 2;
③ if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is equal to the last TimeStamp LastTimeStamp, returning the record information WarningAP and status isuP with a return value of 1, otherwise, returning information Abnormal AP and status is DOWN with a return value of 2;
④, if the TimeStamp of the last record is less than Timestamp, the returned information is Abnormal AP, status DOWN, and the returned value is 2.
Preferably, a mailbox alarm module is arranged in the Nagios platform.
Preferably, the mailbox alarm module comprises the following setting steps:
① mailbox service sendmail or postfix is installed;
② entering into etc/objects directory under nagios file, editing content.cfg file;
③ adding the email address after defining the email in the contact method;
④ setting alarm mode, checking the constant through template.
Compared with the prior art, the invention has the beneficial effects that: the states of the multiple APs are monitored on the Ngios platform, and the trouble that multiple AC devices are logged in each time to patrol the APs can be omitted. Especially, in the process of connecting the AP device, the AP may not be successfully connected due to a certain reason, and the AP may be stuck in a certain state all the time, and the reason why the AP cannot be successfully brought online is different, and the solutions adopted by the AP devices are different from each other. In the conventional system, a network manager can query information about APs that are normally operating and online through a command line or a related interface, but cannot know information about APs that are not online or not normally connected to the network for some reasons.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below, and it is obvious that the described embodiments are only a part of the embodiments of the present invention, and not all embodiments. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
The invention provides a technical scheme that: a wireless network monitoring system based on a centralized network comprises a plurality of AP access points and a Nagios platform, wherein the states of the AP access points are input to the Ngios platform for monitoring, and the monitoring system is realized by the following steps:
(1) acquiring an IP address of the AP, a state of the AP, a MAC address of the AP, an associated AC type, an IP address of the AC and a timestamp during generation by a crontab command execution timing task;
(2) executing the script to obtain a list of the APs and establishing a file for each AP;
(3) checking whether the AP file name exists, if so, taking the last record, checking whether the information is changed, if not, only updating the time stamp, otherwise, adding the record to the file end, and updating the time stamp.
The AP is an Access point (wireless Access point);
the AC is an Access point client, i.e., a wireless Access client.
According to the step (3), the operation flow for updating the AP state is as follows:
① when the file of the checked AP does not exist, the returned information is Critical, Cannot finished thisa AP, the returned value is 2;
② if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is not equal to the last TimeStamp LastTimeStamp, returning the information as Normal AP and status isuP with a return value of 0, otherwise, returning the information as Abnormal AP and status is DOWN with a return value of 2;
③ if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is equal to the last TimeStamp LastTimeStamp, returning the record information WarningAP and status isuP with a return value of 1, otherwise, returning information Abnormal AP and status is DOWN with a return value of 2;
④, if the TimeStamp of the last record is less than Timestamp, the returned information is Abnormal AP, status DOWN, and the returned value is 2.
Based on the Nagios system, the return value of 2, described above, is represented as a yellow-labeled reminder.
The description of step ① is that the shell script is used to find the AP file name, and if the file with the AP file name Cannot be found, the error message is returned.
Referring to step ②, when the AP list is updated by the crontab command, record the current time in the TimeStamp file as TimeStamp, store the TimeStamp in the TimeStamp generated last time to the TimeStamp, record the TimeStamp as LastTimeStamp, and then determine the sizes of the TimeStamp and the LastTimeStamp, where the time of the last record is greater than or equal to the TimeStamp and the TimeStamp of the last record is not equal to the LastTimeStamp:
the return value is 0, namely the state of prompting as AP is UP normally to indicate that the AP is on-line,
the return value is 2, which indicates that the AP is not normally down and indicates that the AP is disconnected.
Referring to the description of step ③, when the AP list is updated by a crottab command executing a timed task, record the current time in the TimeStamp file as TimeStamp, store the TimeStamp in the TimeStamp generated last time to the TimeStamp display as LastTimeStamp, then determine the size of TimeStamp and LastTimeStamp, if the TimeStamp of the last record is greater than or equal to the TimeStamp generated now and the TimeStamp of the last record is equal to the TimeStamp of the last TimeStamp:
the return value is 1, namely the state early warning of AP is UP to indicate that the AP is on-line,
the return value is 2, which indicates that the AP is not normally down and indicates that the AP is disconnected.
For the description of step ④, when the AP list is updated by the execution of the timed task via the boom command, record the current time in the TimeStamp file as TimeStamp, store the TimeStamp in the TimeStamp generated last time to the TimeStamp, record the TimeStamp as LastTimeStamp, then determine the sizes of the TimeStamp and the LastTimeStamp, and if the TimeStamp of the last record is smaller than the TimeStamp, that is, the return value is 2, prompt that the AP is abnormally down, indicating that the AP is offline.
And a mailbox alarm module is arranged in the Nagios platform.
The mailbox alarm module is set as follows:
① mailbox service sendmail or postfix is installed;
② entering into etc/objects directory under nagios file, editing content.cfg file;
③ adding the email address after defining the email in the contact method;
④ setting alarm mode, checking the constant through template.
According to the technical scheme, the program is executed at intervals, and after the updated AP list is obtained, the system can obtain the latest timestamp TS from the timestamp file and obtain the last timestamp LTS from the timestamp file. The corresponding AP status file is checked by TS and LTS.
The operation mode of the mailbox alarm is as follows:
define contact name _ contact, service _ notification _ period24x7, # service exception occurred, time to send notification. 24x7 indicates 24 hours a day, 7 days a week.
service _ notification _ period needs to be defined in timepieces
host _ notification _ period24x7, # defines the time when a notification is sent when an exception occurs at the host. 24x7 for 24 hours a day, 7 days a week;
defining the conditions under which service notifications can be issued, the letters representing alert status, unknown status, emergency status, reply status, concussion event, planned downtime notification, respectively;
host _ notification _ options d, u, r, f, s, # defines the case where host notifications can be issued. Letters indicate down status, unreachable status, resume status, oscillation event, and scheduled down time, respectively;
# indicates that when the service fails, the notification sending mode is notification-service-by-email, and the command is defined in a command. host _ notification _ options d, u, r, f, s, # defines the case where host notifications can be issued. Letters indicate down status, unreachable status, resume status, oscillation event, and scheduled down time, respectively;
# indicates that when the service fails, the notification sending mode is notification-service-by-email, and the command is defined in a command.
host_notification_commands notify-host-by-email;
register 0, # denotes that the defined contact is only a template }
According to the above, the AP status display format is as follows
Main unit Main unit full scale Alias name Status of state Last time check Duration of time Status information
00-24-97-74-BC-20 00-24-97-74-BC-20 wyl-22 Up 10-18-2019 16:07:21 0d 16h 1m 10s Normol AP,status is ok
Although embodiments of the present invention have been shown and described, it will be appreciated by those skilled in the art that changes, modifications, substitutions and alterations can be made in these embodiments without departing from the principles and spirit of the invention, the scope of which is defined in the appended claims and their equivalents.

Claims (3)

1. A wireless network monitoring system based on centralized network is characterized in that: the system comprises a plurality of AP access points and a Nagios platform, wherein the states of the AP access points are input into the Ngios platform for monitoring, and the monitoring system comprises the following implementation steps:
(1) executing a timing task through a boom command to acquire an IP address of an AP, a state of the AP, an MAC address of the AP, an Access point client type of a wireless Access client which is associated with the AP, the IP address of the Access point client of the wireless Access client and a timestamp during generation;
(2) executing the script to obtain a list of the APs and establishing a file for each AP;
(3) checking whether the AP file name exists, if so, taking the last record, checking whether the information is changed, if not, only updating the timestamp, otherwise, adding the record to the end of the file, and updating the timestamp;
according to the step (3), the operation flow for updating the AP state is as follows:
① when the file of the checked AP does not exist, the returned information is Critical, namely Cannotfind this AP, and the returned value is 2;
② if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is not equal to the last TimeStamp LastTimeStamp, returning the information as Normal AP, status UP, and return value of 0, otherwise, returning the information as Abnormal AP, status DOWN, and return value of 2;
③ if the TimeStamp of the last record is greater than or equal to the TimeStamp generated at present and the TimeStamp of the last record is equal to the last TimeStamp LastTimeStamp, returning the record information WarningAP and status UP with a return value of 1, otherwise, returning information AbnormalAP and status DOWN with a return value of 2;
④ if the TimeStamp of the last record is less than TimeStamp, the returned information is Abnormal AP, status isDOWN, and the returned value is 2.
2. The centralized network-based wireless network monitoring system of claim 1, wherein: and a mailbox alarm module is arranged in the Nagios platform.
3. The centralized network-based wireless network monitoring system of claim 2, wherein: the mailbox alarm module is set as follows:
① mailbox service sendmail or postfix is installed;
② entering into etc/objects directory under nagios file, editing content.cfg file;
③ adding the email address after defining the email in the contact method;
④ setting alarm mode, checking the constant through template.
CN202010218105.XA 2020-03-25 2020-03-25 Wireless network monitoring system based on centralized network Active CN111093221B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010218105.XA CN111093221B (en) 2020-03-25 2020-03-25 Wireless network monitoring system based on centralized network

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010218105.XA CN111093221B (en) 2020-03-25 2020-03-25 Wireless network monitoring system based on centralized network

Publications (2)

Publication Number Publication Date
CN111093221A CN111093221A (en) 2020-05-01
CN111093221B true CN111093221B (en) 2020-06-16

Family

ID=70400615

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010218105.XA Active CN111093221B (en) 2020-03-25 2020-03-25 Wireless network monitoring system based on centralized network

Country Status (1)

Country Link
CN (1) CN111093221B (en)

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN102857359A (en) * 2011-06-29 2013-01-02 上海地面通信息网络有限公司 Nagios-based network monitoring system and application thereof
US20130297603A1 (en) * 2012-05-01 2013-11-07 Fujitsu Technology Solutions Intellectual Property Gmbh Monitoring methods and systems for data centers
CN103118383B (en) * 2013-02-01 2015-06-17 中国科学技术大学 System and method for comprehensively supervising wireless access point state
CN108243061A (en) * 2017-10-10 2018-07-03 北京车和家信息技术有限公司 Apparatus monitoring method, device and computer equipment based on Nagios

Also Published As

Publication number Publication date
CN111093221A (en) 2020-05-01

Similar Documents

Publication Publication Date Title
CN108710544B (en) Process monitoring method of database system and rail transit comprehensive monitoring system
CN109614283B (en) Monitoring system of distributed database cluster
CN105450472A (en) Method and device for automatically acquiring states of physical components of servers
CN101753357A (en) Network server centralized monitoring system and method
CN110784352B (en) Data synchronous monitoring and alarming method and device based on Oracle golden gate
CN107800783B (en) Method and device for remotely monitoring server
JP2013130901A (en) Monitoring server and network device recovery system using the same
CN113533887B (en) Intelligent debugging method and system for power distribution terminal
CN111475386B (en) Fault early warning method and related device
CN111476381A (en) Method and system for operation and maintenance service of innovative application system based on localization information technology
CN115794588A (en) Memory fault prediction method, device and system and monitoring server
CN111093221B (en) Wireless network monitoring system based on centralized network
CN117278590A (en) Small hydropower station real-time data monitoring and early warning system and method
CN103279702A (en) Method for monitoring full-substation model file version during debugging of intelligent substation
CN108595307A (en) A kind of automatic self-healing method based on IT O&Ms
CN113629878B (en) Remote control verification method and system for three-remote switch of power distribution network
CN116737444A (en) Database server fault processing method and system
CN116055297A (en) Software and hardware combined self-healing method and system after downtime of distributed storage nodes
CN115277353B (en) Remote fault active and passive early warning method for intelligent cabinet
CN113553236B (en) Centralized automatic management system and method for physical machines in data center
CN107590647A (en) The servo supervisory systems of ship-handling system
KR100650584B1 (en) Statistical data error reporting method in the efficiency management module of ems
CN116416085A (en) Cloud management method, system, server and storage medium of battery exchange station
KR20170127876A (en) System and method for dealing with troubles through fault analysis of log
CN105550094A (en) Automatic state monitoring method of high-availability system

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination
GR01 Patent grant
GR01 Patent grant