host & service perfdata increasing alarmingly

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.
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: host & service perfdata increasing alarmingly

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
pmithil7
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

Post 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
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: host & service perfdata increasing alarmingly

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
pmithil7
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

Post 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!
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: host & service perfdata increasing alarmingly

Post 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.
pmithil7
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

Post by pmithil7 »

The link you sent was for a Ngaios XI server. I have a Nagios core 4. Will it be relevant to me?
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: host & service perfdata increasing alarmingly

Post by dwhitfield »

Yes. rrdtool is used by many applications, including Nagios Core.
pmithil7
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

Post 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
dwhitfield
Former Nagios Staff
Posts: 4583
Joined: Wed Sep 21, 2016 10:29 am
Location: NoLo, Minneapolis, MN
Contact:

Re: host & service perfdata increasing alarmingly

Post by dwhitfield »

That's correct. You should run it against your perfdata directory.
pmithil7
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

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