Nagios Graph error

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Nagios Graph error

Post by nareshtis »

Hello Friends,
I am new to Nagios, i have installed Nagios server and configured the hosts..Everything works fine.
Now i am installing Nagios Graph plugin, installation looks to be fine(not sure).
I have defined the service and enabled the graph feature to the a host, but its not working.
I am getting error saying, http 404 not found.
In many blogs they are saying, rrd is not installed, but i have installed it. Bellow its my ./install pre-req output

[root@nagios nagiosgraph-1.5.2]# ./install.pl --check-prereq
checking required PERL modules
Carp...1.11
CGI...3.51
Data::Dumper...2.124
Digest::MD5...2.39
File::Basename...2.77
File::Find...1.14
MIME::Base64...3.08
POSIX...1.17
RRDs...1.3008
Time::HiRes...1.9721
checking optional PERL modules
GD...2.44
Nagios::Config...36
checking nagios installation
found nagios exectuable at /usr/local/nagios/bin/nagios
found nagios init script at /etc/init.d/nagios
checking web server installation
found apache executable at /usr/sbin/httpd
found apache init script at /etc/init.d/httpd
********************************************************************

Even show.cgi also not working...
getting error as "No data in rrd directory /usr/local/nagios/var/rrd"

Please help me.. Thanks in advance
tmcdonald
Posts: 9117
Joined: Mon Sep 23, 2013 8:40 am

Re: Nagios Graph error

Post by tmcdonald »

First off, I will be moving this to the general Nagios Core forum since this is not related to the Nagios Plugins project.

For starters, please provide the following information:
  • output of ls -ld /usr/local/nagios/var/rrd and ls -l /usr/local/nagios/var/rrd
  • Nagios Core version
  • Link to download source for the nagiosgraph (wherever you downloaded it from)
Former Nagios employee
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: Nagios Graph error

Post by nareshtis »

Hello tmcdonald,
I have re-installed the plugin, now its working fine...
I have installed the nagios client on couple of machines. But graph service is not working for few service which i defined separately...
Like i have got the scrip to monitor the uptime of the system, i have configured it..
Looks to be fine in collecting the data but its unable to plot the graph...

Thanks,
Naresh
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Nagios Graph error

Post by hsmith »

nareshtis wrote: ...I have installed the nagios client on couple of machines...
What 'nagios client' did you install, where did you get it from?

Can we please get this information?
tmcdonald wrote:
  • output of ls -ld /usr/local/nagios/var/rrd and ls -l /usr/local/nagios/var/rrd
  • Nagios Core version
  • Link to download source for the nagiosgraph (wherever you downloaded it from)
Former Nagios Employee.
me.
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: Nagios Graph error

Post by nareshtis »

Hi,
I am using below version of Nagios and plug-ins
nagios-4.1.1
nagiosgraph-1.5.2
nagios-plugins-2.1.1
nrpe-2.15
All downloaded from https://www.nagios.org/downloads/


[root@nagios nagiosgraph]# ls -ld /var/nagios/rrd
drwxr-xr-x 7 nagios root 4096 Sep 28 22:52 /var/nagios/rrd
[root@nagios nagiosgraph]# ls -l /var/nagios/rrd
total 20
drwxr-xr-x 2 nagios nagios 4096 Sep 28 22:12 host1
drwxr-xr-x 2 nagios nagios 4096 Sep 28 00:22 host2
drwxr-xr-x 2 nagios nagios 4096 Sep 28 00:22 host3
drwxr-xr-x 2 nagios nagios 4096 Sep 28 00:22 localhost
drwxr-xr-x 2 nagios nagios 4096 Oct 5 20:17 host4

Thanks,
Naresh
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios Graph error

Post by jdalrymple »

nareshtis wrote:Hello tmcdonald,
I have re-installed the plugin, now its working fine...
I have installed the nagios client on couple of machines. But graph service is not working for few service which i defined separately...
Like i have got the scrip to monitor the uptime of the system, i have configured it..
Looks to be fine in collecting the data but its unable to plot the graph...

Thanks,
Naresh

Errors? Maybe something in /var/httpd/error_log?
Screenshots?
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: Nagios Graph error

Post by nareshtis »

Hi,
i can see only these errors in the error file under /var/log/httpd
[Tue Oct 06 17:01:32 2015] [error] [client 127.0.0.1] Directory index forbidden by Options directive: /var/www/html/

And i have attached the working and non-working parameter of the same host.
Attachments
Working
Working
Not working
Not working
shot1.JPG (31.68 KiB) Viewed 9182 times
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios Graph error

Post by jdalrymple »

Could you verify the nagiosgraph logs and/or turn up the debugging as needed?
http://sourceforge.net/p/nagiosgraph/wiki/Home/ wrote:Where does nagiosgraph report status and errors?

The log file for data collection is specified by the logfile directive in the nagiosgraph.conf file. The log file must be writable by the nagios user. If no log file is specified, or if the file cannot be written, log entries go to the nagios log file.

The log file for data display is specified by the cgilogfile directive in the nagiosgraph.conf file. The CGI log file must be writable by the web server user. If no log file is specified, or if the file cannot be written, log entries go to the web server log file.

The debug directives in the nagiosgraph.conf file control what information is logged. There are 5 log levels, from debug to critical. There are also mechanisms to specify different log levels for each host and/or service. This makes it easy to find out what is happening for a specific host and/or service, even if your installation has thousands of hosts or services.

If GD is installed, rrdtool errors will be displayed directly in the CGI output. If GD is not installed, look in the nagiosgraph CGI log or the web server error log.
nareshtis
Posts: 24
Joined: Sun Sep 27, 2015 5:29 am

Re: Nagios Graph error

Post by nareshtis »

in the nagiosgraph.log its displaying as

hostname:host1
servicedesc:Oracle TNS Ping
output:OK - reply time 0 msec
perfdata:
Wed Oct 7 06:51:02 2015 insert.pl 16876 warn output/perfdata not recognized:

Do i need to set anything in the insert.pl script or the Oracle TNS Ping script ?

It able to collect the data and plot the graph for the scrips that got installed with the nagios plugins, it unable to fetch the data for the scrips that i have created manually...
My custom scripts are unable to display/fetch the performance data, is it the reason?
If so how to resolve that ?
jdalrymple
Skynet Drone
Posts: 2620
Joined: Wed Feb 11, 2015 1:56 pm

Re: Nagios Graph error

Post by jdalrymple »

Perfdata has to fit a specific format. That format is outlined in our plugin guidelines.
Locked