The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions?
Thanks...james
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 12:16 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
So, I tried this in hobbit-alerts.cfg
MAIL os-primary-pager FORMAT=sms REPEAT=15 COLOR=RED DURATION>5m DURATION<35 RECOVERED
The notifications log said it was sent to the phone. (os-primary-pager is in the mail aliases file)
However, the phone never received the messages. Prior to putting in the FORMAT=sms, it sent pages fine.
Thanks...James
Write your own code to parse the alert and generate the SMS message that suits you.
GLH
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 2:29 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions?
Thanks...james
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 12:16 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
So, I tried this in hobbit-alerts.cfg
MAIL os-primary-pager FORMAT=sms REPEAT=15 COLOR=RED DURATION>5m DURATION<35 RECOVERED
The notifications log said it was sent to the phone. (os-primary-pager is in the mail aliases file)
However, the phone never received the messages. Prior to putting in the FORMAT=sms, it sent pages fine.
Thanks...James
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
Oh, man! That sounds too much like work!
<grin>
Jim Smith SVHS Little Rock
-----Original Message----- From: Hubbard, Greg L [mailto:greg.hubbard at eds.com] Sent: Tuesday, April 14, 2009 3:12 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
Write your own code to parse the alert and generate the SMS message that suits you.
GLH
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 2:29 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions?
Thanks...james
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 12:16 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
So, I tried this in hobbit-alerts.cfg
MAIL os-primary-pager FORMAT=sms REPEAT=15 COLOR=RED DURATION>5m DURATION<35 RECOVERED
The notifications log said it was sent to the phone. (os-primary-pager is in the mail aliases file)
However, the phone never received the messages. Prior to putting in the FORMAT=sms, it sent pages fine.
Thanks...James
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
There is already an example that could be used on the alerts page at Xymonton.
-----Original Message----- From: Smith, Jim [mailto:JMSmith at stvincenthealth.com] Sent: Tuesday, April 14, 2009 4:16 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
Oh, man! That sounds too much like work!
<grin>
Jim Smith SVHS Little Rock
-----Original Message----- From: Hubbard, Greg L [mailto:greg.hubbard at eds.com] Sent: Tuesday, April 14, 2009 3:12 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
Write your own code to parse the alert and generate the SMS message that suits you.
GLH
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 2:29 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions?
Thanks...james
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 12:16 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
So, I tried this in hobbit-alerts.cfg
MAIL os-primary-pager FORMAT=sms REPEAT=15 COLOR=RED DURATION>5m DURATION<35 RECOVERED
The notifications log said it was sent to the phone. (os-primary-pager is in the mail aliases file)
However, the phone never received the messages. Prior to putting in the FORMAT=sms, it sent pages fine.
Thanks...James
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
I was just kidding. I'm not the one who initiated this thread. Sorry!
Jim Smith SVHS Little Rock
-----Original Message----- From: Galen Johnson [mailto:Galen.Johnson at sas.com] Sent: Tuesday, April 14, 2009 3:24 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
There is already an example that could be used on the alerts page at Xymonton.
-----Original Message----- From: Smith, Jim [mailto:JMSmith at stvincenthealth.com] Sent: Tuesday, April 14, 2009 4:16 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
Oh, man! That sounds too much like work!
<grin>
Jim Smith SVHS Little Rock
-----Original Message----- From: Hubbard, Greg L [mailto:greg.hubbard at eds.com] Sent: Tuesday, April 14, 2009 3:12 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
Write your own code to parse the alert and generate the SMS message that suits you.
GLH
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 2:29 PM To: hobbit at hswn.dk Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions?
Thanks...james
-----Original Message----- From: James Wade [mailto:jkwade at futurefrontiers.com] Sent: Tuesday, April 14, 2009 12:16 PM To: 'hobbit at hswn.dk' Subject: RE: [hobbit] RE: Troubleshooting Alerts -- Having Problems
So, I tried this in hobbit-alerts.cfg
MAIL os-primary-pager FORMAT=sms REPEAT=15 COLOR=RED DURATION>5m DURATION<35 RECOVERED
The notifications log said it was sent to the phone. (os-primary-pager is in the mail aliases file)
However, the phone never received the messages. Prior to putting in the FORMAT=sms, it sent pages fine.
Thanks...James
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
On Tuesday 14 April 2009, James Wade wrote:
The problem with no SMS notification was a slow email server. So, SMS works fine. However, the message is way to short.
For example, if it is alerting on a disk threshold, then all I get on the SMS is the server name, and the test name that is failing. I don't actually get the partition (filesystem) that exceeded the threshold.
If I use PLAIN or just leave it at default, I get to much information and it overruns the poor little cell phone.
Does anyone have any suggestions? I use FORMAT=TEXT and some perl magic to filter out the relevant lines from the full size message for disk, memory and procs.
if ( $type eq "disk" ) { foreach my $line (@message) { if ( $line =~ /&yellow (.*) \((.*)% used\) has reached the WARNING level \(.*%\)/ ) { $return .= "warn $1 $2% " } elsif ( $line =~ /&red (.*) \((.*)% used\) has reached the PANIC level \(.*%\)/ ) { $return .= "error $1 $2% " } } } elsif ( $type eq "memory" ) { foreach my $line (@message) { if ( $line =~ /&yellow +([a-z]+).+ (\d+)%/i ) { $return .= "warn $1 $2% " } elsif ( $line =~ /&red +([a-z]+).+ (\d+)%/i ) { $return .= "error $1 $2% " } else { } } } elsif ( $type eq "procs" ) { foreach my $line (@message) { if ( $line =~ /&yellow (.+)$/ ) { $return .= "warn $1 " } elsif ( $line =~ /&red (.+)$/ ) { $return .= "error $1 " } else { } } }
Stef
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith Little Rock
Do you have a brother named "Larry" by chance? Is he a "cable guy"?
GLH
From: Smith, Jim [mailto:JMSmith at stvincenthealth.com] Sent: Monday, June 01, 2009 12:56 PM To: hobbit at hswn.dk Subject: [hobbit] RE: Book on Hobbit
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith
Little Rock
Dang! Good guess!
From: HUBBARD, GREG ((EDS) Architect, Global Network Management Systems) [mailto:ghubbard at hp.com] Sent: Monday, June 01, 2009 1:04 PM To: hobbit at hswn.dk Subject: [hobbit] RE: Book on Hobbit
Do you have a brother named "Larry" by chance? Is he a "cable guy"?
GLH
From: Smith, Jim [mailto:JMSmith at stvincenthealth.com] Sent: Monday, June 01, 2009 12:56 PM To: hobbit at hswn.dk Subject: [hobbit] RE: Book on Hobbit
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith
Little Rock
On Mon, Jun 1, 2009 at 1:55 PM, Smith, Jim <JMSmith at stvincenthealth.com> wrote:
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
lmao
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith
Little Rock
-- Asif Iqbal PGP Key: 0xE62693C5 KeyServer: pgp.mit.edu A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing?
- Smith, Jim <JMSmith at stvincenthealth.com> [2009-06-01 11:55-0600]
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith
Little Rock
LOL, Very funny....
Next time try to get the tittle right "The Hobbit"
--
Lennart Andersen
St Thomas, Ontario
http://gdane.dlinkddns.com
lka0871 at rogers dot com
- Debian - when you have better things to do than fixing a system
Picky, picky, picky! <grin>
-----Original Message----- From: Lennart Andersen [mailto:lka0871 at rogers.com] Sent: Monday, June 01, 2009 1:26 PM To: hobbit at hswn.dk Subject: Re: [hobbit] RE: Book on Hobbit
- Smith, Jim <JMSmith at stvincenthealth.com> [2009-06-01 11:55-0600]
Yes, there was a book written about "Hobbit" by J.R.R. Tolkien. It even has a 3-book follow-up called "The Lord of the Rings" that was made into 3 block-buster movies.
Lord, I apologize for being such a smart-aleck, and please be with the starving pygmies down in New Guinea.
Jim Smith
Little Rock
LOL, Very funny....
Next time try to get the tittle right "The Hobbit"
--
Lennart Andersen
St Thomas, Ontario
http://gdane.dlinkddns.com
lka0871 at rogers dot com
- Debian - when you have better things to do than fixing a system
To unsubscribe from the hobbit list, send an e-mail to hobbit-unsubscribe at hswn.dk
participants (8)
-
Galen.Johnson@sas.com
-
ghubbard@hp.com
-
greg.hubbard@eds.com
-
jkwade@futurefrontiers.com
-
JMSmith@stvincenthealth.com
-
lka0871@rogers.com
-
stef.coene@docum.org
-
vadud3@gmail.com