Pnp4nagios - fixing graphs after adding datasource

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.
Locked
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Pnp4nagios - fixing graphs after adding datasource

Post by linuser »

I'm running Nagios 3.5.1 on a RHEL6 server. I am following the instructions below because I have a new datasource that's been added and I want to repair the rrd file while retaining historical data.

https://support.nagios.com/kb/article.php?id=149

In this part of the instructions:

Code: Select all

To run the script without RRD backups (if you have performed one of the suggested backup options above):

./fix_ds_quantity.sh -i -d /usr/local/nagios/share/perfdata/
I am running into an issue because I have no /usr/local/nagios/share/perfdata folder. In fact I have no perfdata folder period.

Code: Select all

[root@xnagios nagios]# rpm -qa nagios
nagios-3.5.1-1.el6.x86_64
[root@xnagios nagios]# find / -type d -name 'perfdata' 
[root@xnagios nagios]# 
What should my next step be?
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by linuser »

All of my .rrd files are located in /var/lib/pnp4nagios. Should I point the script to that location?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by rkennedy »

This KB article is written for XI, which has our standard directories in use. Yes, you would need to modify it accordingly to work in your environment.

As PNP4Nagios isn't our product, and you're using Core, we have no way of knowing how / where you decided to install it.
Former Nagios Employee
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by linuser »

This KB article is written for XI, which has our standard directories in use. Yes, you would need to modify it accordingly to work in your environment.

As PNP4Nagios isn't our product, and you're using Core, we have no way of knowing how / where you decided to install it.
I got these links from you guys the other day in another thread in which I disclosed I was not using XI. Now you're telling me you can't help? I don't get that.
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by linuser »

Where can I go then to get 'official' pnp4nagios support? I need to make sure that if I point the script to /var/lib/pnp4nagios (where all my .rrd files are) it will still work as expected.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by rkennedy »

Take a look at https://docs.pnp4nagios.org/

The bash script is written by us, but it's for XI. While it should work for Core, as I mentioned, we do not know all of your directories so you may have to change other things in it.
Former Nagios Employee
linuser
Posts: 102
Joined: Fri Sep 18, 2015 9:53 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by linuser »

Are there any plans to enhance the script to ONLY look for the rrd that you specify so it does not bloat out the partition when you run it and take a lot less time?
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Pnp4nagios - fixing graphs after adding datasource

Post by rkennedy »

There is not, as I mentioned this fix was written for a Nagios XI system as a whole, not just one RRD file. You're free to modify it as needed for your specifications.
Former Nagios Employee
Locked