Problem in Installing the graph plugin.

FTL Nagios ftlnagios at gmail.com
Fri Sep 7 14:05:48 CEST 2012


You need to add the host/service template to the actual host/service check

 

Look at the PNP4NAGIOS guide for the Web Frontend Nagios PNP section

 

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

 

Cool. That is working now. But it is monitoring only one of my hosts! Are
there any config needed to change so that I draw graph for all the hosts?

On Fri, Sep 7, 2012 at 3:11 PM, juhlke <juhlke at aez-asdonkshof.de> wrote:

May be you just have to wait until there is enough performancedata sampled
to generate a graph.

This can be some time.

 


ü Bitte prüfen Sie der Umwelt zuliebe, ob der Ausdruck dieser Mail
erforderlich ist.

Mit freundlichen Grüßen

Kreis Weseler Abfallgesellschaft mbH & Co. KG

Lars Juhlke 

 

Lars Juhlke
IT Systemadministration  


Telefon: 02842-940-271
Telefax: 02842-940-400 
mail:   <mailto:name at aez-asdonkshof.de> juhlke at aez-asdonkshof.de
web:  <http://www.aez-asdonkshof.de/> www.aez-asdonkshof.de
 
Kreis Weseler Abfallgesellschaft mbH & Co. KG
Abfallentsorgungszentrum (AEZ) Asdonkshof
Graftstr. 25, 47475 Kamp-Lintfort
Sitz: Kamp-Lintfort, Amtsgericht Kleve, HRA 2540
Vorsitzender des Aufsichtsrats: Hellmut Fischer
p.h.G.: Kreis Weseler Abfallgesellschaft Beteiligung GmbH
Amtsgericht Kleve, HRB 7017 

Geschäftsführer: Peter Bollig


 


 


HINWEIS: Die in dieser E-Mail enthaltenen Informationen und die
dazugehörigen Anhänge sind vertraulich und können der Schweigepflicht
unterliegende Kommunikation enthalten. Wenn Sie nicht der beabsichtigte
Empfänger sind, weisen wir Sie hiermit darauf hin, dass die Verteilung,
Weitergabe oder das Kopieren dieser Mitteilung strengstens untersagt ist.
Sollten Sie diese Sendung irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und löschen Sie diese E-Mail und alle Kopien davon.
Vielen Dank.

 

  _____  

Von: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Gesendet: Freitag, 7. September 2012 11:00


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

 

Thanks that works. But I dont see any graphs that are drawn in my web
browser. I can see only the coordinates.  Am I need to make any changes in
the config?

 

And also when I click on the icons like "Most recent alerts for this time
range" I get an internal server error.

On Fri, Sep 7, 2012 at 2:03 PM, juhlke <juhlke at aez-asdonkshof.de> wrote:

Hello,

 

what modus are you using? Bulk mode with npcd or bulk mode with npcdmod.

As you see in the CRIT messages it states that:

[CRIT]  service_perfdata_file is defined
(service_perfdata_file=/tmp/perfdata.log)

[CRIT]  service_perfdata_file is not allowed in mode 'npcdmod'

 

Not allowed in npcdmod.

For npcdmod you have to remove the perfdata-statements in nagios.cfg.

Maybe that helps

 

 

 


ü Bitte prüfen Sie der Umwelt zuliebe, ob der Ausdruck dieser Mail
erforderlich ist.

Mit freundlichen Grüßen

Kreis Weseler Abfallgesellschaft mbH & Co. KG

Lars Juhlke 

 

Lars Juhlke
IT Systemadministration  


Telefon: 02842-940-271
Telefax: 02842-940-400 
mail:   <mailto:name at aez-asdonkshof.de> juhlke at aez-asdonkshof.de
web:  <http://www.aez-asdonkshof.de/> www.aez-asdonkshof.de
 
Kreis Weseler Abfallgesellschaft mbH & Co. KG
Abfallentsorgungszentrum (AEZ) Asdonkshof
Graftstr. 25, 47475 Kamp-Lintfort
Sitz: Kamp-Lintfort, Amtsgericht Kleve, HRA 2540
Vorsitzender des Aufsichtsrats: Hellmut Fischer
p.h.G.: Kreis Weseler Abfallgesellschaft Beteiligung GmbH
Amtsgericht Kleve, HRB 7017 

Geschäftsführer: Peter Bollig


 


 


HINWEIS: Die in dieser E-Mail enthaltenen Informationen und die
dazugehörigen Anhänge sind vertraulich und können der Schweigepflicht
unterliegende Kommunikation enthalten. Wenn Sie nicht der beabsichtigte
Empfänger sind, weisen wir Sie hiermit darauf hin, dass die Verteilung,
Weitergabe oder das Kopieren dieser Mitteilung strengstens untersagt ist.
Sollten Sie diese Sendung irrtümlich erhalten haben, informieren Sie bitte
sofort den Absender und löschen Sie diese E-Mail und alle Kopien davon.
Vielen Dank.

 

  _____  

Von: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Gesendet: Freitag, 7. September 2012 09:28
An: Nagios Users List
Betreff: Re: [Nagios-users] Problem in Installing the graph plugin.

 

And also I tried to debug it :

 

I tried running: 

 

 sudo perl verify_pnp_config --mode npcdmod --config=/etc/nagios3/nagios.cfg
--pnpcfg=/usr/local/pnp4nagios/etc

 

I get the following output:

 

[INFO]  ========== Starting Environment Checks ============

[INFO]  My version is: verify_pnp_config-0.6.19-R.35

[INFO]  Start Options: verify_pnp_config --mode npcdmod
--config=/etc/nagios3/nagios.cfg --pnpcfg=/usr/local/pnp4nagios/etc

[INFO]  Reading /etc/nagios3/nagios.cfg

[OK  ]  Running product is 'nagios'

[OK  ]  object_cache_file is defined

[OK  ]  object_cache_file=/var/cache/nagios3/objects.cache

[INFO]  Reading /var/cache/nagios3/objects.cache

[OK  ]  resource_file is defined

[OK  ]  resource_file=/etc/nagios3/resource.cfg

[INFO]  Reading /etc/nagios3/resource.cfg

[INFO]  Reading /usr/local/pnp4nagios/etc/process_perfdata.cfg

[INFO]  Reading /usr/local/pnp4nagios/etc/pnp4nagios_release

[OK  ]  Found PNP4Nagios version "0.6.19"

[OK  ]  Effective User is 'nagios'

[OK  ]  User nagios exists with ID '122'

[OK  ]  Effective group is 'nagios'

[OK  ]  Group nagios exists with ID '132'

[INFO]  ========== Checking npcdmod Mode Config  ============

[OK  ]  process_performance_data is 1 compared with '/1/'

[CRIT]  service_perfdata_file is defined
(service_perfdata_file=/tmp/perfdata.log)

[CRIT]  service_perfdata_file is not allowed in mode 'npcdmod'

[CRIT]  service_perfdata_file_template is defined
(service_perfdata_file_template=$LASTSERVICECHECK$||$HOSTNAME$||$SERVICEDESC
$||$SERVICEOUTPUT$||$SERVICEPERFDATA$)

[CRIT]  service_perfdata_file_template is not allowed in mode 'npcdmod'

[CRIT]  service_perfdata_file_mode is defined (service_perfdata_file_mode=a)

[CRIT]  service_perfdata_file_mode is not allowed in mode 'npcdmod'

[CRIT]  service_perfdata_file_processing_interval is defined
(service_perfdata_file_processing_interval=30)

[CRIT]  service_perfdata_file_processing_interval is not allowed in mode
'npcdmod'

[CRIT]  service_perfdata_file_processing_command is defined
(service_perfdata_file_processing_command=process-service-perfdata-for-nagio
sgraph)

[CRIT]  service_perfdata_file_processing_command is not allowed in mode
'npcdmod'

[HINT]  Config options are not allowed in bulk mode with npcd (5)

 

 

What does these critical messages says? [CRIT]
service_perfdata_file_template is not allowed in mode 'npcdmod'

 

I'm very new to Ubuntu. I need some help.

 

Thanks in advance

 

 

 

On Fri, Sep 7, 2012 at 12:43 PM, Aravinth Anto <t-aravinth at juspay.in> wrote:

I tried an followed the instruction on
http://docs.pnp4nagios.org/pnp-0.6/start

 

Everything seems to be fine. But when I went to http://localhost/pnp4nagios/
<http://localhost/pnp4nagios/graph> 

 

I have been asked to remove the file. I removed it, which redirects me to :

 

http://localhost/pnp4nagios/graph

 

Where I get the error of :

 

perfdata directory "/usr/local/pnp4nagios/var/perfdata/" is empty. 

 

Please check your Nagios config. Read FAQ online  file [line]:
application/models/data.php [109]:  back

What will be my mistake? 

 

Kindly help me out.

 

On Thu, Sep 6, 2012 at 7:19 PM, Tech Support <support at voipbusiness.us>
wrote:

> 

>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.

> 

 

One thing that I see is that the URL should be
/nagiosgraph/cgi-bin/show.cgi, not /nagiosgraph/cgi/chow.cgi. Could that be
your problem?

Regards;

John

 

 

From: Aravinth Anto [mailto:t-aravinth at juspay.in] 
Sent: Thursday, September 06, 2012 9:36 AM


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

 

 


----------------------------------------------------------------------------
--
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/20120907/afda9b01/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