Dear Expert
Previously we found while scanning our device (HOST) all the interface get included in /etc/mrtg/mrtg.cfg even though we had selected only two interfaces. We limit the write access of MONITORING WIZARD and it stopped to add any interface/bandwidth in /etc/mrtg/mrtg.cfg , we go to /usr/local/nagiosxi/tmp/my-host-1 and select (copy) only required interface and was adding in /etc/mrtg/mrtg.cfg. Yes there is little extra work but this shrink our /etc/mrtg/mrtg.cfg file to just 10% of original file.
Now we found in new (in Nagios XI 2014R2.0) /etc/mrtg/conf.d/my-host-1.cfg it doing nearly same default behave of adding all the interfaces, what we fear in future, when there 1000 devices and one device having 10000 interfaces (yes 10000 interfaces physical+logical)) then that device file be huge, will Nagios able to perform MRTG for 1000x10000=10000000 interfaces?
Why NagiosXI adding all the interfaces in /etc/mrtg/conf.d/my-host-1.cfg while scanning from CONFIGURE MonitoringWIZARD we selecting only some interfaces?
Regards
/etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
/etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
Zajil NMS
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: /etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
Nagios uses mrtg and cfgmaker. By as far as I know, neither of these tools allow for exclusion of down interfaces or specifying an excluding at run-time. You will need to manually remove them if that is what you would like to do. As for can we scan that size device, yes mrtg definitely can. It's actually easier than scanning 1000 hosts with 10 interfaces on the hardware doing the scan. You will have to enable forking for mrtg, and I would highly suggest breaking that config into separate parts so that separate forks can scan different interfaces simultaneously. But can it be done, is an absolute yes with the right hardware and settings.
Nagios-Plugins maintainer exclusively, unless you have other C language bugs with open-source nagios projects, then I am happy to help! Please pm or use other communication to alert me to issues as I no longer track the forum.
Re: /etc/mrtg/mrtg.cfg v/s /etc/mrtg/conf.d
Dear All
I have commented as below and adding the services (interfaces) as my wish in /etc/mrtg/mrtg.cfg
#Include: conf.d/*.cfg
FYI, me adding just five-to-six lines, not 30+ lines.
Target[skb-se1200-1_11]: 11:public@skb-se1200-1:::::2
SetEnv[skb-se1200-1_11]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="TGigabitEthernet 1/10"
MaxBytes[skb-se1200-1_11]: 1250000000
Title[skb-se1200-1_11]: Traffic Analysis for 11 -- SKB-SE1200
PageTop[skb-se1200-1_11]: <h1>Traffic Analysis for 11 -- SKB-SE1200</h1>
Please close the case.
Regards
I have commented as below and adding the services (interfaces) as my wish in /etc/mrtg/mrtg.cfg
#Include: conf.d/*.cfg
FYI, me adding just five-to-six lines, not 30+ lines.
Target[skb-se1200-1_11]: 11:public@skb-se1200-1:::::2
SetEnv[skb-se1200-1_11]: MRTG_INT_IP="No Ip" MRTG_INT_DESCR="TGigabitEthernet 1/10"
MaxBytes[skb-se1200-1_11]: 1250000000
Title[skb-se1200-1_11]: Traffic Analysis for 11 -- SKB-SE1200
PageTop[skb-se1200-1_11]: <h1>Traffic Analysis for 11 -- SKB-SE1200</h1>
Please close the case.
Regards
Zajil NMS