GithubHelp home page GithubHelp logo

Comments (5)

sadsfae avatar sadsfae commented on July 21, 2024

Hey @ranjeetranjan please remove the ansible_host= from each entry and use /etc/hosts entries instead if you don't have a FQDN for them. That parameter is only used for devices that don't support SSH and Python libraries (switches, out-of-band interfaces, etc).

from ansible-nagios.

ranjeetranjan avatar ranjeetranjan commented on July 21, 2024

@sadsfae I am little confuse. Lets assume I am on 192.168.139.74.

root@mysql-conversions-1 ~]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

Please let me know what I have to remove? Or are you asking me to remove from Nagios server.

[root@nagios ansible-nagios]# cat /etc/hosts
127.0.0.1   localhost localhost.localdomain localhost4 localhost4.localdomain4
::1         localhost localhost.localdomain localhost6 localhost6.localdomain6

from ansible-nagios.

sadsfae avatar sadsfae commented on July 21, 2024

Hey @ranjeetranjan

In your Ansible hosts inventory file, remove ansible_host= directive.

Only the following inventory group entries require this (as it's used for devices without Python like out-of-band servers, PDU's, switches etc).

Unless you're using any of the below groups you have to remove the ansible_host= line after the hostname.

[switches]
[oobservers]
[idrac]
[supermicro-6048r]
[supermicro-6018r]
[supermicro-1028r]

from ansible-nagios.

ranjeetranjan avatar ranjeetranjan commented on July 21, 2024

@sadsfae SO you mean to say use like below?

[servers]
192.168.139.74

from ansible-nagios.

sadsfae avatar sadsfae commented on July 21, 2024

@ranjeetranjan yes, but do you have a hostname you can use? IP address may work too (I've actually never tested it). Even an /etc/hosts entry should suffice.

from ansible-nagios.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.