Cacti and Nagios Some summary of "seven"

Source: Internet
Author: User
Tags snmp snmp error syslog

When we install or use cacti, we will encounter a lot of problems, that here reprint a very good article, for everyone to reference and study, thank you very much original!

I. Database-Related FAQs

1. Occurs when PHP is installed or cactid/spine/cacti

Checking for Mysql_init in-lmysqlclient_r ... no

Configure:error:MySQL Libraries not found

Workaround: The PHP Development API could not be managed becausePHP was compiled without adding – with-mysql=/usr/local/mysql


2. Not defined mysql_connect () when making PHP connection database

Workaround: PHP does not have a PHP API associated with it to check if PHP wasadded at compile time – with-mysql=/usr/local/mysql

3. During installation, added – with-mysql=/usr/local/mysql

Appears: Whith "Configure:error:MySQL Libraries not Found"

WORKAROUND: To determine if MySQL can run normally, do not use the binary installation method, self-compilation, problem solving,

Online so-called awards– with-mysql to– with-mysql-dir This is the error, it compiles through because, this configuration is wrong,./configure ignored it.

Two. Other errors

Error One:

11/15/2010 07:34:42 pm–spine: poller[0] fatal:unable to read configuration file! (Spine Init)

11/15/2010 07:44:43 pm–spine: poller[0] fatal:mysql Error: ' 1146′, Message: ' Table ' cacti.settings ' doesn ' t exis T ' (Spine init)

Solve:

Check your spine configuration file, or reinstall spine

Error Two: Error while editing spine

Checking if UCD-SNMP needs crypto support ... no

Checking if NET-SNMP needs crypto support ... yes

Checking for snmp_timeout in-lnetsnmp ... no

Cannot find NET-SNMP libraries (SNMP) ... checking ucd-snmp

Checking for snmp_timeout in-lsnmp ... no

Configure:error:Cannot Find UCD-SNMP libraries (SNMP)

Solve:

Configure when added –with-snmp=/usr/local/net-snmp/your NET-SNMP path

Or do not add or add this parameter– with-static=/usr/local/lib

./configure–with-static=/usr/local/lib

Error Three:

/usr/local/spine/spine

Spine:version 0.8.7b Starting

11/15/2010 05:19:46 pm–spine: poller[0] error:snmp Library Version mismatch (5.3.1 vs 5.3.2.2) (SPINE parent)

11/15/2010 05:00:01 pm–spine: poller[0] error:snmp Library Version mismatch (5.3.1 vs 5.3.2.2) (SPINE parent)

There is a problem with this version of spine and NET-SNMP

Solution :

First uninstall the previously installed NET-SNMTP and spine

Install NET-SNMP and then compile the installation spine at this point you can specify your NET-SNMP can also not be specified, can be.

Error Four

11/15/2010 05:00:01 pm– poller: poller[0] WARNING: Cron is out C6>of sync with the poller interval!  the Poller Interval is ' 60′seconds, with a maximum of a ' 300′second Cron, but Secon DS has passed since the last poll!

11/15/2010 04:56:00 pm–system stats:time:59.2263 method:spine processes:1 threads:1 Hosts:2 HostsPerProcess:2 DATASOURC Es:21 rrdsprocessed:0

11/15/2010 04:56:00 pm– poller: poller[0] Maximum runtime of seconds exceeded. Exiting.

Solve:

Because the cron time is related to the time difference between pollerand PHP.

General Poller. php with a new time of 60s, so cron inside also set to every minute with a new

Such as:

*/1 * * * */usr/bin/php/var/www/html/cacti/poller. php >/dev/null 2>&1

Error Five

##########

11/16/2010 01:10:03 pm–system stats:time:1.1319 method:spine processes:1 threads:1 Hosts:2 HostsPerProcess:2 DataSource S:8 Rrdsprocessed:7

11/16/2010 01:10:02 pm–spine: poller[0] host[4] error:empty result [127.0.0.1]: '/usr/bin/php-q/var/www/ht Ml/cacti/plugins/syslog/syslog_counter.php '

11/16/2010 01:09:11 pm–system stats:time:1.1314 method:spine processes:1 threads:1 Hosts:2 HostsPerProcess:2 DataSource S:8 Rrdsprocessed:7

11/16/2010 01:09:10 pm–spine: poller[0] host[4] error:empty result [127.0.0.1]: '/usr/bin/php-q/var/www/html /cacti/plugins/syslog/syslog_counter.php '

Solve:

Temporary.

Delete from settings where name = ' syslog_last_incoming ';

Error Six:

What is the reason why SNMP error sometimes occurs when we add a device?

WORKAROUND: First guarantee both sides SNMP version consistent

2nd, the snmpd.conf configuration file allows the IP network segment to be crawled!

Reprint Address: http://www.cnblogs.com/jerryxing/archive/2012/05/27/2520495.html

Cacti and Nagios Some summary of "seven"

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.