Problem in Installing the graph plugin.
FTL Nagios
ftlnagios at gmail.com
Fri Sep 7 10:26:16 CEST 2012
Your values in the CRIT don't match that of the PNP4NAGIOS guide...
If you have chosen npcdmod as the mode then follow the instructions for
"Bulk Mode with NPCD" and then amend the lines that are needed for the
"npcdmod" section underneath.
The values you have provided look like they are for Bulk Mode...
From: Aravinth Anto [mailto:t-aravinth at juspay.in]
Sent: 07 September 2012 08:28
To: Nagios Users List
Subject: 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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-lists.org/archive/users/attachments/20120907/c58da722/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