Xymon Mailing List Archive search

Ports and Alerts

list Trent Melcher
Mon, 15 Jan 2007 12:09:16 -0600
Message-Id: <user-978a77c69314@xymon.invalid>

Use the GROUP feature.

	HOST=%^(host1).*

	        PORT "LOCAL=%([.:]7230)$" STATE=% min=1 max=160 TRACK=eb "TEXT=EB" GROUP=eb

	        PORT "REMOTE=%([.:]1521)$" STATE=% min=1 max=600 TRACK=oracle "TEXT=Oracle" GROUP=oracle

	        PORT "REMOTE=%([.:]6611)$" STATE=% min=0 max=600 TRACK=rb "TEXT=RB" GROUP=rb


Then in your hobbit-alerts.cfg file add something like

GROUP=eb
	MAIL $SYSADMINS REPEAT=20 RECOVERED
GROUP=oracle
	MAIL $ORACLEADMINS REPEAT=20 RECOVERED
GROUP=rb
	SCRIPT /usr/local/script/restart.rb rb


I just threw in a couple examples above,  alert whoever you need to or call a script to restart the process if needed.

 
Trent Melcher
Unix/Linux Systems Administrator
Securities America Financial Corporation
(XXX) XXX-XXXX x2774
user-a7d23e07dd5c@xymon.invalid 

Securities America, Inc., a Registered Broker/Dealer, Member NASD/SIPC. Advisory services offered through Securities America Advisors, Inc., an SEC Registered Investment Advisory

The text of this communication is confidential, and use by any person who is not the intended recipient is prohibited.  Any person who receives this communication in error is requested to immediately destroy the text of this communication without copying or further dissemination.  Your cooperation is appreciated.

 
	From: Guðmundur Ö. Ingvarsson [mailto:user-3dc750aa2e0c@xymon.invalid] 
	Sent: Monday, January 15, 2007 3:42 AM
	To: user-ae9b8668bcde@xymon.invalid
	Subject: [hobbit] Ports and Alerts
	
	
	Hi,

	 
	I'm trying to use the hobbit to send me an sms when ports are flaggin red. However I only want this some some of the ports

	of a host and not all. I'm unsure on how to filter that in the hobbit-alerts.cfg settings.

	Currently this is how it's set up

	 
	HOST=%(host1|host2|host3).* SERVICE=ports COLOR=RED

	 
	This is from my hobbit-clients.cfg

	 
	HOST=%^(host1).*

	        PORT "LOCAL=%([.:]7230)$" STATE=% min=1 max=160 TRACK=eb "TEXT=EB"

	        PORT "REMOTE=%([.:]1521)$" STATE=% min=1 max=600 TRACK=oracle "TEXT=Oracle"

	        PORT "REMOTE=%([.:]6611)$" STATE=% min=0 max=600 TRACK=rb "TEXT=RB"

	 
	Can I define further the service bit to filter out the ports I don't want? I would only like to receive alerts in SMS for the remote ports.

	 
	Guðmundur Örn Ingvarsson
	Landsbanki Íslands hf.
	Kerfisstjóri / Systems Engineer
	Upplýsingatæknisvið / Information Technology - UNIX
	
	Sími / Tel.: (+354)  410 6730
	Farsími / Mobile: (+354)  820 5074
	Fax: (+354)  410 3032
	user-3dc750aa2e0c@xymon.invalid <mailto:user-3dc750aa2e0c@xymon.invalid> 
	www.landsbanki.is <http://www.landsbanki.is/>; 

	
	Fyrirvari/Disclaimer
	http://www.landsbanki.is/disclaimer <http://www.landsbanki.is/disclaimer>;