Solved

nagios under debian7

Posted on 2013-06-10
5
259 Views
Last Modified: 2013-06-12
r
this my problem. How can i do?
0
Comment
Question by:apollo-13
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2
5 Comments
 
LVL 30

Accepted Solution

by:
Randy Downs earned 334 total points
ID: 39236838
Maybe this will help

http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=479336

Disk Space is UNKNOWN. Missing include cfg.

...

Looks like this file is needed in the configuration for the default config to work properly.

/usr/share/nagios-plugins/templates-basic/disk.cfg

Please add one of these to the default config:
cfg_file=/usr/share/nagios-plugins/templates-basic/disk.cfg
cfg_dir=/usr/share/nagios-plugins/templates-basic
0
 

Author Comment

by:apollo-13
ID: 39236919
during retart nagios3
Could not add object property in file '/usr/share/nagios-plugins/templates-basic/tcp_udp.cfg' on line 3.
   Error processing object config files!
0
 

Author Comment

by:apollo-13
ID: 39237395
where can i add these?
Please add one of these to the default config:
cfg_file=/usr/share/nagios-plugins/templates-basic/disk.cfg
cfg_dir=/usr/share/nagios-plugins/templates-basic
0
 
LVL 30

Assisted Solution

by:Randy Downs
Randy Downs earned 334 total points
ID: 39237594
Try this

http://www.debianhelp.co.uk/nagiosinstall.htm

Sub-Directory Contents

bin/ Nagios core program
etc/ Main, resource, object, and CGI configuration files should be put here
sbin/ CGIs
share/ HTML files (for web interface and online documentation)
var/ Empty directory for the log file, status file, retention file, etc.
var/archives Empty directory for the archived logs
var/rw Empty directory for the external command file

Now one thing you need to concentrate is /usr/local/nagios/etc directory where all the sample configuration files stores.

cgi.cfg-sample    nagios.cfg-sample bigger.cfg-sample   misccommands.cfg-sample  checkcommands.cfg-sample  minimal.cfg-sample  resource.cfg-sample

The above are the sample configuration files you need to rename those files to .cfg files i am showing here one example you need to do for the other files

# mv bigger.cfg-sample bigger.cfg

Important Note :- In nagios 2.x(For nagios 1.x versions it creats at the time of installation) hosts.cfg,services.cfg,commands.cfg and other configuration files are not crteated by default we need to create these files using the existing sample files like bigger.cfg and minimal.cfg and other files


...

Create the config file for nagios in Apache

Creating the config file nagios (or in any name that you want the alias to called as) in the /etc/apache2/sites-available/ with the following contents (copy & paste using VI):

ScriptAlias /nagios/cgi-bin /usr/local/nagios/sbin

<Directory "/usr/local/nagios/sbin">
   Options ExecCGI
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>

Alias /nagios /usr/local/nagios/share

<Directory "/usr/local/nagios/share">
   Options None
   AllowOverride None
   Order allow,deny
   Allow from all
   AuthName "Nagios Access"
   AuthType Basic
   AuthUserFile /usr/local/nagios/etc/htpasswd.users
   Require valid-user
</Directory>
0
 
LVL 35

Assisted Solution

by:Seth Simmons
Seth Simmons earned 166 total points
ID: 39238263
look at the status output
in the image it shows a parameter is missing which is why the status is unknown
check the syntax of the command you are using
if i remember correctly, -l is to specify the drive letter; no letter specified then it doesn't know what to check

what is on line 3 of the tcp_udp.cfg file?
0

Featured Post

Tutorials alone can't teach real engineering

So we built better training tools.

-Hands-on Labs
-Instructor Mentoring
-Scenario-Based Tests
-Dedicated Cloud Servers

All at your fingertips. What are you waiting for?

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Introduction We as admins face situation where we need to redirect websites to another. This may be required as a part of an upgrade keeping the old URL but website should be served from new URL. This document would brief you on different ways ca…
Setting up Secure Ubuntu server on VMware 1.      Insert the Ubuntu Server distribution CD or attach the ISO of the CD which is in the “Datastore”. Note that it is important to install the x64 edition on servers, not the X86 editions. 2.      Power on th…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

724 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question