Page 1 of 1

Ping & TraceRoute Actions

Posted: Wed Feb 01, 2017 8:24 pm
by Fred Kroeger
I'm using ModGearman quite a lot now to monitor servers behind firewalls or on restricted networks.
As the Ping & TraceRoute actions are run locally from the NAgiosXI server, these of course are now failing or returning wrong results. Which of course confuses the users when they try to use it.
Is it possible to build a bit more intellegence into the actions to either submit the action via Nagios and then Mod-Gearman can handle it based on the Hostgroup or restrict the action link depending on the Hostgroup of the server that is being checked?

regards.... Fred

Re: Ping & TraceRoute Actions

Posted: Thu Feb 02, 2017 11:00 am
by rkennedy
I filed a feature request for this -

Code: Select all

NEW TASK ID 10926 created - Nagios XI Feature Request: Add option to ping or traceroute through gearman rather than local XI
I believe it's a great idea, especially with a network as you've mentioned.

Re: Ping & TraceRoute Actions

Posted: Fri Feb 03, 2017 3:06 am
by Fred Kroeger
Thanks - the other module that I struggle using with ModGearman are the Config Wizards - especially those that connect to the device to create the monitors eg: Network Switch / Router where it makes an SNMP connection to detect the ports.
I end up firing up a free NagiosXI on the server that hosts the ModGearman Worker, run the config wizard for the Network Switch and then copy over all configs to the Nagios server. Tedious......
Fred

Re: Ping & TraceRoute Actions

Posted: Fri Feb 03, 2017 10:12 am
by rkennedy
I brought this up to our Developers, and also filed a feature request. It'd have quite a bit of overhead, but would really add an entire new functionality to XI.

Code: Select all

NEW TASK ID 10940 created - Nagios XI Feature Request: Add option to run wizard through gearman worker
Thanks for the idea!

Re: Ping & TraceRoute Actions

Posted: Fri Feb 03, 2017 10:30 am
by bheden
Believe it or not, I've done this before: I used to have several ModGearman workers, a few specific ones performed bandwidth calculations ONLY. They were separated by logical networks however. I modified the switch wizard to add a drop down to select from a predefined host, and then using SSHKey magic would perform the appropriate cfgmaker command on the right server! It worked beautifully.

This is definitely do-able, and would definitely be an advantage. Thanks.

Re: Ping & TraceRoute Actions

Posted: Mon Feb 06, 2017 12:53 am
by Fred Kroeger
Brilliant ! Thanks ! Exactly what I was looking for.
Fred

Re: Ping & TraceRoute Actions

Posted: Mon Feb 06, 2017 10:30 am
by dwhitfield
It sounds like this issue has been resolved. Is it okay if we lock this thread? Thanks for choosing the Nagios forums!

Re: Ping & TraceRoute Actions

Posted: Wed Feb 08, 2017 3:41 am
by Fred Kroeger
Yes - all good - you can close this. Thanks for your help.
Fred