Nagios XI host check orphaned and duplicate nagios process

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by lmiltchev »

I believe the script is supposed to save your old configs to a different directory, remove old gearman packages, and install the new ones... I will have to check with our developers on that.

What is the exact command that you ran while trying to upgrade the worker?
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by lmiltchev »

Update: I heard back from one of our developers, and he said:
Yeah, there is nowhere in the script to stop current running services. I'll put it on my list and have that issued out early next week
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by emartine »

on the third worker I am now getting


Forbidden
You don't have permission to access /downloads/mod_gearman/v2.1.1/rhel6/x86_64/ on this server.
Apache/2.2.15 (CentOS) Server at assets.nagios.com Port 443

Seems like the site is down?


./ModGearmanInstall.sh --type=worker --upgrade


*******************************************************************************

Nagios Enterprises
Mod Gearman Installer Script

License:
Nagios Open Software License

Support:
XI Support Mailing List <[email protected]> (customers only)
Community Forums <http://support.nagios.com/forum/>

*******************************************************************************

Notices:
* Only run this script on a machine with no previous gearman installations
* Only run this script in server mode if the machine runs Nagios Core 4
* This script comes with absolutely no warranty, use it at your own risk

*******************************************************************************




*******************************************************************************

Downloading necessary packages...
--2016-03-30 15:04:28-- http://assets.nagios.com/downloads/mod_ ... x86_64.rpm
Resolving assets.nagios.com... 72.14.181.71
Connecting to assets.nagios.com|72.14.181.71|:80... connected.
HTTP request sent, awaiting response... 301 Moved Permanently
Location: https://assets.nagios.com/downloads/mod ... x86_64.rpm [following]
--2016-03-30 15:04:28-- https://assets.nagios.com/downloads/mod ... x86_64.rpm
Connecting to assets.nagios.com|72.14.181.71|:443... connected.
HTTP request sent, awaiting response... No data received.
Retrying.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by rkennedy »

assets.nagios.com was running into issues over the past few hours, can you attempt to run it again? If not, can you post the full link you're trying to download?
Former Nagios Employee
bwallace
Posts: 1145
Joined: Tue Nov 17, 2015 1:57 pm

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by bwallace »

to add on to rkennedy's post:

CIDR: 72.14.176.0/20
NetName: LINODE-US

Linode reports connectivity issues this afternoon:
http://status.linode.com/
Be sure to check out the Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by emartine »

I have installed gearmand and the workers. Seems like nagios won't start unless gearmand is running first.

The order in which they must start has apparently changed.

It went from:
1)nagios
2)gearmand
3)gearmand worker

to:
1)gearmand
2)nagios
3)gearmand worker

In that order.

?

Is this correct?
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by emartine »

I just noticed this... Seems like I have to configure the broker line for gearman as I am unable to submit commands through the XI interface. Any idea what might be going on here?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by lmiltchev »

Seems like I have to configure the broker line for gearman as I am unable to submit commands through the XI interface. Any idea what might be going on here?
Can you run the following commands and show the output?

Code: Select all

updatedb
locate mod_gearman2
grep gearman /usr/local/nagios/etc/nagios.cfg
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
emartine
Posts: 660
Joined: Thu Dec 29, 2011 10:47 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by emartine »

]# updatedb
]# locate mod_gearman2
/etc/mod_gearman2
/etc/logrotate.d/mod_gearman2
/etc/mod_gearman2/module.conf
/etc/mod_gearman2/module.conf.rpmsave
/etc/mod_gearman2/worker.conf
/etc/mod_gearman2/worker.conf.rpmsave
/usr/bin/mod_gearman2_mini_epn
/usr/bin/mod_gearman2_worker
/usr/lib64/mod_gearman2
/usr/lib64/mod_gearman2/mod_gearman2.o
/usr/share/mod_gearman2
/usr/share/mod_gearman2/gearman_proxy.pl
/usr/share/mod_gearman2/mod_gearman_p1.pl
/usr/share/mod_gearman2/shared.conf
/usr/share/mod_gearman2/standalone_worker.conf
/var/mod_gearman2
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/checksum_data
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/checksum_type
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/checksum_type.tmp
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/command_line
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/from_repo
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/from_repo_revision
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/from_repo_timestamp
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/installed_by
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/reason
/var/lib/yum/yumdb/m/2dd1812ff6f2e571445dbb7f19b1d83db531be0a-mod_gearman2-2.1.1-1.el6-x86_64/releasever
/var/lock/subsys/mod_gearman2_worker
/var/log/mod_gearman2
/var/log/mod_gearman2/mod_gearman_neb.log
/var/log/mod_gearman2/mod_gearman_neb.log-20160403
/var/log/mod_gearman2/mod_gearman_worker.log
/var/log/mod_gearman2/mod_gearman_worker.log-20160403
/var/mod_gearman2/mod_gearman_worker.pid
]# grep gearman /usr/local/nagios/etc/nagios.cfg
broker_module=/usr/lib64/mod_gearman2/mod_gearman2.o config=/etc/mod_gearman2/module.conf eventhandler=no
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Nagios XI host check orphaned and duplicate nagios proce

Post by tgriep »

The gearman server should be started before nagios so the nagios process can connect to the server.
Can you post this file so we can review it?

Code: Select all

/etc/mod_gearman2/module.conf
Are you getting any errors when you are submitting commands?
Can you post them?
Can you describe the steps you are doing to generate the error?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked