Page 1 of 1

Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 11:52 am
by lb2cons
Hello everyone. I'm following this http://assets.nagios.com/downloads/nagi ... ios_XI.pdf instructions to integrate Nagios XI 2014R2.0 with Mod_Gearman.

I'm stuck just on the first move.

# yum localinstall -–nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm
Loaded plugins: fastestmirror
Traceback (most recent call last):
File "/usr/bin/yum", line 29, in <module>
yummain.user_main(sys.argv[1:], exit_code=True)
File "/usr/share/yum-cli/yummain.py", line 294, in user_main
errcode = main(args)
File "/usr/share/yum-cli/yummain.py", line 115, in main
base.getOptionsConfig(args)
File "/usr/share/yum-cli/cli.py", line 251, in getOptionsConfig
(opts, self.cmds) = self.optparser.setupYumConfig(args=args)
File "/usr/share/yum-cli/cli.py", line 1456, in setupYumConfig
(opts, cmds) = self.parse_args(args=args)
File "/usr/lib64/python2.6/optparse.py", line 1396, in parse_args
self.error(str(err))
File "/usr/lib64/python2.6/optparse.py", line 140, in __str__
return _("no such option: %s") % self.opt_str
UnicodeDecodeError: 'ascii' codec can't decode byte 0xe2 in position 1: ordinal not in range(128)

I've been googling a while but I've got only generic answers. Does anyone know what is this?

Re: Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 1:03 pm
by lmiltchev
I was not able to recreate the issue in house. Can you run the following commands and show us the output?

Code: Select all

cat /etc/*release
uname -a
whereis python

Re: Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 1:09 pm
by lb2cons
# cat /etc/*release
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)
CentOS release 6.6 (Final)

# uname -a
Linux LB2-NagiosXI 2.6.32-504.1.3.el6.x86_64 #1 SMP Tue Nov 11 17:57:25 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux

# whereis python
python: /usr/bin/python2.6 /usr/bin/python /usr/bin/python2.6-config /usr/lib/python2.6 /usr/lib/python2.7 /usr/lib64/python2.6 /usr/local/lib/python /usr/include/python2.6 /usr/share/man/man1/python.1.gz

Re: Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 1:54 pm
by tgriep
Try running this

Code: Select all

yum clean all
Then try installing the mod_gearman rpm again.

Re: Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 1:59 pm
by scottwilkerson
Actually this could be a copy paste error, the command you posted is actually

Code: Select all

yum localinstall -–nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm
when it should be this

Code: Select all

 yum localinstall -–nogpgcheck mod_gearman-1.5.0b1-1.el6.x86_64.rpm
They look the same but have a funny - in the first

Re: Problem Integrating NagiosXI with Mod_Gearman

Posted: Tue Jan 06, 2015 2:38 pm
by lb2cons
I'm feeling stupid now :lol: Thanks a lot.