Page 1 of 2
Nagios 3.5.1 problems with mrtg and snmp
Posted: Wed Oct 16, 2013 4:59 am
by ArKanToS
Good morning everybody,
i'm trying to use nagios on my job and i'm having problems to configure it.
At the moment this is my situation
http://img689.imageshack.us/img689/828/99a1.jpg, i'm trying to configure both service but without sucess.
I had follow this tutorial,
http://www.iceflatline.com/2009/08/how- ... tu-server/ and when i make sudo indexmaker --output=/var/www/mrtg/index.html /etc/mrtg/mrtg.cfg terminal returns me that ERROR: did not find any matching data in cfg file
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Wed Oct 16, 2013 1:55 pm
by slansing
The error in the image you showed indicates you may have permissions issues or your plugins are in the wrong location. Have you made sure to put custom plugins in the correct directory for ubuntu? Have you also made sure they are executable?
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Thu Oct 17, 2013 3:21 am
by ArKanToS
i follow this guide without problems,

and my plugins version is 1.4.16 :/ i suppose plugins are in the right folder if this guide is correct.
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Thu Oct 17, 2013 11:54 am
by sreinhardt
What folder are the plugins in, and what permissions do they presently have?
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Thu Oct 17, 2013 2:02 pm
by ArKanToS
/home/myuser/downloads/nagios-plugins-1.5 with all permissions
where is suppose to put them ?
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Thu Oct 17, 2013 2:21 pm
by sreinhardt
I would highly suggest following our documentation on installing nagios from source, provided you did not previously install via package.
http://assets.nagios.com/downloads/nagi ... Source.pdf
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Fri Oct 18, 2013 4:51 am
by ArKanToS
in the tutorial seems that i'm suppose download nagios version 4.0.0 but after they execute tar zxvf nagios-3.4.1.tar.gz, wich version should i use ?
edit: i choose 4.0.0 and i found a new error, root@*****:/tmp# ./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
-bash: ./configure: No such file or directory
edit2: if i try in the nagios folder (is suppose to do here, am i wrong?) root@******:/tmp/nagios# ./configure --with-nagios-group=nagios --with-command-group=nagcmd -–with-mail=/usr/bin/sendmail
configure: error: unrecognized option: `-–with-mail=/usr/bin/sendmail'
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Fri Oct 18, 2013 12:58 pm
by abrist
I just tried building core with your configure options and it worked just fine. What linux distro are you installing to? Is the sendmail path correct? Have you tried to compile without the with-mail option?
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Sat Oct 19, 2013 9:50 am
by ArKanToS
abrist wrote:I just tried building core with your configure options and it worked just fine. What linux distro are you installing to? Is the sendmail path correct? Have you tried to compile without the with-mail option?
ubunutu 12.10 without mail option it works.
edit: when i try to start nagios, root@******:/tmp/nagios# /etc/init.d/nagios start
/etc/init.d/nagios: 20: .: Can't open /etc/rc.d/init.d/functions
Re: Nagios 3.5.1 problems with mrtg and snmp
Posted: Mon Oct 21, 2013 11:32 am
by abrist
Use the following init script until the core devs work out the debian/ubuntu/suse init script problems:
http://support.nagios.com/forum/viewtop ... =20#p64091