Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Activity
  • Oct 14 10:18
    monitoringjunkie commented #61
  • Oct 12 11:34
    workingboxatowns opened #61
  • Jun 08 01:24
    mtridici opened #60
  • May 05 06:45
    Pio84 opened #59
  • Apr 17 20:34
    giangiobomber edited #58
  • Apr 17 20:33
    giangiobomber opened #58
  • Apr 09 18:25
    pereyrdi opened #57
  • Mar 20 14:50
    TheFlyingCorpse edited #54
  • Mar 20 14:49
    TheFlyingCorpse edited #54
  • Mar 20 10:40
    TheFlyingCorpse opened #54
  • Feb 11 13:58
    RUDI-TERROR opened #53
  • Feb 04 13:48
    manfredw commented #52
  • Feb 04 13:37
    p4k8 commented #52
  • Jan 06 22:11
    manfredw commented #52
  • Jan 06 19:28
    patrickpr commented #52
  • Jan 02 08:05
    patrickpr labeled #52
  • Jan 02 08:05
    patrickpr assigned #52
  • Jan 01 21:42
    manfredw opened #52
  • Nov 24 2020 15:22

    patrickpr on Multiple-rules---issue-#47

    move apply rule from trap to Ru… (compare)

  • Nov 23 2020 12:35

    patrickpr on Multiple-rules---issue-#47

    apply rule in RuleObject (compare)

Patrick
@patrickpr
Hi, please send me feedbacks, feature request on trapdirector project !
jeffstrahl
@jeffstrahl
Hey @patrickpr, in docs/01-install.md, under "Set up mibs", you have the path defined as "/usr/share/icingaweb2/module/trapdirector/mibs", but it should be "/usr/share/icingaweb2/modules/trapdirector/mibs". The "s" is missing from modules.
Also, when I try to set the retention length under Database to 30 days, from 60 days, I get error[object Object], so I am not sure how to look into and correct that issue.
fromanm1
@fromanm1

hi @patrickpr , first things first, great job, the trapdirector works great!, thank you very much.

  • the one detail I can't make to work is the match by host group
  • request: match a "code" or ID or hostname from a snmptrap to a host on icinga, not just the IP (I have several servers behind the same IP, so I can't tell one from the other right now.
  • request: add a second and third rule to the handler, example, in case a value is ok if >10 and <20, and has a warning if is <10 and >20, and a critical if is <5 and >25 (for example a temp sensor that has a safe range of working temp)

thanks.

Patrick
@patrickpr
Hi @fromanm1 ,
Thanks for the feedback.
1) Match by hostgroup should work : when you select a hostgroup, it will catch all IP of members of this group and apply rule when trap is received from one of these IP.
Note : the IP list is refreshed every time a trap is received
Patrick
@patrickpr
2) I'm currently working on a plugin system that should do the trick, but this is usefull (for ex in vmware reporting error on a host) so I'll take some time to think about it : open an issue/feature request about this.
3) you can do this with 3 rules but I agree it could be nice to have rules attached to specific status instead of rules -> single status. Same as 2, open a feature request.
Patrick
@patrickpr
Note : I've done a lot of code rewrite these last days to make the code easy to maintain, @fromanm1 thxs for reporting the bugs !
fromanm1
@fromanm1

no problem mate!

about the "2", yes it can be done with 3 rules, but it means the perl script will work 3 times for each trap, for now that's no problem, but with millions of traps the load will be hell.

Florian-MRNSW
@Florian-MRNSW
Hi @patrickpr , thank you for the great work. I am not sure if I am doing something wrong when using the "select by hostgoup" function. When I do select the hostgroup and service, it stops the reporting of the traps. The error I see in the syslog is:"Feb 27 18:22:06 nagios php: [TrapDirector] [Error]: Connection failed to IDO : invalid data source name
Feb 27 18:22:06 nagios php: [TrapDirector] [Warning]: Exception : [TrapDirector] [Error]: Connection failed to IDO : invalid data source name"
But if I change it back to "host name" and "service" it will work again.
Patrick
@patrickpr
Hi,
I will take a look at this, but are you sure about the settings of IDO database you configured in the module configuration is correct ?
Florian-MRNSW
@Florian-MRNSW
@patrickpr Thank you for looking into this. I really appreciate it. I've checked again and the settings are correct. The odd thing is that if I use just the hostname and service, then it works fine.
Patrick
@patrickpr
@Florian-MRNSW : I had a look and both case do an IDO db request. Please reproduce the problem in debug mode and send me the logs in a new case.
Open an issue here : https://github.com/patrickpr/trapdirector/issues/new/choose
(open bug report)To go on debug mode see in
the bug report description
mabfuss
@mabfuss
Hi, my traps are in /var/log/messages but not in the configured database. Whats wrong? The status after installation and configuration is okay.
Patrick
@patrickpr
@mabfuss : Hi, sorry for the late answer. It's difficult for me to answer with few details. If the problem is not solved, open a case.
mabfuss
@mabfuss
@patrickpr Hi, thanks for your answer. I'am new at gitter. Where can i open a case? Regards.
Patrick
@patrickpr
PerPilot
@PerPilot
Hi, we are trying to install trapdirector in our Icinga installation, but we have run into a couple of problems. We have enabled the module, but we the error messages
Error detected : Path "/etc/icingaweb2/modules/trapdirector" is not writable, No database in config.ini and IDO Database : No database in config.ini. We configured the folder /etc/icingaweb2/modules/trapdirector with 777 permissions to see if that helped, but we still get the same error messages. Our databases are all defined in resources.ini rather than config.ini. Is it possible to point trapdirector to look for it there instead?
Patrick
@patrickpr
@PerPilot : Hi, it seems you didn't save the module configuration in the settings page. Have a look at the install doc ( https://github.com/patrickpr/trapdirector/blob/master/docs/01-install.md ) and open a issue if the problem isn't solved.
The config.ini file is the one used (and created) by the module.
PerPilot
@PerPilot
Hi Patrick, We found the culprit to be selinux. While selinux was active, our changes were not applied.
Patrick
@patrickpr
@PerPilot : Rob just pushed a PR last week to allow trapdirector to work with SELinux. GIve it a try (it's the latest master branch), and the docs are in pending PR but you can also have a look (patrickpr/trapdirector#38)
PerPilot
@PerPilot
Great! Will look into it. Thanks for the update.
GiorgoS Fragi
@gfragi_twitter
Hi, have installed the plugin and uploaded all mib files I need to. Everything looks fine since I have also tested the "test_trap_vx.sh" scripts, so the the test traps are visible to icinga. The problem starts when I am sending test trap from any other HW device. While I send test traps from the HW, I am also looking for incoming that traps with tcpdump in console and I am receiving them on console BUT it doesn't appear in traps->received section within icinga. What am i I missing?
GiorgoS Fragi
@gfragi_twitter
image.png
image.png
I have just noticed that error also
Patrick
@patrickpr
@gfragi_twitter : Check in system logs what is happening. It can be error on snmp community or during processing. Be sure to enable debug log in trapdirector and also check for snmptrapd logs.
(The error shown has be resolved in master branch, but I didn't make new realease that corrects the problem).
GiorgoS Fragi
@gfragi_twitter
@patrickpr thanks for reaponse unfortunately was the firewall. I have added an exception to port 162 and everything is fine. About the error i am not sure i understand your reply.
Patrick
@patrickpr
About the error (the image files you sent) : it is corrected and the fix will be in next release
dstrbh
@dstrbh
Hi! Thank you for this module! It really useful and understandable.
image.png
I have some question: when i tryed to add new Trap handler and link it to somegroup I receive this one error.
As i understood, problem is that my hostgroup isn't countable. But i have few devices in this group which issing by rules. What i'm doing wrong?
Patrick
@patrickpr
Hi,
This shouldn't happen : can you open a case ?