1.一種服務(wù)器集群監(jiān)控方法,其特征在于,應(yīng)用于服務(wù)器集群中的主節(jié)點(diǎn),所述主節(jié)點(diǎn)與監(jiān)控設(shè)備通過(guò)簡(jiǎn)單網(wǎng)絡(luò)管理協(xié)議SNMP進(jìn)行通信,所述方法包括:
獲得所述服務(wù)器集群中每個(gè)節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值;
針對(duì)每個(gè)告警屬性的監(jiān)控?cái)?shù)據(jù)項(xiàng),根據(jù)該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)是否為待告警數(shù)據(jù)項(xiàng),如果是,則將該監(jiān)控?cái)?shù)據(jù)項(xiàng)添加到告警數(shù)據(jù)項(xiàng)集合中;
根據(jù)所述告警數(shù)據(jù)項(xiàng)集合,生成簡(jiǎn)單網(wǎng)絡(luò)管理協(xié)議SNMP告警報(bào)文,并將所述SNMP告警報(bào)文發(fā)送給所述監(jiān)控設(shè)備。
2.根據(jù)權(quán)利要求1所述的服務(wù)器集群監(jiān)控方法,其特征在于,所述根據(jù)該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)是否為待告警數(shù)據(jù)項(xiàng),包括:
如果該監(jiān)控?cái)?shù)據(jù)項(xiàng)的最新的監(jiān)控值大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第一告警閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng);
或者,
如果在設(shè)定時(shí)長(zhǎng)內(nèi),該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值均大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第二告警閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng);
或者,
如果該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第三告警閾值的比例大于預(yù)設(shè)比例閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng)。
3.根據(jù)權(quán)利要求1或2所述的服務(wù)器集群監(jiān)控方法,其特征在于,所述獲得所述服務(wù)器集群中每個(gè)節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,包括:
針對(duì)所述服務(wù)器集群中每個(gè)節(jié)點(diǎn),在預(yù)先獲得的該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中獲得該節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值。
4.根據(jù)權(quán)利要求3所述的服務(wù)器集群監(jiān)控方法,其特征在于,針對(duì)所述服務(wù)器集群中每個(gè)節(jié)點(diǎn),通過(guò)以下步驟獲得該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件:
如果該節(jié)點(diǎn)為所述主節(jié)點(diǎn),則獲取自身的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,并將獲取到的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值放入自身對(duì)應(yīng)的數(shù)據(jù)文件中;
如果該節(jié)點(diǎn)為除所述主節(jié)點(diǎn)外的任意一個(gè)節(jié)點(diǎn),則通過(guò)監(jiān)聽(tīng)所述服務(wù)器集群的多播組,收集所述多播組上該節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,并將收集到的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值放入該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中。
5.根據(jù)權(quán)利要求4所述的服務(wù)器集群監(jiān)控方法,其特征在于,還包括:
接收所述監(jiān)控設(shè)備發(fā)送的針對(duì)目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的SNMP請(qǐng)求報(bào)文;
確定所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)所屬的目標(biāo)節(jié)點(diǎn);
在所述目標(biāo)節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中獲取所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值;
根據(jù)所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,生成SNMP響應(yīng)報(bào)文,并將所述SNMP響應(yīng)報(bào)文發(fā)送給所述監(jiān)控設(shè)備。
6.一種服務(wù)器集群監(jiān)控系統(tǒng),其特征在于,包括服務(wù)器集群和監(jiān)控設(shè)備,所述服務(wù)器集群中的主節(jié)點(diǎn)與所述監(jiān)控設(shè)備通過(guò)簡(jiǎn)單網(wǎng)絡(luò)管理協(xié)議SNMP進(jìn)行通信,其中,
所述主節(jié)點(diǎn),用于獲得所述服務(wù)器集群中每個(gè)節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值;針對(duì)每個(gè)告警屬性的監(jiān)控?cái)?shù)據(jù)項(xiàng),根據(jù)該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)是否為待告警數(shù)據(jù)項(xiàng),如果是,則將該監(jiān)控?cái)?shù)據(jù)項(xiàng)添加到告警數(shù)據(jù)項(xiàng)集合中;根據(jù)所述告警數(shù)據(jù)項(xiàng)集合,生成簡(jiǎn)單網(wǎng)絡(luò)管理協(xié)議SNMP告警報(bào)文,并將所述SNMP告警報(bào)文發(fā)送給所述監(jiān)控設(shè)備;
所述監(jiān)控設(shè)備,用于接收所述主節(jié)點(diǎn)發(fā)送的所述SNMP告警報(bào)文,并對(duì)所述SNMP告警報(bào)文進(jìn)行解析,獲得告警信息。
7.根據(jù)權(quán)利要求6所述的服務(wù)器集群監(jiān)控系統(tǒng),其特征在于,所述主節(jié)點(diǎn),具體用于:
如果該監(jiān)控?cái)?shù)據(jù)項(xiàng)的最新的監(jiān)控值大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第一告警閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng);
或者,
如果在設(shè)定時(shí)長(zhǎng)內(nèi),該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值均大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第二告警閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng);
或者,
如果該監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值大于該監(jiān)控?cái)?shù)據(jù)項(xiàng)對(duì)應(yīng)的預(yù)設(shè)的第三告警閾值的比例大于預(yù)設(shè)比例閾值,則確定該監(jiān)控?cái)?shù)據(jù)項(xiàng)為待告警數(shù)據(jù)項(xiàng)。
8.根據(jù)權(quán)利要求6或7所述的服務(wù)器集群監(jiān)控系統(tǒng),其特征在于,所述主節(jié)點(diǎn),具體用于:
針對(duì)所述服務(wù)器集群中每個(gè)節(jié)點(diǎn),在預(yù)先獲得的該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中獲得該節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值。
9.根據(jù)權(quán)利要求8所述的服務(wù)器集群監(jiān)控系統(tǒng),其特征在于,所述主節(jié)點(diǎn),還用于針對(duì)所述服務(wù)器集群中每個(gè)節(jié)點(diǎn),通過(guò)以下步驟獲得該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件:
如果該節(jié)點(diǎn)為所述主節(jié)點(diǎn),則獲取自身的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,并將獲取到的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值放入自身對(duì)應(yīng)的數(shù)據(jù)文件中;
如果該節(jié)點(diǎn)為除所述主節(jié)點(diǎn)外的任意一個(gè)節(jié)點(diǎn),則通過(guò)監(jiān)聽(tīng)所述服務(wù)器集群的多播組,收集所述多播組上該節(jié)點(diǎn)的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,并將收集到的監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值放入該節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中。
10.根據(jù)權(quán)利要求9所述的服務(wù)器集群監(jiān)控系統(tǒng),其特征在于,
所述主節(jié)點(diǎn),還用于接收所述監(jiān)控設(shè)備發(fā)送的針對(duì)目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的SNMP請(qǐng)求報(bào)文;確定所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)所屬的目標(biāo)節(jié)點(diǎn);在所述目標(biāo)節(jié)點(diǎn)對(duì)應(yīng)的數(shù)據(jù)文件中獲取所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值;根據(jù)所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值,生成SNMP響應(yīng)報(bào)文,并將所述SNMP響應(yīng)報(bào)文發(fā)送給所述監(jiān)控設(shè)備;
所述監(jiān)控設(shè)備,用于向所述主節(jié)點(diǎn)發(fā)送針對(duì)所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的所述SNMP請(qǐng)求報(bào)文,接收所述主節(jié)點(diǎn)返回的所述SNMP響應(yīng)報(bào)文,并對(duì)所述SNMP響應(yīng)報(bào)文進(jìn)行解析,獲得所述目標(biāo)監(jiān)控?cái)?shù)據(jù)項(xiàng)的監(jiān)控值。