Nagios services file

I’ve created the following data bags:

/chef-repo/data_bags/nagios_contacts/nagios_contacts.json

{
“id”: “systems”,
“alias”: “systems”,
“use”: “default-contact”,
“email”: "nshah@theorchard.com"
}

*/chef-repo/data_bags/nagios_contactgroups/nagios_contactgroups
*

{
“id”: “it”,
“alias”: “Non-Administrator Contacts”,
“members”: “systems”
}

*/chef-repo/data_bags/nagios_services/all_ping.json
*

{
“id”: “ping”,
“hostgroup_name”: “all”,
“command_line”: “USER1/check_ping HOSTADDRESS -w 100.0,20% -c
500.0,60%”,
“servicegroups”: “ops”,
“contact_groups”: “it”
}

So why is it that when I do a chef-client, I am getting this and no where
is the contact_groups being defined:

}
define service {
service_description ping
hostgroup_name all
check_command check_ping
use default-service
servicegroups ops
}

Also, some of the other services are using other service groups and that is
not being reflected in the services.cfg even the data bags are all up to
date.

Any assistance would be appreciated.

  • Nikhil Shah */ System Administrator

nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard /
@orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and © are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited

Let me answer my own question...

For some reason when i ran knife data bag from file ...... it never
uploaded those changes to the chef server.

Thanks!

On Thu, Sep 5, 2013 at 10:41 AM, Nikhil Shah nshah@theorchard.com wrote:

I've created the following data bags:

/chef-repo/data_bags/nagios_contacts/nagios_contacts.json

{
"id": "systems",
"alias": "systems",
"use": "default-contact",
"email": "nshah@theorchard.com"
}

*/chef-repo/data_bags/nagios_contactgroups/nagios_contactgroups
*

{
"id": "it",
"alias": "Non-Administrator Contacts",
"members": "systems"
}

*/chef-repo/data_bags/nagios_services/all_ping.json
*

{
"id": "ping",
"hostgroup_name": "all",
"command_line": "$USER1$/check_ping $HOSTADDRESS$ -w 100.0,20% -c
500.0,60%",
"servicegroups": "ops",
"contact_groups": "it"
}

So why is it that when I do a chef-client, I am getting this and no where
is the contact_groups being defined:

}
define service {
service_description ping
hostgroup_name all
check_command check_ping
use default-service
servicegroups ops
}

Also, some of the other services are using other service groups and that
is not being reflected in the services.cfg even the data bags are all up to
date.

Any assistance would be appreciated.

--

  • Nikhil Shah */ System Administrator

nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard / @orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and (c) are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited

--

  • Nikhil Shah */ System Administrator

nshah@theorchard.com

The Orchard® / www.theorchard.com

t (+1) 212.308.5648 / f (+1) 212.201.9203
23 E. 4th St., 3rd Fl / New York, NY 10003

The Daily Rind™ / www.dailyrindblog.com http://www.dailyrindblog.com/

Facebook http://www.facebook.com/theorchard /
@orchtweetshttp://www.twitter.com/orchtweets

Privileged And Confidential Communication.

This electronic transmission, and any documents attached hereto, (a) are
protected by the Electronic Communications Privacy Act (18 USC §§
2510-2521), (b) may contain confidential and/or legally privileged
information, and (c) are for the sole use of the intended recipient named
above. If you have received this electronic message in error, please notify
the sender and delete the electronic message. Any disclosure, copying,
distribution, or use of the contents of the information received in error
is strictly prohibited