Hot Downloads

Welcome, Guest
Username: Password: Remember me
  • Page:
  • 1
  • 2

TOPIC: Nagios Administrators!!

Nagios Administrators!! 7 years 6 months ago #30350

  • ZiPPy
  • ZiPPy's Avatar
  • Offline
  • Expert Member
  • Posts: 500
  • Karma: 0
Calling out to any Nagios administrators!

Looking for some guidance and direction in tweaking Nagios for some specific tasks.

Hope to find some Nagios users.


Cheers,

ZiPPy
ZiPPy
The administrator has disabled public write access.

Re: Nagios Administrators!! 7 years 6 months ago #30352

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
Zippy,

I've used Nagios quite a bit, perhaps I can help ?
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
The administrator has disabled public write access.

Re: Nagios Administrators!! 7 years 6 months ago #30365

  • ZiPPy
  • ZiPPy's Avatar
  • Offline
  • Expert Member
  • Posts: 500
  • Karma: 0
Heya Chris!!

Your guidance would be most appreciated!

My Nagios setup is as follows:

Built on a Ubuntu/Debian (Version 8.04).

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

define service{
host_name server1
service_description PING
check_command check_ping!100.0,20%!500.0,60%
max_check_attempts 3
normal_check_interval 5
retry_check_interval 1
check_period 24x7
notification_interval 120
notification_period 24x7
notification_options w,u,c,r,f
contact_groups localadmins
}

I created the service.cfg file and placed it in my company directory along with the other servers. But I receive an error after I run the verification on the config file. It states:

ERROR: Template 'PING' specified in service definition could not be found (config file '/usr/local/nagios/etc/company/xptest.cfg', starting on line 124)

The xptest.cfg is my test box on the network, and line 124 is where I added the following:

define service{
use PING
host_name xptest
service_description ping
check_command check_ping!100.0,20%!500.0,60%
}

So I am pretty sure my config files are just mixed up. Where do I need to create the service.cfg in order for my servers to locate it when I define that particular service?



Cheers mate,

ZiPPy
ZiPPy
The administrator has disabled public write access.

Re: Nagios Administrators!! 7 years 6 months ago #30369

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
Zippy,

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 nagiosql.org/. 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.

Hope that helps!

Cheers mate,
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
The administrator has disabled public write access.

Re: Nagios Administrators!! 7 years 6 months ago #30387

  • ZiPPy
  • ZiPPy's Avatar
  • Offline
  • Expert Member
  • Posts: 500
  • Karma: 0
Chris,

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.


Cheers,

ZiPPy
ZiPPy
The administrator has disabled public write access.

Re: Nagios Administrators!! 7 years 6 months ago #30388

  • Chris
  • Chris's Avatar
  • Offline
  • Administrator
  • Posts: 1446
  • Thank you received: 13
  • Karma: 8
Zippy,

I doubt it will create problems. I'd try it without hesitation!!!

If you want to backup your Nagios, grab a copy of the /usr/local/nagios/ directory and your set!

If NagiosQL ends up working for you, it will save you heaps of trouble in the future when you need to add or remove new hosts and services, so I think its worth the trouble mate!

Let us know how you go with it.

Cheers,
Chris Partsenidis.
Founder & Editor-in-Chief
www.Firewall.cx
The administrator has disabled public write access.
  • Page:
  • 1
  • 2
Time to create page: 0.083 seconds

CCENT/CCNA

Cisco Routers

  • SSL WebVPN
  • Securing Routers
  • Policy Based Routing
  • Router on-a-Stick

VPN Security

  • Understand DMVPN
  • GRE/IPSec Configuration
  • Site-to-Site IPSec VPN
  • IPSec Modes

Cisco Help

  • VPN Client Windows 8
  • VPN Client Windows 7
  • CCP Display Problem
  • Cisco Support App.

Windows 2012

  • New Features
  • Licensing
  • Hyper-V / VDI
  • Install Hyper-V

Linux

  • File Permissions
  • Webmin
  • Groups - Users
  • Samba Setup