Problem in Installing the graph plugin.

FTL Nagios ftlnagios at gmail.com
Thu Sep 6 16:17:43 CEST 2012


And have you got a template for the hosts to use in your templates.cfg?

 

And then have you told your hosts to use that template?

 

In all honesty I would abandon this and use your time with PNP4NAGIOS!

 

Following the docs on the site you can have it up and running and working in
under 20 minutes!

http://docs.pnp4nagios.org/pnp-0.6/start

 

 

 

From: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Sent: 06 September 2012 15:07
To: Nagios Users List
Subject: Re: [Nagios-users] Problem in Installing the graph plugin.

 

Here is my commands.cfg:

 

# 'process-host-perfdata' command definition

define command{

            command_name          process-host-perfdata

            command_line /usr/bin/printf "%b"
"$LASTHOSTCHECK$\t$HOSTNAME$\t$HOSTSTATE$\t$HOSTATTEMPT$\t$HOSTSTATETYPE$\t$
HOSTEXECUTIONTIME$\t$HOSTOUTPUT$\t$HOSTPERFDATA$\n" >>
/var/lib/nagios3/host-perfdata.out

            }

 

 

# 'process-service-perfdata' command definition

define command{

            command_name          process-service-perfdata

            command_line /usr/bin/printf "%b"
"$LASTSERVICECHECK$\t$HOSTNAME$\t$SERVICEDESC$\t$SERVICESTATE$\t$SERVICEATTE
MPT$\t$SERVICESTATETYPE$\t$SERVICEEXECUTIONTIME$\t$SERVICELATENCY$\t$SERVICE
OUTPUT$\t$SERVICEPERFDATA$\n" >> /var/lib/nagios3/service-perfdata.out

            }

 

 

 

# begin nagiosgraph configuration

# command to process nagios performance data for nagiosgraph

define command {

  command_name process-service-perfdata-for-nagiosgraph

  command_line  /usr/local/nagios/libexec/insert.pl

}

# end nagiosgraph configuratio

 

And nagios.cfg (added for nagios graph) :

 

# begin nagiosgraph configuration

# process nagios performance data using nagiosgraph

process_performance_data=1

service_perfdata_file=/var/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-perfdata-for-nagios
graph

# end nagiosgraph configuration

 

Are they correct?

 

 

 

On Thu, Sep 6, 2012 at 7:19 PM, FTL Nagios <ftlnagios at gmail.com> wrote:

Apologies I misses your latest reply saying you had installe dit.

 

Have you got the correct lines in your command.cfgs file?

Also have you double checked you have entered the correct details in the
nagios.cfg file for the broker options etc?

 

 

From: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Sent: 06 September 2012 14:36


To: Nagios Users List
Subject: Re: [Nagios-users] Problem in Installing the graph plugin.

 

I have installed the RRD package. But still I'm getting a 404 error when I
try to visit graphs in my browser. 

On Thu, Sep 6, 2012 at 6:49 PM, FTL Nagios <ftlnagios at gmail.com> wrote:

Install the RRD package like you have previously have been asked too.

 

sudo apt-get install rrdtool

 

Then rerun the install.pl script again.

 

From: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Sent: 06 September 2012 14:07


To: Nagios Users List
Subject: Re: [Nagios-users] Problem in Installing the graph plugin.

 

I'm using Ubuntu 12.04 and I installed the nagios3 using :

 

sudo apt-get install -y nagios3

 

Can anyone say me how to install this graph plugin. I'm spending days on
it!!!

On Thu, Sep 6, 2012 at 6:09 PM, Aravinth Anto <t-aravinth at juspay.in> wrote:

I have installed it. And then I run the install.pl script. And I also
replaced the /usr/local/nagios/share/side.php file with required changes. 

 

When I try to view the contents on browser I get 404 error.

 

Basically it says that :

 

The requested URL /usr/local/nagiosgraph/cgi/show.cgi was not found on this
server.

 

Eventhough I can view that file!

 

On Thu, Sep 6, 2012 at 5:50 PM, James Osbourn <james.osbourn at citrix.com>
wrote:

You will need to install the RRD package.  How you do this will depend on
your operating system.

 

James

 

From: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Sent: 06 September 2012 13:08
To: Nagios Users List
Subject: Re: [Nagios-users] Problem in Installing the graph plugin.

 

I run this command : 

 

sudo ./install.pl --check-prereq

 

checking required PERL modules

  Carp...1.20

  CGI...3.52

  Data::Dumper...2.130_02

  File::Basename...2.82

  File::Find...1.19

  MIME::Base64...3.13

  POSIX...1.24

  RRDs... ***FAIL***

  Time::HiRes...1.972101

checking optional PERL modules

  GD...2.46

checking nagios installation

  found nagios at /usr/local/nagios/bin/nagios

checking web server installation

  found apache at /usr/sbin/apache2

 

*** one or more problems were detected!

 

 

It seems that RRDs... ***FAIL*** . So how can I skip this error?

 

 

 

On Thu, Aug 2, 2012 at 7:20 PM, James Osbourn <james.osbourn at citrix.com>
wrote:

Did you run the install and check your prerequisites, I found that some of
these are not present by default, You can run

 

sudo ./install -check=prereq

 

If everything is ok, you can proceed, otherwise you will need to install the
missing packages

 

At install time you may need to pass the argument for a standalone
installation, this all depends on your environment

 

sudo ./install -standalone

 

Once installation has completed you can test that the server is working by
going to one of the following websites

 

http:// <http://%3cserver%3e/nagiosgraph/cgi-bin/showconfig.cgi>
<server>/nagiosgraph/cgi-bin/showconfig.cgi or http://
<http://%3cserver%3e/nagiosgraph/cgi-bin/show.cgi>
<server>/nagiosgraph/cgi-bin/show.cgi

 

This assumes your cgi data is located in cgi-bin and that you are running
apache.

 

This should help to get nagiosgraph working, you will then need to update
Nagios to use the graphing plugin.

 

James

 

From: Aravinth Anto Intern [mailto:t-aravinth at juspay.in] 
Sent: 02 August 2012 14:38
To: Nagios Users List
Subject: [Nagios-users] Problem in Installing the graph plugin.

 

Hi all, I'm trying to install Nagios Plugin :
http://exchange.nagios.org/directory/Addons/Graphing-and-Trending/nagiosgrap
h/details


I downloaded it, unzip it and then I run the install.pl as

sudo ./install.pl


I accepted every directory as default and done with installation. 

I changed the side.php to add my Trends link that are supported by this
plugin. I restarted the server. But when I click on certain links. I get an
error :


The requested URL /usr/local/nagiosgraph/cgi/showgroup.cgi was not found on
this server.


Why this is happening? I can go into the directory
/usr/local/nagiosgraph/cgi/ and view the .cgi file showgroup.cgi.

But why its not working? 


Thanks in adavnce 


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null

 


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null

 

 


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null

 


----------------------------------------------------------------------------
--
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and
threat landscape has changed and how IT managers can respond. Discussions
will include endpoint security, mobile security and the latest in malware
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting
any issue.
::: Messages without supporting info will risk being sent to /dev/null

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120906/8cdf9104/attachment.html>
-------------- next part --------------
------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
-------------- next part --------------
_______________________________________________
Nagios-users mailing list
Nagios-users at lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/nagios-users
::: Please include Nagios version, plugin version (-v) and OS when reporting any issue. 
::: Messages without supporting info will risk being sent to /dev/null


More information about the Users mailing list