by

Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Sep 18 2017 22:37

    shoekstra on use_nginx

    (compare)

  • Sep 18 2017 22:37

    tas50 on master

    Depend on nginx instead of chef… Use nginx >= 7.0 Merge pull request #552 from so… (compare)

  • Sep 18 2017 22:37
    tas50 closed #552
  • Sep 18 2017 22:14
    shoekstra synchronize #552
  • Sep 18 2017 22:14

    shoekstra on use_nginx

    Use nginx >= 7.0 (compare)

  • Sep 18 2017 22:12
    shoekstra commented #551
  • Sep 18 2017 22:11
    shoekstra commented #552
  • Sep 18 2017 22:11
    shoekstra commented #552
  • Sep 18 2017 22:09
    shoekstra closed #546
  • Sep 18 2017 22:09
    shoekstra commented #546
  • Sep 18 2017 22:06
    shoekstra synchronize #552
  • Sep 18 2017 22:06

    shoekstra on use_nginx

    Depend on nginx instead of chef… (compare)

  • Sep 18 2017 22:03
    shoekstra review_requested #551
  • Sep 18 2017 22:01
    shoekstra synchronize #551
  • Sep 18 2017 22:01

    shoekstra on release_8.0.0

    Release 8.0.0 (compare)

  • Sep 18 2017 22:00
    shoekstra review_requested #552
  • Sep 18 2017 22:00
    shoekstra review_requested #552
  • Sep 18 2017 22:00
    shoekstra opened #552
  • Sep 18 2017 21:59

    shoekstra on use_nginx

    Depend on nginx instead of chef… (compare)

  • Sep 18 2017 21:57
    shoekstra review_requested #551
Jose Olcese
@jolcese
Thanks @kkdk5535 . I'll start integrating this idea into the community recipe
Ovais Tariq
@ovaistariq
@sbotman any suggestions on how to manage delaying monitoring of hosts
for example, we want to ignore hosts via tags, but if its a new node nagios happens to discover it before that node has run the recipe that sets the tags
i have modified the _load_default_config recipe as follows
nodes.each do |n|
  # Does the node need to have a particular recipe in the run_list for it to
  # be monitored? If so search the node's run_list
  next if (not node['nagios']['search_recipe_run_list'].nil? and not n.recipe?(node['nagios']['search_recipe_run_list']))

  if n.respond_to?('tags')
    Nagios.instance.push(n) unless nagios_array(n.tags).any? { |tag| exclude_tag.include?(tag) }
  else
    Nagios.instance.push(n)
  end
end
and then defined the following attribute
default['nagios']['search_recipe_run_list’] = ‘some_cookbook::some_recipe'
Sander Botman
@sbotman
Hmmmm
Sander Botman
@sbotman
so the attribute on the nagios server will be the name of a recipe that needs to be on the runlist of all nodes that you want to monitor with nagios..
Ovais Tariq
@ovaistariq
Yes that's what I am doing right now
I couldn't find a better way of doing it otherwise
The problem with ignoring by tags is that when a node is bootstrapped it registers with the chef server but hasn't run the recipe yet
So Nagios becomes aware of it, however no tags are set yet because the runlist is still being applied or hasn't been applied yet
@sbotman if you have any other ideas
Sander Botman
@sbotman
Well, we can also ignore the client within nagios if the chef client is unable to run, so we would need to check the last update attribute. But we are also entering dummy nodes within chef for monitoring, and these would also be ignored because they don't contain this attribute...
Ovais Tariq
@ovaistariq
So what do you think is the best way to tackle this problem ?
Jose Olcese
@joseolcese
Question, I'm installing nagios on ubuntu 14.04. I also install nrpe in clients and in server. If I install nrpe from source, I get check_nrpe installed on server and everything works. But if I install nrpe from packages (default in ubuntu), there's no /usr/lib/nagios/plugins/check_nrpe
Sander Botman
@sbotman
maybe you can use the provides option from apt-get to see which package provides check_nrpe
If apt-get has such option... because I normally use yum...
Jose Olcese
@joseolcese
it's provided by nagios-nrpe-plugin. But it will also install nagios itself...
and apache and...
Sander Botman
@sbotman
apt-file search check_nrpe
Oooh
So the package nagios-nrpe-plugin will also install other packages like nagios and apache?
Jose Olcese
@joseolcese
yes. nagios-nrpe-plugin has nagios, apache, etc as dependencies
So, when you install it, you end up with lost of things...
And I'm installing nagios server from source because we want 4.0.8.
On ubuntu the default package is 3 something
Sander Botman
@sbotman
oke, well that sucks..
sudo apt-get install nagios-nrpe-server nagios-plugins
so without the -nrpe- does that make any difference?
Jose Olcese
@joseolcese
Ok, seems that it's not a dependency and instead a recommended
And --no-install-recommends shall work on apt-get
Will let you know
Jose Olcese
@joseolcese
Yeap, that works.
Jose Olcese
@joseolcese

Instead of installing it "manually"

package "nagios-nrpe-plugin" do
  options "--force-yes -no-install-recommends"
end

should I add it to:

node['nrpe']['package']['options'] =  '-no-install-recommends'
node['nrpe']['packages'] = [ 'nagios-nrpe-plugin']

Which would be the right syntax for adding to node['nrpe']['packages'] ?

Ilja Krauchanka
@ikrauchanka
@joseolcese why you need to add this options, it may be that your system has been bad configured.
  default['nrpe']['packages']          = %w(nrpe nagios-plugins-disk nagios-plugins-load nagios-plugins-procs nagios-plugins-users)
Jose Olcese
@joseolcese
Thanks @ikrauchanka
Ilja Krauchanka
@ikrauchanka
Hello dear friends, I have a question: in cookbook I have 'members' => nagios_users.return_user_contacts but how I can put this into data bag?
Sander Botman
@sbotman
I'm wondering what you are trying to do by putting the members into a databag.. because these users are coming also from a nagios_users databag if you are not using the nagios_contact definition.
Ilja Krauchanka
@ikrauchanka
This message was deleted
nagios_contactgroup 'admins' do
  options 'alias'   => 'Nagios Administrators',
          'members' => nagios_users.return_user_contacts
end
@sbotman I would like put everything into data bags, form the git pages I found that we can specify members by name, but what should I put into data bag in members if I want to encounter all users?
also we have templates in data bag for services, hosts can I follow same way and create template for users data bag?
Sander Botman
@sbotman
Yes, you should be able to create nagios_users databag with users
Ilja Krauchanka
@ikrauchanka
templates, I need to create user template and then include it in every user data bag file https://github.com/schubergphilis/nagios/wiki/templates
Sander Botman
@sbotman
Hmmm. no, that will not work
I cannot remember me writing that also for users.
Ironpillow
@ironpillow
hi all, i recently came across nagios plugins. I am little confused on how to compile just one plugin check_dhcp and run the binary on mac os x. I do not have nagios core. can just compile the plugin? thanks!
Ilja Krauchanka
@ikrauchanka
@ironpillow tell us what problem you're trying to solve?