LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 07-06-2015, 06:25 AM   #1
setevoy
LQ Newbie
 
Registered: Oct 2013
Location: Kiev, UA
Distribution: CentOS
Posts: 10

Rep: Reputation: Disabled
Nagiosgrapth - no graphs


Hi.

I have installed Nagiosgraph on my CentOS 7 with NGINX + PHP-FPM, manually, with this two HowTos:

http://sourceforge.net/p/nagiosgraph...r/tree/INSTALL http://sachinharma.blogspot.com/2013...gios-on_7.html

All seems work - but I haven't any real graphs:

Click image for larger version

Name:	nagios_install_centos_7_9.png
Views:	128
Size:	32.2 KB
ID:	18875


Please, pay attention - there is yellow rectangle - it's selected by mouse, and looks like - there is some "graph", but it won't display.

I have data in rrd directory:

Code:
# rrdtool dump /var/nagios/rrd/www.dev.domain.com/Current%20Load___load1.rrd
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE rrd SYSTEM "http://oss.oetiker.ch/rrdtool/rrdtool.dtd">
<!-- Round Robin Database Dump -->
<rrd>
        <version>0003</version>
        <step>300</step> <!-- Seconds -->
        <lastupdate>1435935645</lastupdate> <!-- 2015-07-03 15:00:45 UTC -->

        <ds>
                <name> data </name>
                <type> GAUGE </type>
                <minimal_heartbeat>600</minimal_heartbeat>
                <min>NaN</min>
                <max>NaN</max>
...
No error in logs, etc.

In nagios.cfg:

Code:
...
process_performance_data=1
service_perfdata_file=/var/log/nagios/perfdata.log
service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC$||$SERVICEOUTPUT$||$SERVICEPERFDATA$
service_perfdata_file_mode=a
service_perfdata_file_processing_interval=30
service_perfdata_file_processing_command=process-service-graph
...
In templates.cfg:

Code:
define service {
       name graphed-service
       action_url show.cgi?host=$HOSTNAME$&service=$SERVICEDESC$' onMouseOver='showGraphPopup(this)' onMouseOut='hideGraphPopup()' rel='showgraph.cgi?host=$HOSTNAME$&service=$SERVICEDESC$&period=week&rrdopts=-w+450+-j
       register 0
     }
In commands.cfg:

Code:
define command {
       command_name  process-service-graph
       command_line  /bin/perl /usr/local/nagios/libexec/insert.pl
     }
And finally - in host config:

Code:
define service{
        use                             local-service,graphed-service
        host_name                       www.dev.domain.com
        service_description             Tomcat mem
        check_command                   check-tomcat-mem!8080!admin!Iivoh4pe
        notifications_enabled           1
        }
What I'm doing wrong here?
 
Old 07-09-2015, 04:36 AM   #2
setevoy
LQ Newbie
 
Registered: Oct 2013
Location: Kiev, UA
Distribution: CentOS
Posts: 10

Original Poster
Rep: Reputation: Disabled
Problem was in my /opt/nagiosgraph/etc/nagiosgraph.conf.

There was:

nagiosgraphcgiurl = /usr/local/nagios/sbin/


Instead of:

nagiosgraphcgiurl = /nagios/cgi-bin


This fixed my problem.
 
  


Reply



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
Perf-graphs (performance monitoring graphs) on linux ekcr Linux - General 10 12-09-2011 09:57 PM
Ns-2.34 graphs ixma Ubuntu 1 05-30-2011 02:38 PM
Simulation and graphs ixma Ubuntu 1 05-28-2011 05:43 PM
SNMP - graphs vladimir-dk *BSD 1 09-16-2004 09:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:11 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration