need help removing old / hidden commands

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

need help removing old / hidden commands

Post by stebbo »

Hi All,

I've just discovered that my nagios machine root account is receiving emails from the CRON service every 5 minutes about snmp failures for an old machine which hasn't been around for ages and I can't find in the configuration anywhere.

The mail message, addressed to root, is from Cron <root@nagios>. It states there has been an SNMP error in /usr/bin/mrtg /etc/mrtg/mrtg.cfg <etc> and talks about an ip address x.x.x.44 which no longer exists, and hasn't for a while. (these error messages have been coming for a while too).

How do I find where these are in the configuration and remove them?

Thanks in advance.

Cheers,
Chris.
Last edited by stebbo on Sat Nov 02, 2013 5:44 pm, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: need help removing old / hidden commands

Post by slansing »

You will want to follow this guide to remove your old configurations in mrtg:

http://assets.nagios.com/downloads/nagi ... Router.pdf
stebbo
Posts: 75
Joined: Sat Aug 04, 2012 9:13 pm

Re: need help removing old / hidden commands

Post by stebbo »

Thanks slansing,

removing the offending lines has worked a treat.

Cheers,
Crhis.
Locked