Results 1 to 4 of 4

Thread: Where to put Nagios user plugins?

  1. #1
    Join Date
    Mar 2005
    Beans
    45

    Where to put Nagios user plugins?

    I want to create my own Nagios plugins but I'm a bit uneasy to put them in /usr/lib/nagios/plugins since that violates Debian/Ubuntu file system standards that /usr should be owned and managed by apt.

    Any suggestions?

  2. #2
    Join Date
    May 2011
    Location
    Belgium
    Beans
    120
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Where to put Nagios user plugins?

    Don't you have to put your plugins in /usr/local/nagios/libexec?

    Haven't tried making my own plugins and don't know much about ownership, but why would this be a violation? I did read what you say but I'm not quite sure what you mean, wouldn't this imply that for whatever program runs in /usr you wouldn't be allowed to make any changes/additions?
    Rejoice, and in rejoicings, die.

    Life is music

  3. #3
    Join Date
    Jun 2008
    Location
    Brighton
    Beans
    46
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Where to put Nagios user plugins?

    I always put mine in plugins/contrib/ on whatever distro I'm working with, usually the package manager won't remove a subdir you've created and it keeps it slightly separate, but close to hand.

    IIRC there are packages that use the contrib subdir also, but you aren't likely to cause any major problem as long as you are using nice descriptive (or at least unique) filenames.

  4. #4
    Join Date
    Jun 2008
    Location
    Brighton
    Beans
    46
    Distro
    Kubuntu 10.04 Lucid Lynx

    Re: Where to put Nagios user plugins?

    Quote Originally Posted by tapi0n View Post
    Don't you have to put your plugins in /usr/local/nagios/libexec?
    You can use plugins from anywhere on the system that the nagios daemon (or nrpe if you're using that) can read. All you would need to do is be sure to include the full path for the plugin in the command definition, or define and use another user macro (eg $USER3$=/path/to/your/plugins).

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •