It’s a real pain writing configure scripts. Autoconf makes things easier, but it is really hard to autodetect software correctly.
The plugins are particularly onerous because usually a single executable, say check_ldap, has requirements that no other plugin has.
Lately, I’ve been trying to work out what’s the best way of detecting mysqlclient. For pre-1.4.7, we used mysql_config to gives us the list of necessary libraries at compile time. On my Debian server, mysql_config --libs says: -L/usr/lib -lmysqlclient -lz -lcrypt -lnsl -lm. This was a much better way than trying to manually work out all the various libraries required. So configure said: “if mysql_config exists, compile check_mysql”.
Good, eh? Nope.
Continue reading ‘mysqlclient detection in Nagios Plugins’
There has been a bit of confusion about how the Nagios Plugins distribution installs the core C and script plugins. A common scenario is that the plugins are owned as the nagios user. We try to use the standard GNU tool chain mechanisms to install executables and, funnily enough, there is no documented support for installing as a specific user or group.
This is complicated by the fact that there are two plugins, check_dhcp and check_icmp, which have to be run as root, so need to be installed with the setuid bit on and the owner as root.
Continue reading ‘Installing the Nagios Plugins’
The NagiosCommunity.org site was officially launched yesterday, despite the fact that I failed to send an announcement email out.
The site was linked from Nagios.org yesterday and a number of users have signed up for the blog and wiki in the first 24 hours. An official email announcement will be going out today - I promise! Thanks to Max Hetrick, Mark Young, and Alessandro Martins for their help in getting the site up and ready.
Patrick Proy just informed me that the French translation of the Nagios 2 documentation is ready to go. It has been linked on the wiki for those who are interested. Thanks to everyone who helped work on the translation: Erwan Ben Souiden, Hervé Bouchind’homme, René Coulet, Philippe Delsol, Xavier Dusart, Johan Moreau, Hervé Nicol, and Patrick Proy. Kudos!
René Purcell will be giving a two hour presentation on Nagios and Oreon in Quebec, Canada on March 7th, 2007 at Le Techno Centre Logiciels Libres.
le TC2L est heureux de vous inviter le 7 mars 2007, Ã la conférence “les mercredis du libres” portant ce mois-ci sur la supervision des systèmes et réseaux.
For more information visit:
http://lesmercredisdulibre.tc2l.ca/index.php?id=261.