|
|
Installation
/* This file has the mysql database host, user and password, a example file is supplied */ #define DBCONF "/usr/local/nagios/etc/db.php" /* In case the broker can't write to the database, it writes the queries to a file, so they can be importer later on, both for opmon statiscts and performance database */ #define FAILED_QUERIES_FILE "/usr/local/nagios/var/opmon.sql" #define PERF_FAILED_QUERIES_FILE "/usr/local/nagios/var/opperf.sql"
gcc -D_GNU_SOURCE -Wall -shared -o opdb.o opdb.c -L/usr/lib/mysql -lmysqlclient -DNSCORE
Ex. mysql -p -f < opmon-mysql.sql
|
ProjectsRecent blog postsUser login |
