External Command integration fails

Asked by Daniel Hagan on 2010-05-30

When installing the nagios3 package (instead of downloading source and building myself) I've noticed that the ability to use the "external command" functionality of nagios is broken. The external command pipe (/var/lib/nagios3/rw/nagios.cmd) is owned by nagios:nagios mode 660. However, the CGIs that the web interface uses to submit external commands to the pipeline run as www-data:www-data.

I've "fixed" it in my current environment by changing nagios to run as group www-data and fixed the permissions and ownership on the /var/lib/nagios3 directory tree. But it seems like this functionality should either work or the additional required steps should be documented in comments in the nagios.cfg file.

I didn't want to submit this as a bug since I'm new to Ubuntu (my prior experience is with FreeBSD, IRIX & HP-UX). Is there a suggestion on the "right way" to handle this in Ubuntu?



Technical details:

uname -a

Linux brt-vm-01 2.6.32-22-server #33-Ubuntu SMP Wed Apr 28 14:34:48 UTC 2010 x86_64 GNU/Linux

dpkg -l

ii adduser 3.112ubuntu1 add and remove users and groups
ii apache2 2.2.14-5ubuntu8 Apache HTTP Server metapackage
ii apache2-doc 2.2.14-5ubuntu8 Apache HTTP Server documentation
ii apache2-mpm-worker 2.2.14-5ubuntu8 Apache HTTP Server - high speed threaded model
ii apache2-utils 2.2.14-5ubuntu8 utility programs for webservers
ii apache2.2-bin 2.2.14-5ubuntu8 Apache HTTP Server common binary files
ii apache2.2-common 2.2.14-5ubuntu8 Apache HTTP Server common files
ii apparmor 2.5-0ubuntu3 User-space parser utility for AppArmor
ii apparmor-utils 2.5-0ubuntu3 Utilities for controlling AppArmor
ii apport 1.13.3-0ubuntu2 automatically generate crash reports for debugging
ii apport-symptoms 0.9 symptom scripts for apport
ii apt Advanced front-end for dpkg
ii apt-transport-https APT https transport
ii apt-utils APT utility programs
ii aptitude terminal-based package manager
ii at 3.1.11-1ubuntu5 Delayed job execution and batch processing
ii base-files 5.0.0ubuntu20 Debian base system miscellaneous files
ii base-passwd 3.5.22 Debian base system master password and group files
ii bash 4.1-2ubuntu3 The GNU Bourne Again SHell
ii bash-completion 1:1.1-3ubuntu2 programmable completion for the bash shell
ii bind9-host 1:9.7.0.dfsg.P1-1 Version of 'host' bundled with BIND 9.X
ii binutils 2.20.1-3ubuntu5 The GNU assembler, linker and binary utilities
ii bsd-mailx 8.1.2-0.20090911cvs-2ubuntu1 simple mail user agent
ii bsdmainutils 8.0.1ubuntu1 collection of more utilities from FreeBSD
ii bsdutils 1:2.17.2-0ubuntu1 Basic utilities from 4.4BSD-Lite
ii busybox-initramfs 1:1.13.3-1ubuntu11 Standalone shell setup for initramfs
ii busybox-static 1:1.13.3-1ubuntu11 Standalone rescue shell with tons of builtin utilities
ii byobu 2.68-0ubuntu1 a set of useful profiles and a profile-switcher for GNU screen
ii bzip2 1.0.5-4 high-quality block-sorting file compressor - utilities
ii ca-certificates 20090814 Common CA certificates
ii command-not-found 0.2.40ubuntu5 Suggest installation of packages in interactive bash sessions
ii command-not-found-data 0.2.40ubuntu5 Set of data files for command-not-found.
ii console-setup 1.34ubuntu15 console font and keymap setup program
ii console-terminus 4.30-2 Fixed-width fonts for fast reading on the Linux console
ii coreutils 7.4-2ubuntu2 The GNU core utilities
ii cpio 2.10-1ubuntu2 GNU cpio -- a program to manage archives of files
ii cpp 4:4.4.3-1ubuntu1 The GNU C preprocessor (cpp)
ii cpp-4.4 4.4.3-4ubuntu5 The GNU C preprocessor
ii cpu-checker 0.1-0ubuntu2 tools to help evaluate certain CPU (or BIOS) features
ii cron 3.0pl1-106ubuntu5 process scheduling daemon
ii dash POSIX-compliant shell
ii debconf 1.5.28ubuntu4 Debian configuration management system
ii debconf-i18n 1.5.28ubuntu4 full internationalization support for debconf
ii debianutils 3.2.2 Miscellaneous utilities specific to Debian
rc defoma 0.11.10-4ubuntu1 Debian Font Manager -- automatic font configuration framework
ii dhcp3-client 3.1.3-2ubuntu3 DHCP client
ii dhcp3-common 3.1.3-2ubuntu3 common files used by all the dhcp3* packages
ii diffutils 1:2.8.1-18 File comparison utilities
ii dmidecode 2.9-1.2 Dump Desktop Management Interface data
ii dmsetup 2:1.02.39-1ubuntu4 The Linux Kernel Device Mapper userspace library
ii dnsutils 1:9.7.0.dfsg.P1-1 Clients provided with BIND
ii dosfstools 3.0.7-1 utilities for making and checking MS-DOS FAT filesystems
ii dpkg Debian package management system
ii e2fslibs 1.41.11-1ubuntu2 ext2/ext3/ext4 file system libraries
ii e2fsprogs 1.41.11-1ubuntu2 ext2/ext3/ext4 file system utilities
ii ed 1.4-1build1 The classic UNIX line editor
ii eject 2.1.5+deb1+cvs20081104-7 ejects CDs and operates CD-Changers under Linux
ii fancontrol 1:3.1.2-2 utilities to read temperature/voltage/fan sensors
ii file 5.03-5ubuntu1 Determines file type using "magic" numbers
ii findutils 4.4.2-1ubuntu1 utilities for finding files--find, xargs
rc fontconfig 2.8.0-2ubuntu1 generic font configuration library - support binaries
ii fontconfig-config 2.8.0-2ubuntu1 generic font configuration library - configuration
ii fping 2.4b2-to-ipv6-16.1 sends ICMP ECHO_REQUEST packets to network hosts
ii friendly-recovery 0.2.10 Make recovery more user-friendly
ii ftp 0.17-19build1 The FTP client
ii fuse-utils 2.8.1-1.1ubuntu2 Filesystem in USErspace (utilities)
ii gawk 1:3.1.6.dfsg-4build1 GNU awk, a pattern scanning and processing language
ii gcc 4:4.4.3-1ubuntu1 The GNU C compiler
ii gcc-4.4 4.4.3-4ubuntu5 The GNU C compiler
ii gcc-4.4-base 4.4.3-4ubuntu5 The GNU Compiler Collection (base package)
ii geoip-database 1.4.6.dfsg-17 IP lookup command line tools that use the GeoIP library (country database)
ii gettext-base 0.17-8ubuntu3 GNU Internationalization utilities for the base system
ii gnupg 1.4.10-2ubuntu1 GNU privacy guard - a free PGP replacement
ii gnupg-curl 1.4.10-2ubuntu1 GNU privacy guard - a free PGP replacement (cURL)
ii gpgv 1.4.10-2ubuntu1 GNU privacy guard - signature verification tool
ii grep 2.5.4-4build1 GNU grep, egrep and fgrep
ii groff-base 1.20.1-7 GNU troff text-formatting system (base system components)
ii grub-common 1.98-1ubuntu6 GRand Unified Bootloader, version 2 (common files)
ii grub-pc 1.98-1ubuntu6 GRand Unified Bootloader, version 2 (PC/BIOS version)
ii gzip 1.3.12-9ubuntu1 GNU compression utilities
ii hdparm 9.15-1ubuntu9 tune hard disk parameters for high performance
ii hostname 3.03ubuntu1 utility to set/show the host name or domain name
ii ifupdown 0.6.8ubuntu29 high level tools to configure network interfaces
ii info 4.13a.dfsg.1-5ubuntu1 Standalone GNU Info documentation browser
ii initramfs-tools 0.92bubuntu78 tools for generating an initramfs
ii initramfs-tools-bin 0.92bubuntu78 binaries used by initramfs-tools
ii initscripts 2.87dsf-4ubuntu17 scripts for initializing and shutting down the system
ii insserv 1.12.0-14 Tool to organize boot sequence using LSB init.d script dependencies
ii install-info 4.13a.dfsg.1-5ubuntu1 Manage installed documentation in info format
ii installation-report 2.39ubuntu4 system installation report
ii iproute 20091226-1 networking and traffic control tools
ii iptables 1.4.4-2ubuntu2 administration tools for packet filtering and NAT
ii iputils-arping 3:20071127-2ubuntu1 Tool to send ARP Requests for an IP address
ii iputils-ping 3:20071127-2ubuntu1 Tools to test the reachability of network hosts
ii iputils-tracepath 3:20071127-2ubuntu1 Tools to trace the network path to a remote host
ii irqbalance 0.55+20091017-3ubuntu2 Daemon to balance interrupts for SMP systems
ii iso-codes 3.12.1-1 ISO language, territory, currency, script codes and their translations
ii kbd 1.15-1ubuntu3 Linux console font and keytable utilities
ii klibc-utils 1.5.17-4ubuntu1 small utilities built with klibc for early boot
ii landscape-common The Landscape administration system client
ii language-pack-en 1:10.04+20100422 translation updates for language English
ii language-pack-en-base 1:10.04+20100422 translations for language English
ii language-selector-common 0.5.7 Language selector for Ubuntu Linux
ii laptop-detect 0.13.7ubuntu2 attempt to detect a laptop
ii less 436-1 pager program similar to more
ii libacl1 2.2.49-2 Access control list shared library
ii libapparmor-perl 2.5-0ubuntu3 AppArmor library Perl bindings
ii libapparmor1 2.5-0ubuntu3 changehat AppArmor library
ii libapr1 1.3.8-1build1 The Apache Portable Runtime Library
ii libaprutil1 1.3.9+dfsg-3build1 The Apache Portable Runtime Utility Library
ii libaprutil1-dbd-sqlite3 1.3.9+dfsg-3build1 The Apache Portable Runtime Utility Library - SQLite3 Driver
ii libaprutil1-ldap 1.3.9+dfsg-3build1 The Apache Portable Runtime Utility Library - LDAP Driver
ii libatm1 1:2.5.1-1.2 shared library for ATM (Asynchronous Transfer Mode)
ii libattr1 1:2.4.44-1 Extended attribute shared library
ii libbind9-60 1:9.7.0.dfsg.P1-1 BIND9 Shared Library used by BIND
ii libblkid1 2.17.2-0ubuntu1 block device id library
ii libbsd0 0.2.0-1 utility functions from BSD systems - shared library
ii libbz2-1.0 1.0.5-4 high-quality block-sorting file compressor library - runtime
ii libc-bin 2.11.1-0ubuntu7.1 Embedded GNU C Library: Binaries
ii libc-dev-bin 2.11.1-0ubuntu7.1 Embedded GNU C Library: Development binaries
ii libc6 2.11.1-0ubuntu7.1 Embedded GNU C Library: Shared libraries
ii libc6-dev 2.11.1-0ubuntu7.1 Embedded GNU C Library: Development Libraries and Header Files
rc libcairo2 1.8.10-2ubuntu1 The Cairo 2D vector graphics library
ii libcap-ng0 0.6.2-4 An alternate posix capabilities library
ii libcap2 1:2.17-2ubuntu1 support for getting/setting POSIX.1e capabilities
ii libclass-accessor-perl 0.34-1 Perl module that automatically generates accessors
ii libcomerr2 1.41.11-1ubuntu2 common error description library
ii libconfig-inifiles-perl 2.52-1 Read .ini-style configuration files
ii libcurl3-gnutls 7.19.7-1ubuntu1 Multi-protocol file transfer library (GnuTLS)
ii libcwidget3 0.5.13-1ubuntu1 high-level terminal interface library for C++ (runtime files)
rc libdatrie1 0.2.2-3 Double-array trie library
ii libdb4.8 4.8.24-1ubuntu1 Berkeley v4.8 Database Libraries [runtime]
ii libdbus-1-3 1.2.16-2ubuntu4 simple interprocess messaging system
ii libdbus-glib-1-2 0.84-1 simple interprocess messaging system (GLib-based shared library)
ii libdevmapper-event1.02.1 2:1.02.39-1ubuntu4 The Linux Kernel Device Mapper userspace library
ii libdevmapper1.02.1 2:1.02.39-1ubuntu4 The Linux Kernel Device Mapper userspace library
rc libdirectfb-1.2-0 1.2.8-5ubuntu2 direct frame buffer graphics - shared libraries
ii libdns64 1:9.7.0.dfsg.P1-1 DNS Shared Library used by BIND
ii libdrm-intel1 2.4.18-1ubuntu3 Userspace interface to intel-specific kernel DRM services -- runtime
ii libdrm-nouveau1 2.4.18-1ubuntu3 Userspace interface to nouveau-specific kernel DRM services -- runtime
ii libdrm-radeon1 2.4.18-1ubuntu3 Userspace interface to radeon-specific kernel DRM services -- runtime
ii libdrm2 2.4.18-1ubuntu3 Userspace interface to kernel DRM services -- runtime
ii libedit2 2.11-20080614-1build1 BSD editline and history libraries
ii libelf1 0.143-1 library to read and write ELF files
ii libept0 0.5.30 High-level library for managing Debian package information
ii libexpat1 2.0.1-7ubuntu1 XML parsing C library - runtime library
ii libexpat1-dev 2.0.1-7ubuntu1 XML parsing C library - development kit
ii libffi5 3.0.9-1 Foreign Function Interface library runtime
ii libfont-afm-perl 1.20-1 Font::AFM - Interface to Adobe Font Metrics files
ii libfontconfig1 2.8.0-2ubuntu1 generic font configuration library - runtime
ii libfontconfig1-dev 2.8.0-2ubuntu1 generic font configuration library - development
rc libfontenc1 1:1.0.5-1 X11 font encoding library
ii libfreetype6 2.3.11-1ubuntu2 FreeType 2 font engine, shared library files
ii libfreetype6-dev 2.3.11-1ubuntu2 FreeType 2 font engine, development files
ii libfribidi0 0.19.2-1 Free Implementation of the Unicode BiDi algorithm
ii libfuse2 2.8.1-1.1ubuntu2 Filesystem in USErspace library
ii libgc1c2 1:6.8-1.2ubuntu1 conservative garbage collector for C and C++
ii libgcc1 1:4.4.3-4ubuntu5 GCC support library
ii libgcrypt11 1.4.4-5ubuntu2 LGPL Crypto library - runtime library
ii libgd2-xpm 2.0.36~rc1~dfsg-3.1ubuntu1 GD Graphics Library version 2
ii libgd2-xpm-dev 2.0.36~rc1~dfsg-3.1ubuntu1 GD Graphics Library version 2 (development version)
ii libgdbm3 1.8.3-9 GNU dbm database routines (runtime version)
ii libgeoip1 1.4.6.dfsg-17 A non-DNS IP-to-country resolver library
ii libglib2.0-0 2.24.1-0ubuntu1 The GLib library of C routines
ii libgmp3c2 2:4.3.2+dfsg-1ubuntu1 Multiprecision arithmetic library
ii libgnutls26 2.8.5-2 the GNU TLS library - runtime library
ii libgomp1 4.4.3-4ubuntu5 GCC OpenMP (GOMP) support library
ii libgpg-error0 1.6-1ubuntu2 library for common error values and messages in GnuPG components
ii libgpm2 1.20.4-3.2ubuntu2 General Purpose Mouse - shared library
ii libgssapi-krb5-2 1.8.1+dfsg-2 MIT Kerberos runtime libraries - krb5 GSS-API Mechanism
ii libhtml-format-perl 2.04-2 format HTML syntax trees into text, PostScript or RTF
ii libhtml-parser-perl 3.64-1 collection of modules that parse HTML text documents
ii libhtml-tagset-perl 3.20-2 Data tables pertaining to HTML
ii libhtml-tree-perl 3.23-1 represent and create HTML syntax trees
ii libidn11 1.15-2 GNU Libidn library, implementation of IETF IDN specifications
ii libio-socket-inet6-perl 2.54-1.1 Object interface for AF_INET6 domain sockets
ii libio-string-perl 1.08-2 Emulate IO::File interface for in-core strings
ii libisc60 1:9.7.0.dfsg.P1-1 ISC Shared Library used by BIND
ii libisccc60 1:9.7.0.dfsg.P1-1 Command Channel Library used by BIND
ii libisccfg60 1:9.7.0.dfsg.P1-1 Config File Handling Library used by BIND
ii libiw30 30~pre9-3ubuntu4 Wireless tools - library
ii libjpeg62 6b-15ubuntu1 The Independent JPEG Group's JPEG runtime library
ii libjpeg62-dev 6b-15ubuntu1 Development files for the IJG JPEG library
ii libjs-jquery 1.3.3-2ubuntu1 JavaScript library for dynamic web applications
ii libk5crypto3 1.8.1+dfsg-2 MIT Kerberos runtime libraries - Crypto Library
ii libkeyutils1 1.2-12 Linux Key Management Utilities (library)
ii libklibc 1.5.17-4ubuntu1 minimal libc subset for use with initramfs
ii libkrb5-3 1.8.1+dfsg-2 MIT Kerberos runtime libraries
ii libkrb5support0 1.8.1+dfsg-2 MIT Kerberos runtime libraries - Support library
ii libldap-2.4-2 2.4.21-0ubuntu5 OpenLDAP libraries
ii liblocale-gettext-perl 1.05-6 Using libc functions for internationalization in Perl
ii liblockfile1 1.08-3ubuntu1 NFS-safe locking library, includes dotlockfile program
ii liblwres60 1:9.7.0.dfsg.P1-1 Lightweight Resolver Library used by BIND
ii libmagic1 5.03-5ubuntu1 File type determination library using "magic" numbers
ii libmailtools-perl 2.05-1 Manipulate email in perl programs
ii libmpfr1ldbl 2.4.2-3ubuntu1 multiple precision floating-point computation
ii libmysqlclient16 5.1.41-3ubuntu12.1 MySQL database client library
ii libncurses5 5.7+20090803-2ubuntu3 shared libraries for terminal handling
ii libncursesw5 5.7+20090803-2ubuntu3 shared libraries for terminal handling (wide character support)
ii libneon27-gnutls 0.29.0-1 An HTTP and WebDAV client library (GnuTLS enabled)
ii libnet-snmp-perl 5.2.0-3 Script SNMP connections
ii libnewt0.52 0.52.10-5ubuntu1 Not Erik's Windowing Toolkit - text mode windowing with slang
ii libnih-dbus1 1.0.1-1 NIH D-Bus Bindings Library
ii libnih1 1.0.1-1 NIH Utility Library
ii libnl1 1.1-5build1 library for dealing with netlink sockets
ii libntfs-3g75 1:2010.3.6-1ubuntu1 ntfs-3g filesystem in userspace (FUSE) library
ii libpam-modules 1.1.1-2ubuntu2 Pluggable Authentication Modules for PAM
ii libpam-runtime 1.1.1-2ubuntu2 Runtime support for the PAM library
ii libpam0g 1.1.1-2ubuntu2 Pluggable Authentication Modules library
rc libpango1.0-0 1.28.0-0ubuntu2 Layout and rendering of internationalized text
rc libpango1.0-common 1.28.0-0ubuntu2 Modules and configuration files for the Pango
ii libparse-debianchangelog-perl 1.1.1-2ubuntu2 parse Debian changelogs and output them in other formats
ii libparted0debian1 2.2-5ubuntu5 The GNU Parted disk partitioning shared library
ii libpcap0.8 1.0.0-6 system interface for user-level packet capture
ii libpci3 1:3.0.0-4ubuntu17 Linux PCI Utilities (shared library)
ii libpcre3 7.8-3build1 Perl 5 Compatible Regular Expression Library - runtime files
ii libpcsclite1 1.5.3-1ubuntu4 Middleware to access a smart card using PC/SC (library)
ii libperl5.10 5.10.1-8ubuntu2 shared Perl library
rc libpixman-1-0 0.16.4-1ubuntu2 pixel-manipulation library for X and cairo
ii libplymouth2 0.8.2-2ubuntu2 graphical boot animation and logger - shared libraries
ii libpng12-0 1.2.42-1ubuntu2 PNG library - runtime
ii libpng12-dev 1.2.42-1ubuntu2 PNG library - development
ii libpopt0 1.15-1 lib for parsing cmdline parameters
ii libpq5 8.4.4-0ubuntu10.04 PostgreSQL C client library
ii libpthread-stubs0 0.3-2 pthread stubs not provided by native libc
ii libpthread-stubs0-dev 0.3-2 pthread stubs not provided by native libc, development files
ii libpython2.6 2.6.5-1ubuntu6 Shared Python runtime library (version 2.6)
ii libradius1 0.3.2-13 /bin/login replacement with RADIUS. Shared lib to used by programs
ii libreadline6 6.1-1 GNU readline and history libraries, run-time libraries
ii librpc-xml-perl 0.72-1 Perl module implementation of XML-RPC
rc librrd4 1.3.8-1ubuntu1 Time-series data storage and display system (runtime library)
ii libsasl2-2 2.1.23.dfsg1-5ubuntu1 Cyrus SASL - authentication abstraction library
ii libsasl2-modules 2.1.23.dfsg1-5ubuntu1 Cyrus SASL - pluggable authentication modules
ii libselinux1 2.0.89-4 SELinux runtime shared libraries
ii libsensors4 1:3.1.2-2 library to read temperature/voltage/fan sensors
ii libsepol1 2.0.40-2 SELinux library for manipulating binary security policies
ii libsigc++-2.0-0c2a type-safe Signal Framework for C++ - runtime
ii libslang2 2.2.2-2ubuntu1 The S-Lang programming library - runtime version
ii libsnmp-base SNMP (Simple Network Management Protocol) MIBs and documentation
ii libsnmp-session-perl 1.13-1 Perl support for accessing SNMP-aware devices
ii libsnmp15 SNMP (Simple Network Management Protocol) library
ii libsocket6-perl 0.23-1 Perl extensions for IPv6
ii libsqlite3-0 3.6.22-1 SQLite 3 shared library
ii libss2 1.41.11-1ubuntu2 command-line interface parsing library
ii libssl0.9.8 0.9.8k-7ubuntu8 SSL shared libraries
ii libstdc++6 4.4.3-4ubuntu5 The GNU Standard C++ Library v3
ii libsub-name-perl 0.04-1build1 Assigns a new name to referenced sub
ii libsvn-perl 1.6.6dfsg-2ubuntu1 Perl bindings for Subversion
ii libsvn1 1.6.6dfsg-2ubuntu1 Shared libraries used by Subversion
rc libsysfs2 2.1.0-6 interface library to sysfs
ii libtalloc2 2.0.1-1 hierarchical pool based memory allocator
ii libtasn1-3 2.4-1 Manage ASN.1 structures (runtime)
ii libterm-readkey-perl 2.30-4build1 A perl module for simple terminal control
ii libtext-charwidth-perl 0.04-6 get display widths of characters on the terminal
ii libtext-iconv-perl 1.7-2 converts between character sets in Perl
ii libtext-wrapi18n-perl 0.06-7 internationalized substitute of Text::Wrap
rc libthai0 0.1.13-1build1 Thai language support library
ii libtimedate-perl 1.1900-1 Time and date functions for Perl
rc libts-0.0-0 1.0-7build1 touch screen library
ii libudev0 151-12 udev library
ii liburi-perl 1.52-1 module to manipulate and access URI strings
ii libusb-0.1-4 2:0.1.12-14 userspace USB programming library
ii libuuid1 2.17.2-0ubuntu1 Universally Unique ID library
ii libwbclient0 2:3.4.7~dfsg-1ubuntu3 Samba winbind client library
ii libwrap0 7.6.q-18 Wietse Venema's TCP wrappers library
ii libwww-perl 5.834-1 Perl HTTP/WWW client/server library
ii libx11-6 2:1.3.2-1ubuntu3 X11 client-side library
ii libx11-data 2:1.3.2-1ubuntu3 X11 client-side library
ii libx11-dev 2:1.3.2-1ubuntu3 X11 client-side library (development headers)
ii libxapian15 1.0.18-1 Search engine library
ii libxau-dev 1:1.0.5-1 X11 authorisation library (development headers)
ii libxau6 1:1.0.5-1 X11 authorisation library
rc libxcb-render-util0 0.3.6-1build1 utility libraries for X C Binding -- render-util
rc libxcb-render0 1.5-2 X C Binding, render extension
ii libxcb1 1.5-2 X C Binding
ii libxcb1-dev 1.5-2 X C Binding, development files
ii libxdmcp-dev 1:1.0.3-1 X11 authorisation library (development headers)
ii libxdmcp6 1:1.0.3-1 X11 Display Manager Control Protocol library
ii libxext6 2:1.1.1-2 X11 miscellaneous extension library
rc libxfont1 1:1.4.1-1 X11 font rasterisation library
rc libxft2 2.1.14-1ubuntu1 FreeType-based font drawing library for X
ii libxml-libxml-perl 1.70.ds-1 Perl interface to the libxml2 library
ii libxml-namespacesupport-perl 1.09-3 Perl module for supporting simple generic namespaces
ii libxml-parser-perl 2.36-1.1build3 Perl module for parsing XML files
ii libxml-sax-expat-perl 0.40-1 Perl module for a SAX2 driver for Expat (XML::Parser)
ii libxml-sax-perl 0.96+dfsg-2 Perl module for using and building Perl SAX2 XML processors
ii libxml2 2.7.6.dfsg-1ubuntu1 GNOME XML library
ii libxmuu1 2:1.0.5-1 X11 miscellaneous micro-utility library
ii libxpm-dev 1:3.5.8-1 X11 pixmap library (development headers)
ii libxpm4 1:3.5.8-1 X11 pixmap library
rc libxrender1 1:0.9.5-1 X Rendering Extension client library
ii libxslt1.1 1.1.26-1ubuntu1 XSLT processing library - runtime library
ii linux-firmware 1.34 Firmware for Linux kernel drivers
ii linux-headers-2.6.32-22 2.6.32-22.33 Header files related to Linux kernel version 2.6.32
ii linux-headers-2.6.32-22-server 2.6.32-22.33 Linux kernel headers for version 2.6.32 on x86_64
ii linux-headers-server Linux kernel headers on Server Equipment.
ii linux-image-2.6.32-21-server 2.6.32-21.32 Linux kernel image for version 2.6.32 on x86_64
ii linux-image-2.6.32-22-server 2.6.32-22.33 Linux kernel image for version 2.6.32 on x86_64
ii linux-image-server Linux kernel image on Server Equipment.
ii linux-libc-dev 2.6.32-22.33 Linux Kernel Headers for development
ii linux-server Complete Linux kernel on Server Equipment.
ii lm-sensors 1:3.1.2-2 utilities to read temperature/voltage/fan sensors
ii locales 2.11+git20100304-3 common files for locale support
ii lockfile-progs 0.1.13ubuntu1 Programs for locking and unlocking files and mailboxes
ii login 1: system login tools
ii logrotate 3.7.8-4ubuntu2 Log rotation utility
ii lsb-base 4.0-0ubuntu8 Linux Standard Base 4.0 init script functionality
ii lsb-release 4.0-0ubuntu8 Linux Standard Base version reporting utility
ii lshw 02.14-1build1 information about hardware configuration
ii lsof 4.81.dfsg.1-1build1 List open files
ii ltrace 0.5.3-2ubuntu3 Tracks runtime library calls in dynamically linked programs
ii lvm2 2.02.54-1ubuntu4 The Linux Logical Volume Manager
ii lzma 4.43-14ubuntu2 Compression method of 7z format in 7-Zip program
ii make 3.81-7ubuntu1 An utility for Directing compilation.
ii makedev 2.3.1-89ubuntu1 creates device files in /dev
ii man-db 2.5.7-2 on-line manual pager
ii manpages 3.23-1 Manual pages about using a GNU/Linux system
ii manpages-dev 3.23-1 Manual pages about using GNU/Linux for development
ii mawk 1.3.3-15ubuntu2 a pattern scanning and text processing language
ii memtest86+ 4.00-2ubuntu3 thorough real-mode memory tester
ii mime-support 3.48-1ubuntu1 MIME files 'mime.types' & 'mailcap', and support programs
ii mlocate 0.22.2-1ubuntu1 quickly find files on the filesystem based on their name
ii module-init-tools 3.11.1-2ubuntu1 tools for managing Linux kernel modules
ii mount 2.17.2-0ubuntu1 Tools for mounting and manipulating filesystems
ii mountall 2.15 filesystem mounting tool
ii mrtg 2.16.2-5ubuntu2 multi router traffic grapher
ii mrtg-contrib 2.16.2-5ubuntu2 multi router traffic grapher (contributed files)
ii mtr-tiny 0.75-2build1 Full screen ncurses traceroute tool
ii mysql-common 5.1.41-3ubuntu12.1 MySQL database common files (e.g. /etc/mysql/my.cnf)
ii nagios-images 0.5 Collection of images and icons for the nagios system
ii nagios-plugins 1.4.14-1ubuntu1 Plugins for the nagios network monitoring and management system
ii nagios-plugins-basic 1.4.14-1ubuntu1 Plugins for the nagios network monitoring and management system
ii nagios-plugins-extra 1.4.14-1ubuntu1 Plugins for the nagios network monitoring and manegement system.
ii nagios-plugins-standard 1.4.14-1ubuntu1 Plugins for the nagios network monitoring and management system
ii nagios3 3.2.0-4ubuntu2 A host/service/network monitoring and management system
ii nagios3-cgi 3.2.0-4ubuntu2 cgi files for nagios3
ii nagios3-common 3.2.0-4ubuntu2 support files for nagios3
ii nagios3-core 3.2.0-4ubuntu2 A host/service/network monitoring and management system core files
ii nano 2.2.2-1 small, friendly text editor inspired by Pico
ii ncurses-base 5.7+20090803-2ubuntu3 basic terminal type definitions
ii ncurses-bin 5.7+20090803-2ubuntu3 terminal-related programs and man pages
ii net-tools 1.60-23ubuntu2 The NET-3 networking toolkit
ii netbase 4.35ubuntu3 Basic TCP/IP networking system
ii netcat-openbsd 1.89-3ubuntu2 TCP/IP swiss army knife
ii ntfs-3g 1:2010.3.6-1ubuntu1 read-write NTFS driver for FUSE
ii ntpdate 1:4.2.4p8+dfsg-1ubuntu2 client for setting system time from NTP servers
ii openssh-client 1:5.3p1-3ubuntu3 secure shell (SSH) client, for secure access to remote machines
ii openssh-server 1:5.3p1-3ubuntu3 secure shell (SSH) server, for secure access from remote machines
ii openssl 0.9.8k-7ubuntu8 Secure Socket Layer (SSL) binary and related cryptographic tools
ii os-prober 1.38 utility to detect other OSes on a set of drives
ii parted 2.2-5ubuntu5 The GNU Parted disk partition resizing program
ii passwd 1: change and administer password and group data
ii patch 2.6-2ubuntu1 Apply a diff file to an original
ii pciutils 1:3.0.0-4ubuntu17 Linux PCI Utilities
ii perl 5.10.1-8ubuntu2 Larry Wall's Practical Extraction and Report Language
ii perl-base 5.10.1-8ubuntu2 minimal Perl system
ii perl-modules 5.10.1-8ubuntu2 Core Perl modules
ii pkg-config 0.22-1build2 manage compile and link flags for libraries
ii plymouth 0.8.2-2ubuntu2 graphical boot animation and logger - main package
ii plymouth-theme-ubuntu-text 0.8.2-2ubuntu2 graphical boot animation and logger - ubuntu-logo theme
ii popularity-contest 1.48ubuntu1 Vote for your favourite packages automatically
ii postfix 2.7.0-1 High-performance mail transport agent
ii powermgmt-base 1.31 Common utils and configs for power management
ii ppp 2.4.5~git20081126t100229-0ubuntu3 Point-to-Point Protocol (PPP) - daemon
ii pppconfig 2.3.18ubuntu2 A text menu based utility for configuring ppp
ii pppoeconf 1.19ubuntu1 configures PPPoE/ADSL connections
ii procps 1:3.2.8-1ubuntu4 /proc file system utilities
ii psmisc 22.10-1 utilities that use the proc file system
ii python 2.6.5-0ubuntu1 An interactive high-level object-oriented language (default version)
ii python-apport 1.13.3-0ubuntu2 apport crash report handling library
ii python-apt Python interface to libapt-pkg
ii python-central 0.6.15ubuntu1 register and build utility for Python packages
ii python-dbus 0.83.0-1ubuntu3 simple interprocess messaging system (Python interface)
ii python-gdbm 2.6.5-0ubuntu2 GNU dbm database support for Python
ii python-gnupginterface 0.3.2-9.1 Python interface to GnuPG (GPG)
ii python-gobject 2.21.1-0ubuntu3 Python bindings for the GObject library
ii python-httplib2 0.6.0-1 comprehensive HTTP client library written in Python
ii python-launchpadlib 1.6.0-0ubuntu1 Launchpad web services client library
ii python-lazr.restfulclient 0.9.11-1ubuntu1 client for lazr.restful-based web services
ii python-lazr.uri 1.0.2-1 library for parsing, manipulating, and generating URIs
ii python-minimal 2.6.5-0ubuntu1 A minimal subset of the Python language (default version)
ii python-newt 0.52.10-5ubuntu1 A NEWT module for Python
ii python-oauth 1.0a~svn1124-0ubuntu2 implementation of the OAuth protocol
ii python-openssl 0.10-1 Python wrapper around the OpenSSL library
ii python-pam 0.4.2-12.1ubuntu1 A Python interface to the PAM library
ii python-pexpect 2.3-1build1 Python module for automating interactive applications
ii python-pkg-resources 0.6.10-4ubuntu1 Package Discovery and Resource Access using pkg_resources
ii python-problem-report 1.13.3-0ubuntu2 Python library to handle problem reports
ii python-pycurl 7.19.0-3 Python bindings to libcurl
ii python-serial 2.3-1 pyserial - module encapsulating access for the serial port
ii python-simplejson 2.0.9-1build1 Simple, fast, extensible JSON encoder/decoder for Python
ii python-smartpm 1.2-5 Python library of the Smart Package Manager
ii python-subversion 1.6.6dfsg-2ubuntu1 Python bindings for Subversion
ii python-support 1.0.4ubuntu1 automated rebuilding support for Python modules
ii python-twisted-bin 10.0.0-2ubuntu2 Event-based framework for internet applications
ii python-twisted-core 10.0.0-2ubuntu2 Event-based framework for internet applications
ii python-wadllib 1.1.4-1ubuntu1 Python library for navigating WADL files
ii python-zope.interface 3.5.3-1ubuntu2 Interfaces for Python
ii python2.6 2.6.5-1ubuntu6 An interactive high-level object-oriented language (version 2.6)
ii python2.6-minimal 2.6.5-1ubuntu6 A minimal subset of the Python language (version 2.6)
ii qstat 2.11-1 Command-line tool for querying quake (and other) servers
ii radiusclient1 0.3.2-13 /bin/login replacement which uses the RADIUS protocol for authentication
ii readline-common 6.1-1 GNU readline and history libraries, common files
ii rsync 3.0.7-1ubuntu1 fast remote file copy program (like rcp)
ii rsyslog 4.2.0-2ubuntu8 enhanced multi-threaded syslogd
ii samba-common 2:3.4.7~dfsg-1ubuntu3 common files used by both the Samba server and client
ii samba-common-bin 2:3.4.7~dfsg-1ubuntu3 common files used by both the Samba server and client
ii screen 4.0.3-14ubuntu1 terminal multiplexor with VT100/ANSI terminal emulation
ii sed 4.2.1-6 The GNU sed stream editor
ii sensible-utils 0.0.1ubuntu3 Utilities for sensible alternative selection
ii sgml-base 1.26 SGML infrastructure and SGML catalog file support
ii smbclient 2:3.4.7~dfsg-1ubuntu3 command-line SMB/CIFS clients for Unix
ii snmp SNMP (Simple Network Management Protocol) applications
ii snmpd SNMP (Simple Network Management Protocol) agents
ii ssl-cert 1.0.23ubuntu2 simple debconf wrapper for OpenSSL
ii strace 4.5.19-2 A system call tracer
ii subversion 1.6.6dfsg-2ubuntu1 Advanced version control system
ii subversion-tools 1.6.6dfsg-2ubuntu1 Assorted tools related to Subversion
ii sudo 1.7.2p1-1ubuntu5 Provide limited super user privileges to specific users
ii sysv-rc 2.87dsf-4ubuntu17 System-V-like runlevel change mechanism
ii sysvinit-utils 2.87dsf-4ubuntu17 System-V-like utilities
ii tar 1.22-2 GNU version of the tar archiving utility
ii tasksel 2.73ubuntu26 Tool for selecting tasks for installation on Debian systems
ii tasksel-data 2.73ubuntu26 Official tasks used for installation of Debian systems
ii tcpd 7.6.q-18 Wietse Venema's TCP wrapper utilities
ii tcpdump 4.0.0-6ubuntu3 A powerful tool for network monitoring and data acquisition
ii telnet 0.17-36build1 The telnet client
ii time 1.7-23build1 The GNU time program for measuring cpu resource usage
rc tsconf 1.0-7build1 touch screen library common files
ii ttf-dejavu-core 2.30-2 Vera font family derivate with additional characters
ii tzdata 2010i-1 time zone and daylight-saving time data
ii ubuntu-keyring 2010.11.09 GnuPG keys of the Ubuntu archive
ii ubuntu-minimal 1.197 Minimal core of Ubuntu
ii ubuntu-serverguide 10.04.3 The Ubuntu Server Guide
ii ubuntu-standard 1.197 The Ubuntu standard system
ii ucf 3.0025 Update Configuration File: preserve user changes to config files.
ii udev 151-12 rule-based device node and kernel event manager
ii ufw 0.30pre1-0ubuntu2 program for managing a Netfilter firewall
ii unattended-upgrades 0.55ubuntu4 automatic installation of security upgrades
ii update-manager-core 1:0.134.8 manage release upgrades
ii update-notifier-common 0.99.3 Files shared between update-notifier and adept
ii upstart 0.6.5-6 event-based init daemon
ii ureadahead 0.100.0-4.1 Read required files in advance
ii usbutils 0.86-2ubuntu1 Linux USB utilities
ii util-linux 2.17.2-0ubuntu1 Miscellaneous system utilities
ii uuid-runtime 2.17.2-0ubuntu1 runtime components for the Universally Unique ID library
ii vim 2:7.2.330-1ubuntu3 Vi IMproved - enhanced vi editor
ii vim-common 2:7.2.330-1ubuntu3 Vi IMproved - Common files
ii vim-runtime 2:7.2.330-1ubuntu3 Vi IMproved - Runtime files
ii vim-tiny 2:7.2.330-1ubuntu3 Vi IMproved - enhanced vi editor - compact version
ii w3m 0.5.2-2.1ubuntu1 WWW browsable pager with excellent tables/frames support
ii watershed 5 reduce superfluous executions of idempotent command
ii wget 1.12-1.1ubuntu2 retrieves files from the web
ii whiptail 0.52.10-5ubuntu1 Displays user-friendly dialog boxes from shell scripts
ii wireless-crda 1.12 Wireless Central Regulatory Domain Agent
ii wireless-tools 30~pre9-3ubuntu4 Tools for manipulating Linux Wireless Extensions
ii wpasupplicant 0.6.9-3ubuntu3 client support for WPA and WPA2 (IEEE 802.11i)
rc x-ttcidfont-conf 32 TrueType and CID fonts configuration for X
ii x11-common 1:7.5+5ubuntu1 X Window System (X.Org) infrastructure
ii x11proto-core-dev 7.0.16-1 X11 core wire protocol and auxiliary headers
ii x11proto-input-dev 2.0-2 X11 Input extension wire protocol
ii x11proto-kb-dev 1.0.4-1 X11 XKB extension wire protocol
ii xauth 1:1.0.4-1 X authentication utility
rc xfonts-utils 1:7.5+2 X Window System font utility programs
ii xkb-data 1.8-1ubuntu8 X Keyboard Extension (XKB) configuration data
ii xml-core 0.13 XML infrastructure and XML catalog file support
ii xsltproc 1.1.26-1ubuntu1 XSLT command line processor
ii xtrans-dev 1.2.5-1 X transport library (development files)
ii zlib1g 1: compression library - runtime
ii zlib1g-dev 1: compression library - development

Question information

English Edit question
Ubuntu nagios3 Edit question
No assignee Edit question
Last query:
Last reply:
Vikram Dhillon (dhillon-v10) said : #1

Daniel, on nagios3 website [1] it states that the package will not automatically check for external updates, so what happens is that this upstream package from source-forge gets into debian, from there we merge it to Ubuntu and then whatever functionality was available in the upstream release is now in Ubuntu, what you did is perfectly fine :) and this attribute may not have been considered a big change by developers (I wouldn't think it is) so they left it how it is :) Now that you know what you did to chance it please be sure to document it (submit a doc file to nagios3 developers asking them to document the procedure you followed) and spread it :)

[1] http://nagios.sourceforge.net/docs/1_0/extcommands.html

P.S: please don't paste the entire dpkg output, it becomes distracting, just paste the output that is required by doing:
dpkg -l | grep package_name

Daniel Hagan (daniel-kickidle) said : #2

Sorry about the extra dpkg output. Since it was my first foray into this forum, I wanted to make sure I supplied enough info.

The documentation you linked is from Nagios v1. The Nagios v3 documents don't include the detailed steps on how to setup the external commands. I'll have to try using the v1 instructions to see if them still work in v3. If they do, I'll report back to the developers recommending that the v1 setup instructions be added to the v3 documentation.

Thanks for your assistance!


Matthias (matthias-opennomad) said : #3

Here is what I did to get around the issue:

  chmod o+x /var/lib/nagios3
  chgrp www-data /var/lib/nagios3/rw
  chgrp www-data /var/lib/nagios3/rw/nagios.cmd

That worked for me.

Can you help with this problem?

Provide an answer of your own, or ask Daniel Hagan for more information if necessary.

To post a message you must log in.