Well, the alog shows that at first nvcorrd cannot connect to nvcold, so he
cannot do the query collection.
Is nvcold running? Did you just start the daemons -- if so then h probabyl
busy. Notice that eventually he connects.
Then he asks if the origin of the trap is in the collection and nvcold says
it is not, so nothing is done.
Has this ever worked?
I think you should be using Attribute 2, which for NetView traps is the
hostname, rather than Origin here, which may be the NetView box itself.
James Shanks
Team Leader, Level 3 Support
Tivoli NetView for UNIX and NT
gyula.furton@degaz.hu@tkg.com on 07/20/2001 09:46:12 AM
Please respond to IBM NetView Discussion <nv-l@tkg.com>
Sent by: owner-nv-l@tkg.com
To: nv-l@tkg.com
cc:
Subject: [NV-L] ruleset is not working
Hi Everyone!
I have a ruleset, which is not working correctly.
Name is: router_sms.rs
Description:this is sending mail and SMS (through the mobile gateway), when
the node is unreachable until 2 minutes.
The ruleset is containing:
[ROOT]:/usr/OV/conf/rulesets:> more router_sms.rs
RuleSet2 RuleSet NVQryColl3
"" 0
NVQryColl3 NVQryColl TrapID4 TrapID5
Origin Routers 1 ""
TrapID4 TrapID AttrDelay6.2
netView6000 1.3.6.1.4.1.2.6.3 "6 " "58916865 " 0 "netView6000
1.3.6.1.4.1.2.6.3" "IBM_NVNDWN_EV Specific 58916865
" "" 0
TrapID5 TrapID AttrDelay6
netView6000 1.3.6.1.4.1.2.6.3 "6 " "58916864 " 0 "netView6000
1.3.6.1.4.1.2.6.3" "IBM_NVNUP_EV Specific 58916864
" "" 0
AttrDelay6 AttrDelay Action7
"" 0 "" 120 "" 0 0 0 "2 2 0~"
Action7 Action Action8
"/usr/OV/scripts/sendSMS.sh $NVATTR_2 $NVATTR_3 $NVT" "Ez kuldi az sms-t,
ha 2 percig nem elerheto valamelyik router"
Action8 Action ForwardCorr9
"/usr/OV/scripts/sendMAIL.sh $NVATTR_2 $NVATTR_3 $NVT" ""
ForwardCorr9 ForwardCorr
""
[ROOT]:/usr/OV/conf/rulesets:>
The sendSMS.sh containing:
[ROOT]:/usr/OV/scripts:> more sendSMS.sh
mail -s "NetView WARNING !!! $1 $2 $3 $NVT " 1212@xyz.hu < /dev/null
echo `date` $1 $2 $3 $NVT >> /usr/OV/scripts/sms.log
[ROOT]:/usr/OV/scripts:>
Where the 1212@xyz.hu is my mailbox. (that is working correct).
The nvcorrd.alog file is begin:
[ROOT]:/usr/OV/log:> more nvcorrd.alog
2001/20/07 14:38:04 .//nl_nvcorrd.C[944] : ><************ nvcorrd
starting *************
2001/20/07 14:38:04 .//nl_nvcorrd.C[945] : ><nvcorrd level:11/13
2001/20/07 14:38:11 NVcollDnode.C[64] : NVCollCmpDnode::Resolve
nvCollectionOpen failed: Cannot connect to nvcold
2001/20/07 14:38:11 NVcollDnode.C[64] : NVCollCmpDnode::Resolve
nvCollectionOpen failed: Cannot connect to nvcold
2001/20/07 14:38:11 NVcollDnode.C[64] : NVCollCmpDnode::Resolve
nvCollectionOpen failed: Cannot connect to nvcold
2001/20/07 14:44:19 NVcollDnode.C[108] : NVCollCmpDnode::Resolve
NVCollCmpDnode(Attr: Origin contained in Routers) Failed, no
objid for attr Origin, obj id = 3232269206
2001/20/07 14:44:19 NVcollDnode.C[111] : Object not found
2001/20/07 14:44:19 NVcollDnode.C[108] : NVCollCmpDnode::Resolve
NVCollCmpDnode(Attr: Origin contained in Switchs) Failed, no
objid for attr Origin, obj id = 3232269206
2001/20/07 14:44:19 NVcollDnode.C[111] : Object not found
.......
The nvcorrd.blog file is begin:
[ROOT]:/usr/OV/log:> more nvcorrd.blog
2001/18/07 14:25:37 .//nl_nvcorrd.C[944] : ><************ nvcorrd
starting *************
2001/18/07 14:25:37 .//nl_nvcorrd.C[945] : ><nvcorrd level:11/13
2001/18/07 14:49:45 NVcollDnode.C[108] : NVCollCmpDnode::Resolve
NVCollCmpDnode(Attr: Origin contained in Routers) Failed, no
objid for attr Origin, obj id = 3232269014
2001/18/07 14:49:45 NVcollDnode.C[111] : Object not found
.....
What is wrong?
Can everyone help me?
----------------------------------------
Best regards.
Fürtön Gyula
network administrator
DÉGÁZ Rt., Szeged
Tel: +36-62-569-778
Mobil: +36-30-9-157-076
___________________
http://www.degaz.hu
_________________________________________________________________________
NV-L List information and Archives: http://www.tkg.com/nv-l
|