Page 3 of 5

Re: host & service perfdata increasing alarmingly

Posted: Mon Feb 13, 2017 3:06 pm
by tgriep
Take a look at pnp4nagios's web site at the link below for any information about reinstalling.
https://docs.pnp4nagios.org/pnp-0.6/start

Re: host & service perfdata increasing alarmingly

Posted: Mon Feb 13, 2017 4:44 pm
by pmithil7
There is no information on re-installing or uninstalling pnp4nagios in the documentation. If anyone has any information or help for it, please do let me know.

Thanks,
Mithil

Re: host & service perfdata increasing alarmingly

Posted: Mon Feb 13, 2017 5:40 pm
by tgriep
Since adding pnp4nagios is a manual process, there isn't a way to uninstall it, you would have to manually put back the changes that was done to the system.
But, if you re-install it, that should verify that the settings are correct and the system should start to process the performance data again.
Take a look at this section in that link for re-installing the way I think your server was previously setup.

Code: Select all

Bulk mode with NPCD

Re: host & service perfdata increasing alarmingly

Posted: Mon Feb 13, 2017 6:15 pm
by pmithil7
As i have inherited this server, i have no idea how this was setup and hence my concern. If i re-install pnp4nagios using bulk mode with npcd instructions, will it create any issue to the nagios server or i will be good to go?

Thanks!

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 1:21 pm
by dwhitfield
Perhaps I've missed it, but I went through both of your threads, and it seems no one ever pointed you to https://support.nagios.com/kb/article.php?id=149

Perhaps it is because the title is a bit misleading. Really, the document is for any time you have extra data sources, which is, at a glance, every single error in your perfdata.log.

A lot of people have trouble with the first line, aka yum install perl-RRD-Simple -y

If you don't have it in yum, you can either add a repo that includes it or run the two following commands:

Code: Select all

cpan YAML
cpan RRD::Simple
After that, the instructions should work as presented in the KB. If they do not, please let us know any errors you receive.

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 1:31 pm
by pmithil7
The link you sent was for a Ngaios XI server. I have a Nagios core 4. Will it be relevant to me?

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 1:41 pm
by dwhitfield
Yes. rrdtool is used by many applications, including Nagios Core.

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 2:24 pm
by pmithil7
./fix_ds_quantity.sh -d /usr/local/nagios/share/perfdata/

Should i make any changes to the above command before executing, with paths in my server? I have perfdata in /usr/local/pnp4nagios/ directory.

Let me know.

Thanks,
Mithil

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 3:03 pm
by dwhitfield
That's correct. You should run it against your perfdata directory.

Re: host & service perfdata increasing alarmingly

Posted: Tue Feb 14, 2017 5:01 pm
by pmithil7
Nothing quite happened with the script. Here is the output:

[root@nagios-eqx-01 tmp]# ./fix_ds_quantity.sh -d /usr/local/pnp4nagios/var/perfdata

This script will add datasources to RRDs. It may require
up to 3x the current disk space used by the rrds that need
updated. Please make sure you have enough free space to
run this script.

This makes changes to your RRDs, so DOUBLE CHECK that you
have made a recent backup of the RRDs.

This script can take a long time to run (1h+), so it may
be best to run it during maintenance.

Are you sure? (y/n) y
Batch job confirmed by user.
Batch process started at Tue Feb 14 13:56:56 PST 2017
Populating list of RRDs from the dircetory: /usr/local/pnp4nagios/var/perfdata
Batch job finished at Tue Feb 14 13:56:56 PST 2017.
A total of 0 file(s) were updated with a total of 0 datasource(s).
Changes logged to the file /tmp/fix_rrd_ds.log


Also the 'fix_rrd_ds.log' file has the same contents of the output as above.

Any idea on why it didn't populate .rrd files?