Hallo og takk for sist.
Vidar nevnte til meg at hvis man satte opp nav-boksen som syslog server for cisco-boksene ville meldinger kunne leses under NAVLog. Har gjort dette for 3 switcher (2 cat-sw og 1 ios-sw), men finner ingen meldinger i NAVLog.
Men det ligger meldinger /usr/local/nav/local/log/syslog/cisco.log en kort stund f?r denne t?mmes av navlog/insertpl scriptet: Nov 7 15:58:20 molde-telerom2-sw2 382: 1d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/29, changed state to down Nov 7 15:58:22 molde-telerom2-sw2 383: 1d04h: %LINK-3-UPDOWN: Interface FastEthernet0/29, changed state to up Nov 7 15:58:22 molde-telerom2-sw2 384: 1d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/29, changed state to up Nov 7 15:58:24 molde-telerom2-sw2 385: 1d04h: %LINK-3-UPDOWN: Interface FastEthernet0/35, changed state to down Nov 7 15:58:24 molde-telerom2-sw2 386: 1d04h: %LINEPROTO-5-UPDOWN: Line protocol on Interface FastEthernet0/35, changed state to down (Jeg har med vilje satt lavt logg-niv? for ? f? noen meldinger.)
Hvor blir disse meldingene av ? Jeg finner ingen feil i NAVLogs feilrapport heller. Kan dette komme av at tabellen origin ikke har definerte rader for systemid=2 (cisco) og at det mangler definisjoner i tabellen type for cisco ?
navlog=# select * from origin; id | name | systemid | category ----+---------------+----------+---------- 1 | tekstfiler | 1 | pl 2 | bokser | 1 | pl 3 | gwporter | 1 | pl 4 | swporter | 1 | pl 5 | fyll_db | 1 | pl
navlog=# select * from type; id | systemid | facility | mnemonic | priorityid | defaultmessage ----+----------+----------+----------------+------------+---------------------------------------------------------------------------------------------------------------------------------------------- 1 | 1 | DEBUG | NOOVRWRT | 8 | Not overwriteing prefix "$prefix". 2 | 1 | DEBUG | NOID | 8 | Could not resolve new identity for $ip, $module, $port. 3 | 1 | DATABASE | ERROR | 5 | Database could not do "$message" in "$sql". 4 | 1 | DATABASE | DELETE | 7 | Deleting from table "$table" where "$where". 5 | 1 | DATABASE | REFERENCE | 4 | Key referenced from table $child $field not found in parent table $parent. $sql. ...
navlog=# select * from system; id | name | description ----+------------+------------- 1 | navmessage | 2 | cisco |
navlog=# select * from message; id|ime|originid |priority |typeid |message
Eller er det noe helt annet som gj?r dette ?
- Odd Arne Hauge