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
}
pnp4nagios performance report
-
- Madmin
- Posts: 9190
- Joined: Thu Oct 30, 2014 9:02 am
Re: pnp4nagios performance report
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/
https://docs.pnp4nagios.org/
Be sure to check out our Knowledgebase for helpful articles and solutions!
-
- Posts: 11
- Joined: Thu Jun 29, 2017 8:51 am
Re: pnp4nagios performance report
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 }
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 }
-
- Madmin
- Posts: 9190
- Joined: Thu Oct 30, 2014 9:02 am
Re: pnp4nagios performance report
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!
-
- Posts: 11
- Joined: Thu Jun 29, 2017 8:51 am
Re: pnp4nagios performance report
Hi, thanks for answer, now pnp4nagios ignores all Filesystems,never mind, it seems pnp4nagios doesn't like regular expressions
-
- Madmin
- Posts: 9190
- Joined: Thu Oct 30, 2014 9:02 am
Re: pnp4nagios performance report
OK, thanks for reporting back.
Be sure to check out our Knowledgebase for helpful articles and solutions!