Deleting Hosts

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jfaraone
Posts: 7
Joined: Thu Jun 28, 2012 11:43 am

Deleting Hosts

Post by jfaraone »

I'm evaluating Nagios XI, and I have a couple of questions / issues:

How do I delete a host that is part of a host group? As in, what order should I delete things? It seems like I'm doing something terribly wrong, as I frequently need to reimport my configuration.

Is it possible to configure alert rules (ICMP reachability, for example) at the host group level? I'd like to configure one rule that emails me whenever a host in a particular group isn't responding, but I can't seem to figure out how to do so.
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Deleting Hosts

Post by mguthrie »

Typically you'll want to delete any related services first, then you can delete a host. The hostgroup relationships will update automatically if you do it this way.

The new CCM that is currently in Beta is a lot more intuitive for cleaning up a broken configuration, it might be worth using for this scenario.
http://assets.nagios.com/downloads/exch ... cm/ccm.zip

It installs through the Admin->Manage Components menu, and this will be released with Nagios XI 2012.
jfaraone
Posts: 7
Joined: Thu Jun 28, 2012 11:43 am

Re: Deleting Hosts

Post by jfaraone »

I think my install is so messed up right now that I'd like to start fresh. Is there a way to restore this install back to a fresh state?

For example, I get the following when I check my configuration:

Warning: Duplicate definition found for host 'xi_host_firewall' (config file '/usr/local/nagios/etc/hosttemplates.cfg', starting on line 390)
Error: Could not add object property in file '/usr/local/nagios/etc/hosttemplates.cfg' on line 391.
Error processing object config files!

I've never done anything to that object, and I have no idea how to fix it.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Deleting Hosts

Post by scottwilkerson »

It may be best/easiest to start totally fresh with a fresh install of the OS and then install XI.

One thing of importance is that if you are importing configs, you should make sure you never import configs out of the /usr/local/nagios/etc/static directory, and do not remove the default templates that have been installed in the system.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfaraone
Posts: 7
Joined: Thu Jun 28, 2012 11:43 am

Re: Deleting Hosts

Post by jfaraone »

I pulled down a newer VM image and am working with that. Is there anything I can do in regards to creating a service to monitor ICMP reachability and applying that to a host group, rather than individual hosts? With hundreds of hosts, I'd like to avoid having to create / manage individual alarms.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Deleting Hosts

Post by scottwilkerson »

If you go to CCM -> Services -> Add New

You can create a service and add a hostgroup instead of a host.

This will add the services to every host member of the hostgroup.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfaraone
Posts: 7
Joined: Thu Jun 28, 2012 11:43 am

Re: Deleting Hosts

Post by jfaraone »

I tried to create a service, and it is notified when the host goes down (shows service down on dashboard), but I never get an email. I'm fairly sure mail is configured correctly, because the "Send test email" button works.

Here are screenshots of the service I created. I basically coped a Ping service created via the wizard. Any idea why it isn't working?

http://i.imgur.com/uFW4S.png

http://i.imgur.com/WLpKf.png

http://i.imgur.com/QBSLt.png

http://i.imgur.com/RggA4.png

http://i.imgur.com/Fs4g4.png
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Deleting Hosts

Post by scottwilkerson »

Do you have a template specified? If not you will need to add the check command.

the wizards use a template that has the command specified
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
jfaraone
Posts: 7
Joined: Thu Jun 28, 2012 11:43 am

Re: Deleting Hosts

Post by jfaraone »

Guys, I'm having a lot of trouble getting this up and running. I make changes to a service, but those changes don't seem to appear under my service status summary. Alerts seem to trigger, but notification emails don't get sent. I really, really want to buy this product, as I currently use Netcrunch and am looking for something a bit more open to customization, but I'm having trouble with basic functionality. Is there any sort of pre-sales support outside of these forums? I think a 5 minute webex session could resolve most of my issues.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Deleting Hosts

Post by lmiltchev »

We just sent you a PM.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked