Network device monitoring method and system

The invention relates to a network device monitoring method and system. The network device monitoring method comprises the following steps: (1) according to the types of network devices, creating device model files for the network devices, wherein monitoring project protocols borne by the network devices are indicated in the device model files; the monitoring project protocols can be SNMPs (Simple Network Management Protocols) and/or Telnet protocols; if the monitoring project protocols are the SNMPs, OIDs (Object Identifiers) corresponding to monitoring projects are indicated in the device model files; if the monitoring project protocols are Telnet protocols, command statements and result analysis grammar corresponding to the monitoring projects are indicated in the device model files; (2) adding network devices to be monitored, and selecting monitoring projects for the network devices to be monitored; (3) reading the device model files of the network devices to be monitored, and acquiring protocols borne by the monitoring projects and selected for the network devices to be monitored, and related information corresponding to the protocols; (4) according to the selected monitoring projects and the protocols borne by the monitoring projects, monitoring the network devices to be monitored. The network device monitoring method and system have high expansibility and compatibility.