Comments (1)
Great work on this project. I'm trying to get this working with a largish number of servers and running into some issues. From my understanding, for this method to work it needs to gather facts for all servers, which can take quite some time and I've been finding issues if a server can't be connected to.
Are there any good ways to speed things up or work around the fact gathering?
Hey @jmreicha sorry for the late reply. Fact gathering is indeed going to be required for full functionality.
You can look into using the Ansible cache plugin for this. That should make a tremendous difference with lots of hosts and is highly recommended.
One other workaround here is to use the [oobservers]
inventory group for systems that are problematic to fact gathering. This provides only base ping, ssh and http checks on them. You could also toss these into [switches]
inventory group instead (just ping, ssh). Just keep in mind that each device/server entry can only belong to one inventory group.
Keep in mind for these two categories of systems since there is no fact generation you'll need to tell ansible the IP address of them.
e.g.
[oobservers]
slowhost01 ansible_host=10.1.20.222
slowhost02 ansible_host=10.1.20.223
[switches]
slowhost03 ansible_host=10.1.20.224
slowhost04 ansible_host=10.1.20.225
With the latter you obviously don't get the full functionality and all the checks you'd probably want.
If there's interest I can make a "no facts" inventory group that provides just bare-bones ping/ssh checks instead of abusing the [switches]
and [oobservers]
groups.
from ansible-nagios.
Related Issues (20)
- Create Jenkins Server Role
- Break out Firewall code into optional role
- make things more friendly for non-root users
- nagios_host_monitor_swap doesn't really work
- Add a service for checking DNS on Linux
- Use handlers for iptables-services firewall code
- Add new hosts HOT 1
- [RFE] Add mdadm software raid checks HOT 1
- [RFE] Support FreeNAS (BSD) clients and health checks
- [RFE] Support FreeBSD Nagios Clients
- [RFE] FreeNAS Status API Script Status needs Cleanup
- [RFE] Modernize Firewall code
- [RFE] Provide devices / IoT "ping only" monitoring group
- [RFE] Would be nice to make it compatible with Debian and Ubuntu OS
- Can not update servers.cfg HOT 2
- fatal: [host-01]: UNREACHABLE! HOT 1
- [bug] Some root disks get extrapolated incorrectly.
- [RFE] webserver SSL certificate validation checks
- [RFE] Add alerting via webhook
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ansible-nagios.