HOWTO: Nagios installation on OMV - internal error ?

  • Installation on latest official OMV version, uptodate..


    1)
    apt-get install wget build-essential apache2 php5-gd libgd2-xpm libgd2-xpm-dev libapache2-mod-php5


    2)
    cd /var/www


    wget http://prdownloads.sourceforge…agios/nagios-4.0.7.tar.gz
    wget http://nagios-plugins.org/down…gios-plugins-2.0.3.tar.gz


    3)
    useradd nagios
    groupadd nagcmd
    usermod -a -G nagcmd nagios
    usermod -a -G nagcmd www-data


    4)
    tar zxvf nagios-4.0.7.tar.gz


    5)
    mv nagios-4.0.7 nagios
    cd nagios


    6)
    # ./configure --with-command-group=nagcmd
    ./configure --with-nagios-group=nagios --with-command-group=nagcmd --with-mail=/usr/bin/sendmail


    7)
    make all
    make install
    make install-init
    make install-config
    make install-commandmode


    #Normally you need to change the emailadres in contacts.cfg file:
    nano /usr/local/nagios/etc/objects/contacts.cfg
    #but don't do that because there is no mailsystem in OMV yet.


    make install-webconf


    cp -R contrib/eventhandlers/ /usr/local/nagios/libexec/
    chown -R nagios:nagios /usr/local/nagios/libexec/eventhandlers



    # change nagios admin password
    htpasswd -c /usr/local/nagios/etc/htpasswd.users nagiosadmin


    service apache2 restart


    # compile nagios plugins and install
    cd /var/www
    tar xzf nagios-plugins-2.0.3.tar.gz
    cd nagios-plugins-2.0.3
    ./configure --with-nagios-user=nagios --with-nagios-group=nagios
    make
    make install
    ln -s /etc/init.d/nagios /etc/rcS.d/S99nagios


    # verify config
    /usr/local/nagios/bin/nagios -v /usr/local/nagios/etc/nagios.cfg


    # start nagios
    /etc/init.d/nagios start


    # remove the old installation files
    rm nagios-4.0.7.tar.gz
    rm nagios-plugins-2.0.3.tar.gz
    rm -rf nagios-plugins-2.0.3


    ========================


    SO far so good, you can see Nagios running at:


    http://your_server_ip/nagios/


    But as soon as you choice one of Nagios menu-options, you see an INTERNAL ERROR.
    Don't know why, I have asked the OMV developer already about it, but no answer yet.


    Maybe somebody else can try this all and find the fix..


    Please let us know !

    • Offizieller Beitrag

    What version of OMV?

    omv 7.0.4-2 sandworm | 64 bit | 6.5 proxmox kernel

    plugins :: omvextrasorg 7.0 | kvm 7.0.10 | compose 7.1.2 | k8s 7.0-6 | cputemp 7.0 | mergerfs 7.0.3


    omv-extras.org plugins source code and issue tracker - github


    Please try ctrl-shift-R and read this before posting a question.

    Please put your OMV system details in your signature.
    Please don't PM for support... Too many PMs!

  • Why in the world 'sudo -s', why... we don't use sudo on OpenMediaVault... thats ubuntu stuff, not debian stuff...?!


    To your problem: Why don't you install nagios into a VM?


    Greetings
    David

    "Well... lately this forum has become support for everything except omv" [...] "And is like someone is banning Google from their browsers"


    Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.

    Upload Logfile via WebGUI/CLI
    #openmediavault on freenode IRC | German & English | GMT+1
    Absolutely no Support via PM!

  • Zitat von "davidh2k"

    Why in the world 'sudo -s', why... we don't use sudo on OpenMediaVault... thats ubuntu stuff, not debian stuff...?!


    To your problem: Why don't you install nagios into a VM?


    Greetings
    David


    That sudo -s was a mistake, will remove that.


    And a VM is too slow, thats whh ;)

  • Hello. I need help to configure the webserver for negios3 installation. I'm not a linux crack, so i don't know what i do now after this:



    Now i want open nagios3 via http://omvip/nagios3 - its only say "404 Not Found".


    What must i do now? The service is running well

    Code
    service nagios3 status
    checking /usr/sbin/nagios3...done (running).


    I use omv 1.11

Jetzt mitmachen!

Sie haben noch kein Benutzerkonto auf unserer Seite? Registrieren Sie sich kostenlos und nehmen Sie an unserer Community teil!