Ports and Alerts
list Guðmundur Ö. Ingvarsson
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
list Jason Altrincham Jones
One way, though not ideal, would be to have hobbit call a script and in the script grep the input received from hobbit to see if the desired port is red and then continue to send the sms if it is or exit if one of the others are down. Jason.
▸
From: Guðmundur Ö. Ingvarsson [mailto:user-3dc750aa2e0c@xymon.invalid]
Sent: 15 January 2007 09:42
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.invalidwww.landsbanki.is <http://www.landsbanki.is/>; Fyrirvari/Disclaimer http://www.landsbanki.is/disclaimer <http://www.landsbanki.is/disclaimer>;
list Jason Altrincham Jones
Hi All, I have a strange problem, I have made a devmon script (works) and a hobbitgraph entry along with altering hobbitserver and on one of the devmon devices it works, and on the other - which is the exact same device and the devmon template works fine, it doesn't show. To summarise 2 devices one script one hobbitgraph and hobbit server entry, one works one doesn't. Any ideas? Thanks, Jason.
list Trent Melcher
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>;