Results 1 to 3 of 3

Thread: pack_postgresql [Errno 2] No such file or directory

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Location
    Paris, France
    Posts
    21

    pack_postgresql [Errno 2] No such file or directory

    Hello,

    Triy to monitor postgreSQL databases with shinken :
    $ shinken install postgresql
    Grabbing : postgresql
    OK postgresql


    Use this command :
    define command {
    command_name check_postgresql_connection
    command_line $PLUGINSDIR$/check_postgres.pl --host $HOSTADDRESS$ --port $_HOSTPOSTGRESQLPORT$ --dbuser=$_HOSTPOSTGRESQLUSER$ --dbpass=$_HOSTPOSTGRESQLPASSWORD$ --action connection
    }


    Return :
    [Errno 2] No such file or directory


    Looking for check_postgres.pl in libexec folder :
    $ ls /var/lib/shinken/libexec/check_postgres.pl
    ls: cannot access /var/lib/shinken/libexec/check_postgres.pl: No such file or directory


    Is this file missing from the pack ?

    Thanks
    ATI

  2. #2
    Junior Member
    Join Date
    Aug 2014
    Location
    Paris, France
    Posts
    21
    Hello,

    Somebody has an answer ?
    ATI

  3. #3
    Junior Member
    Join Date
    Jan 2016
    Posts
    2
    Hi,

    postgresql seems to be a pack and not a module.

    This only deploy configuration file and not check script, it intend to user an external script that you are supposed to install by hand.

    Documentation for this script : https://bucardo.org/check_postgres/c...stgres.pl.html

    You can find it here : https://github.com/bucardo/check_postgres

    If you download, install it to your $PLUGINSDIR$ (often /usr/lib/nagios/plugins/ or /var/lib/shinken/libexec/).

    You can also use monitoring-plugins-standard who provide /usr/lib/nagios/plugins/check_pgsql.

Posting Permissions

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