Page 2 of 3

Re: storage monitor

Posted: Wed May 13, 2020 1:08 pm
by progressive.nagiosXI
Hi,

Required details shared in PM,

ZIP file include :- fresh Profile.zip,IP screeshot,NagiosXI-module.conf,gearman-worker.conf

Thanks

Re: storage monitor

Posted: Thu May 14, 2020 2:50 am
by progressive.nagiosXI
Hi Team,

sent in private mail : ssax
had you received attachement

Thanks

Re: storage monitor

Posted: Thu May 14, 2020 11:25 am
by ssax
Received, analyzing now. Will post an update shortly.

Re: storage monitor

Posted: Thu May 14, 2020 11:34 am
by ssax
Please edit your worker.conf and add that hostgroup to the worker.conf hostgroups line OR make the SXXXXN_STORAGE group a member of the SXXXXN group (in XI CCM and apply config) that's currently listed in the worker.conf. If you're just adding SXXXXN_STORAGE to SXXXXN hostgroup to resolve this, make sure your /etc/mod_gearman/module.conf has that set on the hostgroups line as well.

Then restart the worker service on the worker.

Then restart nagios/gearman on the XI server as well, please see this guide for the process:

Code: Select all

https://support.nagios.com/kb/article.php?id=484
That should do it.

Re: storage monitor

Posted: Mon Jul 06, 2020 9:08 am
by progressive.nagiosXI
Hi ssax,

Thanks for not locking this forum.

Due to Nagiosxi crash and gearman problem we put this devices on hold .

we are still able to get details from nagios user in Nagios gearman-worker-server for this device.

Now we put device in only hostgroup defined in both gearman-master-server(Cloud)and gearman-worker-server(onPrem) configuration.

But still not getting data and showing below error

Code: Select all

xcli not found
Note:- we are currently monitor approx 600 devices via gearman in same hostgroup for that client.

Thanks

Re: storage monitor

Posted: Tue Jul 07, 2020 9:13 am
by ssax
Please PM a fresh copy of your profile and include your /etc/mod_gearman/module.conf from the XI server and the /etc/mod_gearman/worker.conf from the workers that you modified so we can see how it's setup.

Re: storage monitor

Posted: Tue Jul 07, 2020 11:18 am
by progressive.nagiosXI
Hi,

details shared in PM

Re: storage monitor
Sent: Tue Jul 07, 2020 10:13 pm
From: progressive.nagiosXI
To: ssax

Thanks

Re: storage monitor

Posted: Wed Jul 08, 2020 6:04 pm
by ssax
That looks proper.

Do you have the worker on the XI server disabled?

Please PM the output of this command from the XI server:

Code: Select all

gearman_top
What are you seeing in /var/log/mod_gearman/mod_gearman_worker.log on the worker?

Re: storage monitor

Posted: Thu Jul 09, 2020 10:52 am
by progressive.nagiosXI
Hi,

details shared in PM

Do you have the worker on the XI server disabled? yes disabled

/var/log/mod_gearman/mod_gearman_worker.log >> empty

Thanks

Re: storage monitor

Posted: Fri Jul 10, 2020 2:01 pm
by ssax
Oh, I'm wondering if this is a PATH issue, in the code it shows this:

Code: Select all

    # Add the special directories to the general path, and go searching
    # for the xcli command line utility
    dlist = os.environ['PATH'].split(':') + special_dirs
    for d in dlist:
        fullpath = os.path.join(d,'xcli')
        if os.path.exists(fullpath):
            xcli_path = fullpath
            break

    if xcli_path is None:
        print('xcli not found')
        sys.exit(3)
It's trying all the locations in the PATH to find where xcli is. Is xcli in your PATH on the gearman worker?

Code: Select all

which xcli
Try changing the code here:

Code: Select all

special_dirs = ['/usr/local/XIVGUI','/opt/XIVGUI','/opt/ibm/XIVGUI']
To:

Code: Select all

special_dirs = ['/usr/local/XIVGUI','/opt/XIVGUI','/opt/ibm/XIVGUI','/usr/local/nagios/libexec']
That should hopefully resolve it.