[hobbit] Ports and Alerts
Trent Melcher
tmelcher at saionline.com
Mon Jan 15 19:09:16 CET 2007
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
(402) 399-9111 x2774
tmelcher at saionline.com
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:Gudmundur.Ingvarsson at landsbanki.is]
Sent: Monday, January 15, 2007 3:42 AM
To: hobbit at hswn.dk
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
gudmundur.ingvarsson at landsbanki.is <mailto:gudmundur.ingvarsson at landsbanki.is>
www.landsbanki.is <http://www.landsbanki.is/>
Fyrirvari/Disclaimer
http://www.landsbanki.is/disclaimer <http://www.landsbanki.is/disclaimer>
More information about the Xymon
mailing list