Closed ntwrk80 closed 1 year ago
Ok further investigation shows that the poller is exiting without any errors after systemd starts it. Is there a way to run it manually with debugging?
The log files should have further information. Sometimes there is a lock file that exists that prevents polling occurring that needs to be deleted. Please post what you see.
All I get is the following:
2020-09-21 11:03:07,268 - switchmap_file - INFO - [switchmap-ng] (1070S): Daemon switchmap-ng-poller started - PID file: /home/switchmap-ng/.switchmap/pid/switchmap-ng-poller.pid
2020-09-21 11:03:07,268 - switchmap_file - INFO - [switchmap-ng] (1056S): Starting device polling sequence.
2020-09-21 11:03:07,300 - switchmap_file - INFO - [switchmap-ng] (1078S): Querying topology data from host 10.108.32.101.
2020-09-21 11:03:07,301 - switchmap_file - INFO - [switchmap-ng] (1078S): Querying topology data from host 10.140.50.36.
2020-09-21 11:03:07,302 - switchmap_file - INFO - [switchmap-ng] (1078S): Querying topology data from host 10.140.50.37.
2020-09-21 11:03:12,916 - switchmap_file - INFO - [switchmap-ng] (1077S): Completed topology query from host 10.108.32.101.
At this point systemd thinks it's active but exited...
Loaded: loaded (/etc/systemd/system/switchmap-ng-poller.service; enabled; vendor preset: enabled)
Active: active (exited) since Mon 2020-09-21 11:03:07 CDT; 1min 19s ago
Process: 551915 ExecStart=/home/switchmap-ng/bin/systemd/switchmap-ng-poller $START (code=exited, status=0/SUCCESS)
Main PID: 551924 (code=exited, status=0/SUCCESS)
Tasks: 0 (limit: 76949)
Memory: 5.1M
CGroup: /system.slice/switchmap-ng-poller.service
Sep 21 11:03:06 iscap-nettools01 systemd[1]: Starting switchmap-ng: Network state SNMP poller...
Sep 21 11:03:07 iscap-nettools01 systemd[1]: Started switchmap-ng: Network state SNMP poller.
The poller continuously runs as a system daemon. It interrogates the configured devices on a regular basis. What you see there should be expected.
Do you see the devices on the web page? There is a separate daemon for that.
At that point though there are no switchmap-ng-poller processes left to spawn the next poll. Also it doesn't actually create all of the hosts in the config file. Only three show up in the API.
Trying to revive this repo... If you still need this researched, please say so here, otherwise please close the issue.
I no longer have access to the original server this was on. I look forward to seeing a restart of this repo and progress as switchmap is one of my favorite tools.
ok to close this issue (for now)?
Yes
On Fri, Feb 10, 2023 at 3:54 PM dcthor @.***> wrote:
ok to close this issue (for now)?
— Reply to this email directly, view it on GitHub https://github.com/PalisadoesFoundation/switchmap-ng/issues/123#issuecomment-1426389093, or unsubscribe https://github.com/notifications/unsubscribe-auth/AB75PX7ODYEZB3LH624TRXLWW22JLANCNFSM4RUR7R2Q . You are receiving this because you authored the thread.Message ID: @.***>
--
Ben Story CCNP Enterprise, CCNA, Cisco CyberOps Associate, CySA+, AWS Cloud Practitioner, PCNSE @. @.> @ntwrk80 https://packitforwarding.com "I do not fear computers. I fear the lack of them." -- Isaac Asimov
@palisadoes can you please close this issue?
I'm trying to setup switchmap-ng and am getting most of the information, but the mac addresses and IP addresses aren't populating to the switch pages. Classic switchmap is working fine for the same subset of switches. Is there a configuration directive I'm missing to add "routers" like the old package? I'm running it against a Catalyst 4500 and two 3850 stacks.