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

API Master #45

Closed
manfredw opened this issue Aug 31, 2020 · 6 comments
Closed

API Master #45

manfredw opened this issue Aug 31, 2020 · 6 comments
Assignees
Labels
bug Something isn't working

Comments

@manfredw
Copy link

Get debug logs

Log settings seems not to work (syslog or file), but the following messages are found in syslog:
[TrapDirector] [Warning]: No node in config file: /etc/icingaweb2/modules/trapdirector/config.ini
[TrapDirector] [Warning]: Unknown node status : setting to MASTER

Describe the bug

Unknown

To Reproduce

Comes with every new trap.

Expected behavior

No warning during normal operations.

Your Environment:

Trapdirector (branch master 2020-08-31) running on:
icinga2 2.11.2-1
icingaweb2 2.7.3
apache 2.4, php7.2.5

@patrickpr patrickpr self-assigned this Sep 1, 2020
@patrickpr patrickpr added the invalid This doesn't seem right label Sep 1, 2020
@patrickpr
Copy link
Owner

patrickpr commented Sep 1, 2020

I started to implement the HA feature of trapdirector related to issue #32 . This log will be gone when fully implemented (and correctly configured !).

@patrickpr patrickpr reopened this Sep 1, 2020
@patrickpr
Copy link
Owner

About the log settings, it might be related to forced debug. I'll have a look.

@patrickpr patrickpr added bug Something isn't working and removed invalid This doesn't seem right labels Sep 1, 2020
@patrickpr
Copy link
Owner

Get latest master version, I changed the log to default (as configured in status & mibs) : tell me if the logs are OK.

@manfredw
Copy link
Author

manfredw commented Sep 2, 2020

Why do you try to implement a HA feature in trapdirector?

Many network devices support only a very low number of trap receivers.
So I decided to use a cluster managed virtual IP on my (central) Icinga2 nodes. This offers not only a single point of contact to icingaweb2, it also solves the problem of receiving snmp traps within a HA cluster. All HA nodes share the same software (net-snmp, webserver with icingaweb2 and trapdirector) and configuration, but only the node with the virtual ip will receive the traps.
This concept will also work with satellite nodes by forwarding the traps to your central cluster from each satellite.

@patrickpr
Copy link
Owner

HA feature is needed to be aligned with HA in Icinga.
The virtual IP for trap receiver is what I was planning (see issue #32 )
Your solution works ( and it's simple as I like them) but I also need to have local trap evaluation in satellites and in case of HA Icinga master, I need the satellites to know where to push results/get configuration.

Opened a topic here to talk about it : https://community.icinga.com/t/trapdirector-ha-feature/5439

Are the logs OK ?

@patrickpr
Copy link
Owner

Open the case again in case of related problem.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants