Page 1 of 1

pnp4nagios performance report

Posted: Thu Jun 29, 2017 9:17 am
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
}

Re: pnp4nagios performance report

Posted: Thu Jun 29, 2017 4:04 pm
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/

Re: pnp4nagios performance report

Posted: Fri Jun 30, 2017 9:36 am
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 }

Re: pnp4nagios performance report

Posted: Fri Jun 30, 2017 12:17 pm
by tgriep
Try this to see if it works for your regular expression.

Code: Select all

^Filesystem[ ]\/$

Re: pnp4nagios performance report

Posted: Thu Jul 13, 2017 9:02 am
by dragan979
Hi, thanks for answer, now pnp4nagios ignores all Filesystems,never mind, it seems pnp4nagios doesn't like regular expressions

Re: pnp4nagios performance report

Posted: Thu Jul 13, 2017 11:25 am
by tgriep
OK, thanks for reporting back.