I have created a folder where I store all my .cfg files for each server. Located in /usr/local/nagios/etc. The /etc directory has the default objects folder where you have the localhost.cfg. I have successfully directed Nagios to look in the new directory named company.
I will have about 50 servers or so located in this directory. Most of which will have the same configurations, as far as the ping and disk space alerts. I'm a little confused on creating the hostgroup and applying an alert to multiple servers? From what I've gathered you create one rule set, and then refer to that .cfg by name. I'm thinking to just create each server.cfg on its own, as this would only be a one time thing. I'm more so interested in functionality and stability rather than short cuts and an easy turn-around.
My second question is creating a service. I would like to create a PING service.
From what I understand I define the service.
It will be placed in /usr/local/nagios/etc/company/services.cfg
I've worked a lot with the older Nagios version, which have a slightly different logic towards setting up and configuring the system.
I gather this is one of the latest versions of Nagios you are using, which has in fact has big changes in the structure of the configuration files ?
I've got an installation performed late last year, using the new version of Nagios, however I am unable to access the customer at the moment to see what I did with its configuration files.
What I would highly advise you is to check out
. They offer what seems to be an excellent addon to Nagios that will help you perform all the necessary configuration without requiring you to edit text files!
While I haven't tried it, it looks extremely promising and I believe its well worth a try!
Here's a brief list of what it can do for you:
NagiosQL is a web based administration tool for Nagios 2 and Nagios 3. It helps you to easily build a complex configuration with all options, manage and use them. NagiosQL is based on a webserver with PHP, MySQL and local file or remote access to the Nagios configuration files.
The main features are:
* create, delete, modify and copy settings
* create and export configuration files
* create and download configuration files
* easy configuration import
* auto backup configuration files
* consistency checks
* syntax verification
* user management
* instant activation of new configs
* many translations
* easy Installation Wizard
* MySQL database platform
Let us know how you progress, if needed, I'll start looking up the Nagios Documentation if you can't resolve your problems.
I checked out nagiosql.org and it does indeed look promising. I have only once concern, I already have Apache installed as well as some PHP addons that Nagios requires. Is this going to cause any problems? I would think Debian is smart enough to install only whats needed, but I'm just worried the Nagios configuration will break in some way.
To answer your question, I am running the latest version of Nagios, version 3.
Are you familiar with making backups of Nagios, or better yet an image backup of a Linux server? I would feel much more comfortable if I knew I had a backup.
I'm doing the dirty work right now, installin the NSClient++ agent on all the servers.
Re: Nagios Administrators!!
10 years 10 months ago #30388