LinuxQuestions.org
Did you know LQ has a Linux Hardware Compatibility List?
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 10-13-2010, 04:21 PM   #1
tina2010
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Rep: Reputation: 0
Need help on running combination of Nagios, Nconf, Nagiosgraph


Hi,

I am new to Nagios and I am having problem to put all this applications together. I have very limited knowledge of all this tools and availability, so I need experts help on this. Here are the steps that I went thru:

I installed Nagios in one of my Linux server.

In the same machine but different directory I Installed Nconf to add about 70 hosts with about five services for each hosts. I have to add about 200 more hosts.

I used CSV (comma-separated values) file to store the data.

Now, I need graph so I installed Nagiosgraph and I am trying to make it work since last two weeks, but it is not working. When I reload nagios, it runs fine and I see the icon to brows to the graph, but when I click on it, I get following error:

(Server error!
The server encountered an internal error and was unable to complete your request. Either the server is overloaded or there was an error in a CGI script. )
If you think I didn't select right tool to add hosts and for graph, what is better tools to add bunch of servers and to get the graphs. I also have some switches to monitor too.

Thanks

Last edited by tina2010; 10-13-2010 at 04:22 PM.
 
Old 10-15-2010, 04:41 AM   #2
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
Did you follow the installation guide? Post your related config file.
 
Old 10-15-2010, 08:45 AM   #3
tina2010
LQ Newbie
 
Registered: Oct 2010
Posts: 2

Original Poster
Rep: Reputation: 0
Question add and manage nagios database, nagiosgraph

Thanks for reply quanta,

Yes I did follow the nagiosgraph installation guide. The problem is that guide is for if database about host with .cfg files in the nagios by itself but in my case, all .cfg files are coming from the Nconf where I added about 100 hosts.

What tool do you use to add the hosts and services to nagios. I am sure people are not adding and managing it manually.

My nagiosgraph.conf file:


# Author: (c) 2010 Matthew Wall

# Location of nagiosgraph log file. Debug output ends up here.
logfile = /var/opt/nagiosgraph/nagiosgraph.log

# Optionally keep logging from CGI scripts in a separate file.
#cgilogfile = /var/log/nagiosgraph-cgi.log

# Location of nagios performance data log file. Comment out if not used.
#perflog = /usr/local/nagios/perfdata.log

# Directory to store rrd database files
rrddir = /var/opt/nagiosgraph/rrd

# File containing regular expressions to identify service and perf data
mapfile = /opt/nagiosgraph/map

# Nagiosgraph CGI URL.
nagiosgraphcgiurl = /nagiosgraph/

# Nagios CGI URL. If the Nagiosgraph CGI scripts are in a directory other
# than the Nagios CGI directory, then specify the Nagios CGI URL here.
nagioscgiurl = /nagios/cgi-bin

# JavaScript: URL to the nagiosgraph javascript file.
javascript = /nagiosgraph/nagiosgraph.js

# Stylesheet: URL to the nagiosgraph stylesheet.
stylesheet = /nagiosgraph/nagiosgraph.css



nagios.cfg file:

# LOG FILE
# This is the main log file where service and host events are logged
# for historical purposes. This should be the first option specified
# in the config file!!!

log_file=/usr/local/nagios/var/nagios.log



# OBJECT CONFIGURATION FILE(S)
# These are the object configuration files in which you define hosts,
# host groups, contacts, contact groups, services, etc.
# You can split your object definitions across several config files
# if you wish (as shown below), or keep them all in a single config file.

# You can specify individual object config files as shown below:
cfg_file=/usr/local/nagios/etc/objects/global/contacts.cfg

cfg_file=/usr/local/nagios/etc/objects/global/contactgroups.cfg
cfg_file=/usr/local/nagios/etc/objects/Default_collector/hosts.cfg

cfg_file=/usr/local/nagios/etc/objects/Default_collector/services.cfg
cfg_file=/usr/local/nagios/etc/objects/Default_collector/hostgroups.cfg

cfg_file=/usr/local/nagios/etc/objects/Default_collector/extended_service_info.cfg
cfg_file=/usr/local/nagios/etc/objects/global/checkcommands.cfg


cfg_file=/usr/local/nagios/etc/objects/Default_collector/servicegroups.cfg
cfg_file=/usr/local/nagios/etc/objects/Default_collector/extended_host_info.cfg
cfg_file=/usr/local/nagios/etc/objects/global/misccommands.cfg

cfg_file=/usr/local/nagios/etc/objects/global/host_templates.cfg
 
Old 10-18-2010, 12:37 PM   #4
quanta
Member
 
Registered: Aug 2007
Location: Vietnam
Distribution: RedHat based, Debian based, Slackware, Gentoo
Posts: 724

Rep: Reputation: 100Reputation: 100
@tina2010: I add hosts and services manually because I manage only about 30 servers.

I'm not familiar with Nconf and nagiosgraph (I use PNP4Nagios) but did you look at the nagios and Apache log?
 
Old 07-03-2014, 03:22 PM   #5
keziacp
LQ Newbie
 
Registered: Mar 2014
Posts: 12

Rep: Reputation: Disabled
Exclamation rrdtool doesnt work

Hi all,
Plese could someone help me?
I need to install nagiosgraph, but I cant do this, I am trying this for about 1 month. Actually I am trying to do the libary works, rrdtool.

It is installed when i put on my server: rrdtool -v I can see it.

root@nagios:/opt# rrdtool -v
RRDtool 1.4.8 Copyright 1997-2013 by Tobias Oetiker <tobi@oetiker.ch>
Compiled Jun 20 2014 10:05:43

Usage: rrdtool [options] command command_options
Valid commands: create, update, updatev, graph, graphv, dump, restore,
last, lastupdate, first, info, fetch, tune,
resize, xport, flushcached

RRDtool is distributed under the Terms of the GNU General
Public License Version 2. (www.gnu.org/copyleft/gpl.html)

For more information read the RRD manpages

But I dont know to do it work. Look:

root@nagios:/opt# rrdtool create temperature.rrd --step 300 \
> DS:temp:GAUGE:600:-273:5000 \
> RRA:AVERAGE:0.5:1:1200 \
> RRA:MIN:0.5:12:2400 \
> RRA:MAX:0.5:12:2400 \
> RRA:AVERAGE:0.5:12:2400
Bus Error (core dumped)

I dont know now what to do. Some idea?
I am actually workink on a Solaris 11 on a Sun SPARC T3.

Thanks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Nagiosgraph -- RRD directory is empty vms Linux - Newbie 15 07-03-2014 02:32 PM
Nagios-Nagvis-Nconf -> Only access to web / commandline from 1 PC nagman Linux - Newbie 9 06-08-2010 03:42 AM
NagiosGraph RRD is not getting populated. knockout_artist Linux - Newbie 1 03-16-2010 04:49 AM
Fedora Core 9 + Nagios 3.0.6 + Nagiosgraph 1.2.1 - how to get the perl modules JonXP Linux - Newbie 3 03-05-2009 10:39 PM
Bind Mouse Button Combination to Keyboard Key Combination? neoAKiRAz Linux - Desktop 0 05-04-2007 01:49 PM


All times are GMT -5. The time now is 09:20 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration