host & service perfdata increasing alarmingly

An open discussion forum for obtaining help with Nagios Core. Nagios Core users of all experience levels are welcome here. Subforum have been created for the discussion of Nagios Core and Nagios Plugin development.

NOTE: The SourceForge.net mailing lists have been deprecated in favor of this forum in order to expedite support and provide additional features not available on the old mailing list.

Re: host & service perfdata increasing alarmingly

Postby tgriep » Mon Feb 13, 2017 3:06 pm

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

Re: host & service perfdata increasing alarmingly

Postby pmithil7 » Mon Feb 13, 2017 4:44 pm

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

Re: host & service perfdata increasing alarmingly

Postby tgriep » Mon Feb 13, 2017 5:40 pm

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

Re: host & service perfdata increasing alarmingly

Postby pmithil7 » Mon Feb 13, 2017 6:15 pm

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

Re: host & service perfdata increasing alarmingly

Postby dwhitfield » Tue Feb 14, 2017 1:21 pm

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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3031
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: host & service perfdata increasing alarmingly

Postby pmithil7 » Tue Feb 14, 2017 1:31 pm

The link you sent was for a Ngaios XI server. I have a Nagios core 4. Will it be relevant to me?
pmithil7
 
Posts: 43
Joined: Wed Dec 07, 2016 7:06 pm

Re: host & service perfdata increasing alarmingly

Postby dwhitfield » Tue Feb 14, 2017 1:41 pm

Yes. rrdtool is used by many applications, including Nagios Core.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3031
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: host & service perfdata increasing alarmingly

Postby pmithil7 » Tue Feb 14, 2017 2:24 pm

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

Re: host & service perfdata increasing alarmingly

Postby dwhitfield » Tue Feb 14, 2017 3:03 pm

That's correct. You should run it against your perfdata directory.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
dwhitfield
The Doctor
 
Posts: 3031
Joined: Wed Sep 21, 2016 10:29 am
Location: Nagios Enterprises, LLC

Re: host & service perfdata increasing alarmingly

Postby pmithil7 » Tue Feb 14, 2017 5:01 pm

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

PreviousNext

Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot] and 7 guests