Page 1 of 1

Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 8:54 am
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?

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 10:33 am
by linuser
All of my .rrd files are located in /var/lib/pnp4nagios. Should I point the script to that location?

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 10:35 am
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.

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 10:41 am
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.

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 11:09 am
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.

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 11:30 am
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.

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 12:57 pm
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?

Re: Pnp4nagios - fixing graphs after adding datasource

Posted: Tue Jun 28, 2016 3:36 pm
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.