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
Nagios 3.5.1 problems with mrtg and snmp
Nagios 3.5.1 problems with mrtg and snmp
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
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
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.
-
sreinhardt
- -fno-stack-protector
- Posts: 4366
- Joined: Mon Nov 19, 2012 12:10 pm
Re: Nagios 3.5.1 problems with mrtg and snmp
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.
Re: Nagios 3.5.1 problems with mrtg and snmp
/home/myuser/downloads/nagios-plugins-1.5 with all permissions
where is suppose to put them ?
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
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.
Re: Nagios 3.5.1 problems with mrtg and snmp
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'
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
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.
"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.
Re: Nagios 3.5.1 problems with mrtg and snmp
ubunutu 12.10 without mail option it works.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?
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
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
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.
"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.