[icinga-users] icinga ido2db and nagvis

Michael Friedrich michael.friedrich at univie.ac.at
Tue Sep 8 14:02:41 CEST 2009


John.Greenhalgh at ses.com wrote the following on 08.09.2009 13:50:
> I have the same problem. I used -i ndo2db working fine with Icinga 
> 0.8.2 and PHP5.3 on RHEL4
If ndo2db was found correctly, it would have been installed somwhere on 
your system.

Looking at the install.sh Code you may see that the check is hardcoded 
to the binary - which is not that good.

        echo $NAGVIS_BACKEND | grep -i "NDO2DB" >/dev/null
        if [ $? -eq 0 ]; then
                # Check NDO
                [ -z "$NDO_MOD" 
                NDO=`$NDO_MOD --version 2>/dev/null | grep -i "^NDO2DB"`

                # maybe somebody removed version information
                if [ -z "$NDO" ]; then
                        NDO=`$NDO_MOD --version 2>/dev/null | grep -i 
                [ -z "$NDO" ]&&NDO_MOD="NDO Module ndo2db"
                log "  $NDO_MOD (ndo2db)" $NDO

If you change the backend definition to

# backends to use

and add a new backend search with ido2db, it should run fine. Either 
way, please report this to the NagVis Coders then they can supply a 
patch for the problem. I don't think this relays on different Icinga 
versions, it's simply the hardcoded binary name.

Kind regards,
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.icinga.org/pipermail/icinga-users/attachments/20090908/67ed25a3/attachment-0001.html>

More information about the icinga-users mailing list