Page 2 of 3

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

Posted: Wed Feb 14, 2018 7:37 am
by rohithroki
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.

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

Posted: Thu Feb 15, 2018 9:38 am
by mcapra
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/ma ... /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/pnp4na ... rce=navbar

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

Posted: Thu Feb 15, 2018 11:08 am
by kyang
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.

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

Posted: Fri Apr 06, 2018 3:22 am
by rohithroki
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

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

Posted: Fri Apr 06, 2018 1:43 pm
by kyang
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.

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

Posted: Mon Apr 09, 2018 1:12 am
by rohithroki
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

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

Posted: Mon Apr 09, 2018 1:14 pm
by kyang
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.

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

Posted: Tue Apr 10, 2018 12:57 am
by rohithroki
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 .

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

Posted: Tue Apr 10, 2018 9:50 am
by kyang
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

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

Posted: Wed Apr 11, 2018 6:45 pm
by support@nagios.nl
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