Re: monitoring errorlog with wsm?
Holger.VanKoll_at_SWISSCOM.COM
Date: 08/30/05
- Previous message: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"
- Maybe in reply to: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"
- Next in thread: Justin Bleistein: "Re: monitoring errorlog with wsm?"
- Reply: Justin Bleistein: "Re: monitoring errorlog with wsm?"
- Reply: fmu_at_OERAG.DE: "Antwort: Re: monitoring errorlog with wsm?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Tue, 30 Aug 2005 16:25:37 +0200 To: aix-l@Princeton.EDU
wsm wasnt written to do this
wsm is more ore less a grafical smitty
look at rmc/rsct
attached is an email to this list from Adams Kevin
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
fmu@OERAG.DE
Sent: Tuesday, August 30, 2005 4:12 PM
To: aix-l@Princeton.EDU
Subject: monitoring errorlog with wsm?
Hi,
isn't it possible to monitor the errorlog over wsm?
I monitor my notes (p615, p630, p660 and som SP-notes) over wsm
(webbased
system management). This is default on AIX. So I can define many events
and
the response to the events (for example email to admin).
But I want monitor the errorlog with wsm. For example, the node get a
error
and I get a email from the system that the node has a new entrie in the
errorlog.
Is this possible?
Best regards,
Frank Mueller
----- Weitergeleitet von Frank Mueller/AG/OERAG am 30.08.2005 16:12
-----
Frank
Mueller/AG/OERAG
An
17.08.2005 14:15 IBM AIX Discussion List
<aix-l@Princeton.EDU>
Kopie
Thema
monitoring errorlog with wsm?
(Document link: Frank Mueller)
Hi,
we monitor all SP-nodes with PSSP (event persepctives). With PSSP can I
monitor the errorlogs of the nodes.
Now I monitor our standalone notes over WSM (web-based system
management)
which is default on AIX. But I don't see a event definition concerning
"monitor errorlog"
Can I define this in wsm?
Best regards,
Frank
attached mail follows:
Date: Mon, 10 Jan 2005 20:54:08 +0200 To: <aix-l@Princeton.EDU>
Shawn,
You're really asking an RMC question.
What you need is a condition and then a response.
Here is a script I use. I use a modified syslogevent and notifyevent
based
on IBM's supplied notifyevent.
This script monitors paging space and / /var /tmp and /audit
filesystems.
Below 50% utilization I email and syslog, and above 50% I email, syslog
and
page. You can change that.
There is an RMC redbook too.
This should get you going:
# cat mkrmc
#!/bin/ksh
. /.profile
mail='E-mail root anytime'
page='PBH Page event anytime'
slog='PBH Syslog event anytime'
mkresponse -n "Page message" \
-d 1-7 \
-t 0000-2400 \
-s "/usr/local/pacificare/rmc/notifyevent $KEVIN_CELL" \
-e b \
-r 0 \
"$page"
mkresponse -n "Syslog message" \
-d 1-7 \
-t 0000-2400 \
-s "/usr/local/pacificare/rmc/syslogevent" \
-e b \
-r 0 \
"$slog"
for pct in 25 50 75 85 90 95 100; do
mkcondition -r "IBM.Host" \
-e "PctTotalPgSpUsed > $pct" \
-E "PctTotalPgSpUsed < $pct" \
-d "More than $pct percent of total paging space in use." \
-D "Less than $pct percent of total paging space in use." \
-S "i" \
-m "l" "PBH Paging percent space used $pct"
if (( $pct > 50 ));then
startcondresp "PBH Paging percent space used $pct" \
"$mail" \
"$slog" \
"$page"
else
startcondresp "PBH Paging percent space used $pct" \
"$mail" \
"$slog"
fi
for fs in root audit tmp var; do
if [[ $fs = root ]]; then
fs=""
fi
mkcondition -r "IBM.FileSystem" \
-e "PercentTotUsed > $pct" \
-E "PercentTotUsed < $pct" \
-d "More than $pct percent of total space in use." \
-D "Less than $pct percent of total space in use." \
-s "Name == \"/$fs\"" \
-S "i" \
-m "l" "PBH /$fs percent space used $pct"
if (( $pct > 50 ));then
startcondresp "PBH /$fs percent space used $pct" \
"$mail" \
"$slog" \
"$page"
else
startcondresp "PBH /$fs percent space used $pct" \
"$mail" \
"$slog"
fi
done
done
Kevin Adams
-----Original Message-----
From: IBM AIX Discussion List [mailto:aix-l@Princeton.EDU] On Behalf Of
Shawn Bierman
Sent: Monday, January 10, 2005 6:09 AM
To: aix-l@Princeton.EDU
Subject: [aix-l] anyone RSCT savy?
I would like to run a custom script when a filesystem gets to 75% full.
However, I cannot find a response that will fire a script off.
biermans@sf1n03en4:/home/biermans > lsresponse
Displaying response information:
ResponseName
"Broadcast event on-shift"
"E-mail root off-shift"
"E-mail root anytime"
"Log event anytime"
"Informational notifications"
"Warning notifications"
"Critical notifications"
"Generate SNMP trap"
I'm just learing about rsct so its likely I'm just overlooking
something. Can I create a custom response that will run a script?
tia,
-shawn
This electronic message transmission, including any attachments,
contains information from PacifiCare Health Systems Inc. which may be
confidential or privileged. The information is intended to be for the
use of the individual or entity named above. If you are not the intended
recipient, be aware that any disclosure, copying, distribution or use of
the contents of this information is prohibited.
If you have received this electronic transmission in error, please
notify the sender immediately by a "reply to sender only" message and
destroy all electronic and hard copies of the communication, including
attachments.
- Previous message: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"
- Maybe in reply to: fmu_at_OERAG.DE: "monitoring errorlog with wsm?"
- Next in thread: Justin Bleistein: "Re: monitoring errorlog with wsm?"
- Reply: Justin Bleistein: "Re: monitoring errorlog with wsm?"
- Reply: fmu_at_OERAG.DE: "Antwort: Re: monitoring errorlog with wsm?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|