How do I run cactid??

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
madjeff
Posts: 11
Joined: Mon Feb 09, 2004 2:19 pm

How do I run cactid??

Post by madjeff »

I must be completely blind, but I can't find anything that tells exactly how to run cactid. I've compiled and installed, but what's the actual crontab entry supposed to be?

Sorry in advance if this is a stupid question... ;)
User avatar
dieter
Cacti User
Posts: 164
Joined: Fri Feb 20, 2004 3:08 pm

Post by dieter »

in windows it is cactid.exe, but for linux I don't know :-?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: How do I run cactid??

Post by TFC »

madjeff wrote:I must be completely blind, but I can't find anything that tells exactly how to run cactid. I've compiled and installed, but what's the actual crontab entry supposed to be?

Sorry in advance if this is a stupid question... ;)
First,
Go to cacti dir and cactid dir..
run tis command:
./configure
make
make install
then find the cactid executable.
and look at my crontab:
*/5 * * * * root cd /usr/local/cactid/bin; ./cactid > /dev/null 2>&1
P.S . Dont forget the write appropriate rows into cactid.conf
madjeff
Posts: 11
Joined: Mon Feb 09, 2004 2:19 pm

Post by madjeff »

Thanks for the reply! I threw in the crontab entry and tried it but it didn't seem to work. So, I dropped to the command line and ran the entry to see what was happening.

When I ran the following:

cd /usr/local/cactid/bin; ./cactid

I get this back:

Code: Select all

cactid version 0.8.5 starting.
Using cactid config file [cactid.conf].
Connecting to MySQL database 'cacti' on 'localhost'...
Using cactid config file [/etc/snmp/snmp.local.conf].
*** Unrecongized directive: defversion=2c in /etc/snmp/snmp.local.conf
I tried changing as well as commenting out the offending line in the snmp.local.conf but then it just fails on the next line. Any ideas?
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

did you get any error messages when you configure compile cactid?
freez
Posts: 7
Joined: Tue Dec 02, 2003 8:09 am

Post by freez »

*** Unrecongized directive: defversion=2c in /etc/snmp/snmp.local.conf
looks like an error in your snmp config..
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

I suggest you that upgrade ucd-snmp or net-snmp snmp.
mooseman
Posts: 34
Joined: Thu Nov 20, 2003 9:06 pm

Post by mooseman »

I'm seeing this as well.

Here's the contents of my /etc/snmp/snmp.conf:

mibdirs /usr/share/snmp/mibs
mibfile
defVersion 1
#defCommunity public
defCommunity *******
showMibErrors 1
mibAllowUnderline 1
doDebugging 0

Any Ideas?
User avatar
Morgan
Cacti User
Posts: 187
Joined: Wed Feb 25, 2004 3:38 am

Post by Morgan »

why the hell is ur cactid checking ur snmpd.conf?

the cactid config file is cactid.conf

find it and use the path to it
mooseman
Posts: 34
Joined: Thu Nov 20, 2003 9:06 pm

Post by mooseman »

Is there something I'm missing during the compile of cactid?

cd /var/www/html/cacti/cactid
(edit cactid.conf)
./configure
make
make install

/usr/local/cactid/bin/cactid

[root@debi cactid]# /usr/local/cactid/bin/cactid
cactid version 0.8.5 starting.
Using cactid config file [cactid.conf].
Connecting to MySQL database 'cacti' on 'localhost'...
Using cactid config file [/etc/snmp/snmp.conf].
*** Unrecongized directive: mibdirs=/usr/share/snmp/mibs in /etc/snmp/snmp.conf


But I only get this error if I'm in the directory where the source is, otherwise I get this error:
[root@debi root]# /usr/local/cactid/bin/cactid
cactid version 0.8.5 starting.
Connecting to MySQL database 'cacti' on 'localhost'...
** Failed: Access denied for user: 'cactiuser@localhost' (Using password: YES)

What am I missing? Are there instructions for installing cactid that I'm missing?
mooseman
Posts: 34
Joined: Thu Nov 20, 2003 9:06 pm

Post by mooseman »

I grabbed the .8.6 tar file Ian posted in Morgan's other thread and compiled cactid and it worked fine, but only if I'm executing the command while in the cactid directory. Otherwise I get the same "Failed:Access denied" error I posted above.

edit: After looking around it looks like you must be in that directory.
Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests