How can we monitor pnp4nagios and integrated with NCPA?

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

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

Post 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.
Attachments
check memory.png
User avatar
mcapra
Posts: 3739
Joined: Thu May 05, 2016 3:54 pm

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

Post 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
Former Nagios employee
https://www.mcapra.com/
kyang

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

Post 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.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

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

Post 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
Attachments
screenshot2.PNG
screenshot2.PNG (8.63 KiB) Viewed 4388 times
screenshot1.PNG
screenshot1.PNG (9.92 KiB) Viewed 4388 times
kyang

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

Post 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.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

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

Post 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
kyang

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

Post 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.
rohithroki
Posts: 138
Joined: Mon Nov 30, 2015 6:12 am

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

Post 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 .
Attachments
ncpa.cfg
ncpa config file
(7.28 KiB) Downloaded 396 times
kyang

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

Post 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
support@nagios.nl
Posts: 66
Joined: Wed Dec 27, 2017 2:20 pm
Location: Nieuwegein, The Netherlands
Contact:

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

Post 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
Locked