How can we monitor pnp4nagios and integrated with NCPA?

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby rohithroki » Wed Feb 14, 2018 7:37 am

Hi Kyang,

Thanks for the reply.

I think we are using pnp4nagios to get the performance Graph of the each host.The page is redirected to the path as given below and the service using is Host Perfdata.

http://10.211.31.191/pnp4nagios/graph?h ... testserver

Please find the error while checking the memory ,disk.

Thanks in advance.
Attachments
check memory.png
rohithroki
 
Posts: 108
Joined: Mon Nov 30, 2015 6:12 am

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby mcapra » Thu Feb 15, 2018 9:38 am

This seems like an error with how PNP4Nagios is interpreting this host's performance data. Which is ... odd.

Strictly speaking though, this is a PNP4Nagios problem. Not a Nagios Core or NCPA problem.

This old mail chain from 2009 implies that you should delete the existing RRDs for the windows_testserver host and start from scratch:
https://sourceforge.net/p/pnp4nagios/mailman/message/23733505/

Alternatively, there seem to be options within PNP4Nagios to account for dynamically changing series as mentioned in the above email chain.

There is a PNP4Nagios mailing list on SourceForge as well, which may also be a good place to ask these questions:
https://sourceforge.net/projects/pnp4nagios/support?source=navbar
Former Nagios employee
http://www.mcapra.com/
User avatar
mcapra
 
Posts: 3169
Joined: Thu May 05, 2016 3:54 pm

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby kyang » Thu Feb 15, 2018 11:08 am

Thanks for the help @mcapra!

mcapra is right, it does not seem to be a Nagios related issue.

Please try his suggestions and let us know if you have any questions.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1636
Joined: Tue Jul 25, 2017 3:35 pm

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby rohithroki » Fri Apr 06, 2018 3:22 am

Hello Experts,

could you please clarify the missing options.

I have installed NCPA agent on the client side and monitored via nagios server.

From nagios server side, I seen that one option is missed out (Perform Extra actions ) nearby hostname. Attaching the screenshot1



while I seen the options ,when the nsclient++ installed and monitored via nagios server . Attaching the screenshot 2

The option will be redirected to another web page 192.168.xx.x/pnp4nagios//index.php/graph?host=hostname to monitor the performance graph of client.

but we manually able to see the performance graph via NCPA agent.

why the option is not visible while monitoring the ncpa client?

Is there any possibility for changing the source code ?

Regards,
Simbu
Attachments
screenshot2.PNG
screenshot2.PNG (8.63 KiB) Viewed 64 times
screenshot1.PNG
screenshot1.PNG (9.92 KiB) Viewed 64 times
rohithroki
 
Posts: 108
Joined: Mon Nov 30, 2015 6:12 am

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby kyang » Fri Apr 06, 2018 1:43 pm

You know... I think I see what you mean now. Sorry I didn't catch it sooner.

You can add that graph option using the Extended host information. (NOTE: it will be deprecated in a future version)
https://assets.nagios.com/downloads/nag ... ostextinfo

To accomplish this, I would look at your cfg file for BDNFS6
Code: Select all
/usr/local/nagios/etc/objects/BDNFS6.cfg


Then find what you have for extended host information there, and change it for NCPA. You will also need to use the correct URL in order to view the graphs.

You can also post your BDNFS6.cfg file for us to review.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1636
Joined: Tue Jul 25, 2017 3:35 pm

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby rohithroki » Mon Apr 09, 2018 1:12 am

Hi Kyang,

Thanks for reply.

The mentioned path is not available in the nagios server,as we are adding the services to the hosts via nconf GUI.

we are using the Nagios core server 3.5.0 version and the mentioned path files are as follows.

[root@nagios_test objects]# pwd
/usr/local/nagios/etc/objects
[root@nagios_test objects]# ls -ltr
total 64
-rw-rw-r--. 1 nagios nagios 4019 Mar 7 2014 windows.cfg
-rw-rw-r--. 1 nagios nagios 3208 Mar 7 2014 timeperiods.cfg
-rw-rw-r--. 1 nagios nagios 10812 Mar 7 2014 templates.cfg
-rw-rw-r--. 1 nagios nagios 3293 Mar 7 2014 switch.cfg
-rw-rw-r--. 1 nagios nagios 3124 Mar 7 2014 printer.cfg
-rw-rw-r--. 1 nagios nagios 5403 Mar 7 2014 localhost.cfg
-rw-rw-r-- 1 nagios nagios 8634 Apr 15 2014 commands.cfg_back
-rw-rw-r--. 1 nagios nagios 2326 Apr 15 2014 contacts.cfg
-rw-rw-r--. 1 nagios nagios 9006 Feb 8 23:34 commands.cfg

could you please assist me further to make changes.

Regards,
Simbu
rohithroki
 
Posts: 108
Joined: Mon Nov 30, 2015 6:12 am

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby kyang » Mon Apr 09, 2018 1:14 pm

Sorry about that, didn't realize you were on 3.5.0.

Where is the cfg file located for that HOST --> BDNFS6? Is it the windows.cfg?

Where is the ncpa.cfg?

Could you find your cfg files for those two objects. Make sure to post/attach both of them on here so I can review them.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1636
Joined: Tue Jul 25, 2017 3:35 pm

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby rohithroki » Tue Apr 10, 2018 12:57 am

Hi Kyang,

The host config files were located under /usr/local/nagios/etc/Default_collector/hosts.cfg

Please find the output of both agents.

For nsclient agent

define host {
host_name BDNFS6
alias BDNFS6
address 10.176.130.36
max_check_attempts 3
check_interval 1
notification_interval 360
notification_options d,u,r,s
notifications_enabled 1
icon_image_alt Windows Server
icon_image base/win40.gif
statusmap_image base/win40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
contact_groups +admins,Monitoring_Team
use windows-server
}

For NCPA Agent

define host {
host_name windows_ncpaclient
alias windows_ncpaclient
address 10.211.27.21
max_check_attempts 3
check_interval 2
notification_interval 360
notification_options d,u,r,s
notifications_enabled 1
icon_image_alt Windows Server
icon_image base/win40.gif
statusmap_image base/win40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
contact_groups +admins
}

Please find attached ncpa.cfg for the reference .
Attachments
ncpa.cfg
ncpa config file
(7.28 KiB) Downloaded 7 times
rohithroki
 
Posts: 108
Joined: Mon Nov 30, 2015 6:12 am

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby kyang » Tue Apr 10, 2018 9:50 am

Hello,

Could you send me the whole file?

For both nsclient agent, and ncpa agent?

Code: Select all
define host {
host_name BDNFS6
alias BDNFS6
address 10.176.130.36
max_check_attempts 3
check_interval 1
notification_interval 360
notification_options d,u,r,s
notifications_enabled 1
icon_image_alt Windows Server
icon_image base/win40.gif
statusmap_image base/win40.gd2
check_command check-host-alive
check_period 24x7
notification_period 24x7
contact_groups +admins,Monitoring_Team
use windows-server
}


I would like to see what else you have in that file. Thanks
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
kyang
Support Tech
 
Posts: 1636
Joined: Tue Jul 25, 2017 3:35 pm

Re: How can we monitor pnp4nagios and integrated with NCPA?

Postby support@nagios.nl » Wed Apr 11, 2018 6:45 pm

Hello rohithroki,

On the host defnition used with NCPA you did not specify the Windows host template, that is the line starting with ‘use ...’.

Regards
support@nagios.nl
 
Posts: 6
Joined: Wed Dec 27, 2017 2:20 pm
Location: Houten, The Netherlands

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 15 guests