matteocorti / nagios_plugins

18 stars 7 forks source link

ticket #99 reply #88

Closed matteocorti closed 8 years ago

matteocorti commented 8 years ago

Original reporter: kojraai@gmail.com

Sorry , i didn't find the reply option, so i open a new ticket.

My .ini file looks like the same of your guide example :

[rbl]

server=dnsbl.ahbl.org

server=cbl.abuseat.org

server=dnsbl.cyberlogic.net

server=bl.deadbeef.com

server=spamtrap.drbl.drand.net

server=spamsources.fabel.dk

server=0spam.fusionzero.com

server=mail-abuse.blacklist.jippg.org

server=korea.services.net

server=spamguard.leadmon.net

server=ix.dnsbl.manitu.net

server=relays.nether.net

server=dnsbl.njabl.org

server=bhnc.njabl.org

server=no-more-funn.moensted.dk

server=rbl.orbitrbl.com

server=psbl.surriel.com

server=dyna.spamrats.com

server=noptr.spamrats.com

server=spam.spamrats.com

; this keeps all zones of sorbs excl. spam

server=dnsbl.sorbs.net

server=spam.dnsbl.sorbs.net

server=bl.spamcannibal.org

server=bl.spamcop.net

server=pbl.spamhaus.org

server=sbl.spamhaus.org

server=xbl.spamhaus.org

server=ubl.unsubscore.com

server=dnsbl-1.uceprotect.net

server=dnsbl-2.uceprotect.net

server=dnsbl-3.uceprotect.net

server=db.wpbl.info

server=access.redhawk.org

server=blacklist.sci.kun.nl

server=bl.technovision.dk

server=dnsbl.kempt.net

server=dnsbl.solid.net

server=dul.ru

server=forbidden.icm.edu.pl

server=hil.habeas.com

server=rbl.schulte.org

server=sbl-xbl.spamhaus.org

; these are rather slow

;server=bl.csma.biz

;server=sbl.csma.biz

I used winscp and upload the .ini file . On console works fine. I tried delete [rbl] from the .ini , then centos said the same as centreon : Invalid section 'rbl' in config file 'check_rbl.ini'

So i wrote it back, centreon still do the same error.

Thanks for the fast reply.

K.J

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

Hi,

you should be able to add a comment to the ticket to reply. But in any case: the error message is confusing. Most likely when executed in centreon the file is not found at all.

On the console if you specify a non-existing ini file the same error message is generated.

Could you please check if the file is path is correct and if the file is readable by the centreon user?

Matteo

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

It seems to be caused by the fact that option file cannot be found. The error message is confusing but this is generated by the Nagios::Plugin Perl module. An eventual issue has to be filed there.

matteocorti commented 8 years ago

Original reporter: anonymous

Replying to [comment:2 corti]:

It seems to be caused by the fact that option file cannot be found. The error message is confusing but this is generated by the Nagios::Plugin Perl module. An eventual issue has to be filed there.

has this problem been fixed? As I am running nagios 3.5 on centos and from within nagios I get that error message but when I run it from the command line it works fine.

matteocorti commented 8 years ago

Original reporter: matteo@corti.li

There was nothing to fix. The Plugin was not able to find the .ini file. Where did you place it? How did you configure the plugin?