Problem Integrating NagiosXI with Mod_Gearman

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Problem Integrating NagiosXI with Mod_Gearman

Post 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?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Problem Integrating NagiosXI with Mod_Gearman

Post 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
Be sure to check out our Knowledgebase for helpful articles and solutions!
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Re: Problem Integrating NagiosXI with Mod_Gearman

Post 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
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Problem Integrating NagiosXI with Mod_Gearman

Post by tgriep »

Try running this

Code: Select all

yum clean all
Then try installing the mod_gearman rpm again.
Be sure to check out our Knowledgebase for helpful articles and solutions!
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Problem Integrating NagiosXI with Mod_Gearman

Post 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
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lb2cons
Posts: 72
Joined: Mon Dec 08, 2014 4:11 pm

Re: Problem Integrating NagiosXI with Mod_Gearman

Post by lb2cons »

I'm feeling stupid now :lol: Thanks a lot.
Locked