Code: Select all
OK - Current BW in: 0Mbps Out: 0MbpsCode: Select all
OK - Current BW in: 0Mbps Out: 0MbpsCode: Select all
ls -l /var/lib/mrtg
LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfgCode: Select all
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;50;80 out=0Mb/s;50;80Code: Select all
[root@spnagios ~]# /usr/local/nagios/libexec/check_rrdtraf -f /var/lib/mrtg/10.115.0.5_10101.rrd -w 50,50 -c 80,80 -l M
OK - Current BW in: 0Mbps Out: 0Mbps|in=0Mb/s;50;80 out=0Mb/s;50;80
[root@spnagios ~]#Code: Select all
ERROR: Line 777 (Target[10.115.0.5_10101]: 10101:[email protected]:::::1) in CFG file (/etc/mrtg/conf.d/10.115.0.5.cfg)
contains a duplicate definition for target[10.115.0.5_10101].
First definition is on line 4840
Code: Select all
*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lock/mrtg/mrtg_l --confcache-file /var/lib/mrtg/mrtg.okCode: Select all
/*/5 * * * * root LANG=C LC_ALL=C /usr/bin/mrtg /etc/mrtg/mrtg.cfg --lock-file /var/lib/mrtg/mrtg.lock --confcache-file /var/lib/mrtg/mrtg.okCode: Select all
PROFILE BUILD FAILED
Array
(
)
CODE:1Code: Select all
cd /tmp
wget https://assets.nagios.com/downloads/nagiosxi/5/xi-5.3.3.tar.gz
Code: Select all
tar xzf xi-5.3.3.tar.gz nagiosxi/nagiosxi/nagiosxi.sudoers --strip-components 2Code: Select all
grep -v NAGIOSXI /etc/sudoers > /etc/sudoers.new
mv -f /etc/sudoers.new /etc/sudoers
rm -rf /etc/sudoers.d/nagiosxi
sed -i 's/^Defaults requiretty/#Defaults requiretty/g' /etc/sudoers
cat /tmp/nagiosxi.sudoers >> /etc/sudoers
chmod 440 /etc/sudoers