pnp4nagios performance report

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
dragan979
Posts: 11
Joined: Thu Jun 29, 2017 8:51 am

pnp4nagios performance report

Post by dragan979 »

Hi all,

i'm new to nagios, i have check_mk with 50 hosts, current performance report shows 495 pages (PDF)

i edited cfg file (/opt/omd/sites/sitename/etc/pnp4nagios/pages) to include CPU, filesystem and memory)


is it possible to reduce number of pages (i would like to remove graphs,for example)

Thanks in advance

Dragan




define page {
use_regex 1
page_name My Performance Report
}

#
# Define the first Graph
#
define graph {
host_name host1 | host2 !
service_desc CPU|Memory|Filesystem # Every service starting with 'traffic'
source 1 # OPTIONAL Show only the first image
}
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: pnp4nagios performance report

Post by tgriep »

PNP4Nagios is not one of Nagios's products / projects so you should check at the PNP4Nagios site to see if there is a way to reduce the number of pages from the file.
https://docs.pnp4nagios.org/
Be sure to check out our Knowledgebase for helpful articles and solutions!
dragan979
Posts: 11
Joined: Thu Jun 29, 2017 8:51 am

Re: pnp4nagios performance report

Post by dragan979 »

Thanks, i managed to reduce it using check_mk Basket, now have reasonably 54 (i removed /var/ /boot /omd/opt) only / left

But is there any way to do this using regular expressions ?

Want to leave only Filesystem / not Filesystem /boot. Filesystem /var, Filesystem /opt/omd

i tried with regular expression

^Filesystem[ ]\/
^Filesystem[]\/$
[Filesystem \/]

But all fail

define page { use_regex 1 page_name My Performance Report }

define graph { host_name host1 | host2 | service_desc CPU|Memory|Filesystem
source 1 image }
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: pnp4nagios performance report

Post by tgriep »

Try this to see if it works for your regular expression.

Code: Select all

^Filesystem[ ]\/$
Be sure to check out our Knowledgebase for helpful articles and solutions!
dragan979
Posts: 11
Joined: Thu Jun 29, 2017 8:51 am

Re: pnp4nagios performance report

Post by dragan979 »

Hi, thanks for answer, now pnp4nagios ignores all Filesystems,never mind, it seems pnp4nagios doesn't like regular expressions
User avatar
tgriep
Madmin
Posts: 9177
Joined: Thu Oct 30, 2014 9:02 am

Re: pnp4nagios performance report

Post by tgriep »

OK, thanks for reporting back.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked