Bug#299613: [Pkg-nagios-devel] Bug#299613: nagios-mysql: Confusing installation documentation
sean finney
sean finney <seanius@debian.org>, 299613@bugs.debian.org
Tue, 15 Mar 2005 12:11:22 -0500
--7AUc2qLy4jB3hD7Z
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable
severity 299613 minor
tags 299613 pending
thanks
hi david,
thanks for helping with clarifications. i'll commit your suggestions to
our cvs tree, and the changes will be included in our next upload.
in the meantime, i am lowering the severity of the bug to minor, as that
is the proper classification for typographical and documentation errors.
sean
On Tue, Mar 15, 2005 at 12:04:09PM +0000, David Greaves wrote:
> Package: nagios-mysql
> Severity: important
> Tags: patch
>=20
> The installation instructions are incomplete and have lead to at least 1
> bug report.
> I've made some minor edits which I hope will help.
>=20
>=20
> -- System Information:
> Debian Release: 3.1
> APT prefers unstable
> APT policy: (990, 'unstable')
> Architecture: i386 (i686)
> Kernel: Linux 2.6.11.2-ash-050309-01
> Locale: LANG=3DC, LC_CTYPE=3DC (charmap=3DANSI_X3.4-1968)
> *** /usr/share/doc/nagios-mysql/README.mysql Thu Feb 17 17:39:03 2005
> --- /usr/share/doc/nagios-mysql/README.mysql.new Tue Mar 15 12:01:29 2005
> ***************
> *** 16,22 ****
> =20
> $ mysqladmin -u root -p create nagios
> =20
> ! $ zcat /usr/share/doc/nagios-mysql/create_mysql.sql.gz | mysql -u root =
-p nagios
> =20
> When prompted for a password, please enter the password you choosed whe=
n=20
> configuring the package at install time... If you did not set a passwor=
d,
> --- 16,22 ----
> =20
> $ mysqladmin -u root -p create nagios
> =20
> ! $ zcat /usr/share/doc/nagios-mysql/create_mysql.gz | mysql -u root -p n=
agios
> =20
> When prompted for a password, please enter the password you choosed whe=
n=20
> configuring the package at install time... If you did not set a passwor=
d,
> ***************
> *** 45,50 ****
> --- 45,52 ----
> be sure to make them NOT world readable by issuing something like
> chmod o=3D /etc/nagios/resource.cfg.
> =20
> + First, how to do it by hand, then there's a sed script that may help:
> +=20
> 1) /etc/nagios/resource.cfg
> =20
> Uncomment and set the following lines to appropriate values, replacing
> ***************
> *** 75,80 ****
> --- 77,112 ----
> At the bottom of this file, you'll find the similar lines commented
> out as were in the previous one. Do the same here.
> =20
> + This sed script assumes you have a local database on a standard port
> + with a database/user/password of nagios/nagios/password
> +=20
> + sed -i.orig '
> + s/#x\(.\)ddb_database=3Dsomedatabase/x\1ddb_database=3Dnagios/;
> + s/#x\(.\)ddb_username=3Dsomeuser/x\1ddb_username=3Dnagios/;
> + s/#x\(.\)ddb_password=3Dsomepassword/x\1ddb_password=3Dpassword/;
> + ' /etc/nagios/cgi.cfg /etc/nagios/nagios.cfg
> +=20
> + Then you want the cgi-script and the init.d script to correctly know the
> + status of nagios. You need the check_nagios_db file from
> + /usr/doc/nagios-common/, put it where you like but adjust the pathes in
> + the following examples. I REALLY suggest /etc/nagios/check_nagios_db as
> + the init-script now already looks if it is there and will use it
> + automagically.
> + If you use PostgreSQL you need to change the line
> + my $driver =3D "mysql"; in the script to
> + my $driver =3D "Pg";
> +=20
> + Make it executable:
> + sudo chmod +x /etc/nagios/check_nagios_db
> +=20
> + Now edit the /etc/nagios/cgi.cfg and put a # in front of the line
> + nagios_check_command=3D/usr/lib/nagios/plugins/check_nagios /var/log/na=
gios/status.log 5 'nagios'
> +=20
> + and remove the # in front of the line
> + nagios_check_command=3D/etc/nagios/check_nagios_db
> +=20
> + now start nagios
> +=20
> You should now be up and running enough to get started. You'll still
> need to edit your /etc/nagios/hosts.cfg and other files, but you'll be
> able to see that the default machines in there are now on the web
--=20
--7AUc2qLy4jB3hD7Z
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: Digital signature
Content-Disposition: inline
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)
iD8DBQFCNxc6ynjLPm522B0RAhZOAJ9qE7rWhNLxkDnu8fIY1zygowdcvgCfcUlv
YnEm4Kc5KNxctGdKopCjIwg=
=EKIi
-----END PGP SIGNATURE-----
--7AUc2qLy4jB3hD7Z--