Solved

nagios under debian7

Posted on 2013-06-10
5
258 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

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Unix Help with:  mailx -s 17 65
Ubuntu don’t allow SU command in terminal 7 122
grep command usage 10 28
phpmyadmin memory error 55 92
Linux users are sometimes dumbfounded by the severe lack of documentation on a topic. Sometimes, the documentation is copious, but other times, you end up with some obscure "it varies depending on your distribution" over and over when searching for …
Fine Tune your automatic Updates for Ubuntu / Debian
Learn how to get help with Linux/Unix bash shell commands. Use help to read help documents for built in bash shell commands.: Use man to interface with the online reference manuals for shell commands.: Use man to search man pages for unknown command…
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

732 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