Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cannot get any logs altough the ospf seems ok #15

Open
chatasos opened this issue Nov 14, 2024 · 1 comment
Open

cannot get any logs altough the ospf seems ok #15

chatasos opened this issue Nov 14, 2024 · 1 comment

Comments

@chatasos
Copy link

Hi,

I'm having trouble getting any logs, although the OSPF adjacency is ok and i have added/removed routes many times.

~/ospfwatcher$ ll watcher/logs/
total 8
drwxr-xr-x 2 tasosch root   4096 Nov 14 09:37 ./
drwxrwxr-x 5 tasosch docker 4096 Nov 14 09:24 ../
-rwxrwxrwx 1 tasosch root      0 Nov 14 09:24 watcher1-gre999-ospf.ospf.log*
-rwxr-xr-x 1 root    root      0 Nov 14 09:37 watcher.log*
-rw-r--r-- 1 root    root      0 Nov 14 09:37 watcher.log_errors.log

watcher1-gre999-ospf# sh ip ospf nei

Neighbor ID     Pri State           Up Time         Dead Time Address         Interface                        RXmtL RqstL DBsmL
192.168.188.1     1 Full/-          1h56m19s          32.588s 10.252.0.254    gre1:10.252.0.253                    0     0     0

watcher1-gre999-ospf# sh ip ospf database 

       OSPF Router with ID (172.20.20.2)

                Router Link States (Area 0.0.0.0)

Link ID         ADV Router      Age  Seq#       CkSum  Link count
172.20.20.2    172.20.20.2       99 0x80000009 0x53fa 2
192.168.188.1  192.168.188.1   1100 0x80000009 0xa373 2

                AS External Link States

Link ID         ADV Router      Age  Seq#       CkSum  Route
10.10.51.0     192.168.188.1   1346 0x80000003 0xbb87 E2 10.10.51.0/24 [0x0]
10.10.52.0     192.168.188.1   1346 0x80000003 0xbd03 E2 10.10.52.0/25 [0x0]
10.10.52.10    192.168.188.1   1346 0x80000003 0x56e0 E2 10.10.52.10/32 [0x0]
10.10.52.128   192.168.188.1   1346 0x80000003 0xb887 E2 10.10.52.128/25 [0x0]
10.10.52.231   192.168.188.1   1346 0x80000003 0xabad E2 10.10.52.231/32 [0x0]


docker seems ok

~/ospfwatcher$ docker ps
CONTAINER ID   IMAGE                          COMMAND                  CREATED          STATUS                    PORTS                            NAMES
08c9b0f6dcfb   ospfwatcher_logstash           "/usr/local/bin/dock…"   20 minutes ago   Up 20 minutes (healthy)   5044/tcp, 9600/tcp               logstash
2f0ce11c3486   vadims06/ospf-watcher:latest   "python pysniff.py"      3 hours ago      Up 3 hours                                                 watcher1-gre999-ospf-ospf-watcher
8e6ffe47e952   quay.io/frrouting/frr:8.5.4    "/sbin/tini -- /usr/…"   3 hours ago      Up 3 hours                                                 watcher1-gre999-ospf-router
9a92f6198c62   nginx:latest                   "/docker-entrypoint.…"   4 hours ago      Up 4 hours                80/tcp, 0.0.0.0:8080->8079/tcp   webserver
677989c6fe50   vadims06/topolograph:latest    "gunicorn -w 4 --bin…"   4 hours ago      Up 4 hours                5000/tcp                         flask
0a9fe91b3e0f   mongo:4.0.8                    "docker-entrypoint.s…"   4 hours ago      Up 4 hours                27017/tcp                        mongodb

Any idea what might be wrong?

btw, the following in docker-compose.yml is probably wrong

  logstash-index-creator:
    image: ospfwatcher-watcher:latest
    container_name: logstash-index-creator

is this the correct one?

  logstash-index-creator:
    image: vadims06/ospf-watcher:latest
    container_name: logstash-index-creator
@Vadims06
Copy link
Owner

Hi @chatasos ,
yeah, your setup looks good: OSPF adj is up, but watcher1-gre999-ospf.ospf.log* is empty, I noticed that it's ending by *, I have noticed it before.
I would suggest to set DEBUG_BOOL=True in .env and restart the watcher: sudo clab destroy --topo/ sudo clab deploy --topo. Then please share docker logs watcher1-gre999-ospf-ospf-watcher

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants