Nagios 3.5.1 problems with mrtg and snmp

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
ArKanToS
Posts: 10
Joined: Wed Oct 16, 2013 4:30 am

Nagios 3.5.1 problems with mrtg and snmp

Post 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
Last edited by ArKanToS on Tue Oct 22, 2013 3:50 am, edited 1 time in total.
slansing
Posts: 7698
Joined: Mon Apr 23, 2012 4:28 pm
Location: Travelling through time and space...

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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?
ArKanToS
Posts: 10
Joined: Wed Oct 16, 2013 4:30 am

Re: Nagios 3.5.1 problems with mrtg and snmp

Post by ArKanToS »

i follow this guide without problems, Image and my plugins version is 1.4.16 :/ i suppose plugins are in the right folder if this guide is correct.
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios 3.5.1 problems with mrtg and snmp

Post by sreinhardt »

What folder are the plugins in, and what permissions do they presently have?
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.
ArKanToS
Posts: 10
Joined: Wed Oct 16, 2013 4:30 am

Re: Nagios 3.5.1 problems with mrtg and snmp

Post by ArKanToS »

/home/myuser/downloads/nagios-plugins-1.5 with all permissions

where is suppose to put them ?
sreinhardt
-fno-stack-protector
Posts: 4366
Joined: Mon Nov 19, 2012 12:10 pm

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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
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.
ArKanToS
Posts: 10
Joined: Wed Oct 16, 2013 4:30 am

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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'
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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?
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
ArKanToS
Posts: 10
Joined: Wed Oct 16, 2013 4:30 am

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Nagios 3.5.1 problems with mrtg and snmp

Post 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
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
Locked