How do I run cactid??
Moderators: Developers, Moderators
How do I run cactid??
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...
Sorry in advance if this is a stupid question...
Re: How do I run cactid??
First,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...
Go to cacti dir and cactid dir..
run tis command:
./configure
make
make install
then find the cactid executable.
and look at my crontab:
P.S . Dont forget the write appropriate rows into cactid.conf*/5 * * * * root cd /usr/local/cactid/bin; ./cactid > /dev/null 2>&1
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:
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?
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
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?
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?
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.
edit: After looking around it looks like you must be in that directory.
Who is online
Users browsing this forum: No registered users and 4 guests