pnp4nagios performance report

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.

pnp4nagios performance report

Postby dragan979 » Thu Jun 29, 2017 9:17 am

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

Re: pnp4nagios performance report

Postby tgriep » Thu Jun 29, 2017 4:04 pm

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

Re: pnp4nagios performance report

Postby dragan979 » Fri Jun 30, 2017 9:36 am

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

Re: pnp4nagios performance report

Postby tgriep » Fri Jun 30, 2017 12:17 pm

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

Re: pnp4nagios performance report

Postby dragan979 » Thu Jul 13, 2017 9:02 am

Hi, thanks for answer, now pnp4nagios ignores all Filesystems,never mind, it seems pnp4nagios doesn't like regular expressions
dragan979
 
Posts: 5
Joined: Thu Jun 29, 2017 8:51 am

Re: pnp4nagios performance report

Postby tgriep » Thu Jul 13, 2017 11:25 am

OK, thanks for reporting back.
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
tgriep
Madmin
 
Posts: 5675
Joined: Thu Oct 30, 2014 9:02 am


Return to Nagios Core

Who is online

Users browsing this forum: Google [Bot], Yahoo [Bot] and 12 guests