Page 1 of 2

Bulk Mod issue

Posted: Thu Feb 09, 2017 3:21 pm
by BanditBBS
Trying to use bulk modifications to remove a contact from a bunch of services. I select the contact and press the "Find relationships" button and nothing ever happens

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:07 pm
by rkennedy
We would have to test this out in house to see if it's a bug - what version are you running?

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:17 pm
by BanditBBS
rkennedy wrote:We would have to test this out in house to see if it's a bug - what version are you running?
5.3.2

I'm checking for enough memory and execution time also since I have 35,000 services

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:20 pm
by BanditBBS
I just found this in error_log for httpd!

Code: Select all

script '/usr/local/nagiosxi/html/includes/components/bulkmodifications/ajax.php' not found or unable to stat, referer: https://monitoring.itciss.com/nagiosxi/includes/components/bulkmodifications/step2.php?cmd=removecontacts
[root@iss-chi-nag05 bulkmodifications]# ll
total 360
-rw-r----- 1 nagios nagios 12398 Oct 28 10:20 ajaxreqs.php
-rwxr-x--- 1 nagios nagios 34020 Oct 28 10:20 bulkmodifications.inc.php
-rwxr-x--- 1 nagios nagios 197012 Apr 7 2015 bulkmodifications.php
-rw-r----- 1 nagios nagios 2091 Oct 28 10:20 CHANGES.txt
-rw-r----- 1 nagios nagios 10709 Apr 7 2015 form.js
drwxr-x--- 2 nagios nagios 4096 Oct 21 2015 includes
-rw-r----- 1 nagios nagios 28736 Oct 28 10:20 index.php
-rw-r----- 1 nagios nagios 681 Apr 7 2015 sanity.sh
-rwxr-x--- 1 nagios nagios 37543 Oct 28 10:20 step2.php
-rw-r----- 1 nagios nagios 10477 Dec 2 2014 style.css

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:24 pm
by rkennedy
BanditBBS wrote:
rkennedy wrote:We would have to test this out in house to see if it's a bug - what version are you running?
5.3.2

I'm checking for enough memory and execution time also since I have 35,000 services
Now I have to ask since we're bringing PHP / numbers to the equation with that many vars, how many services are you attempting to remove a contact from at once?

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:28 pm
by BanditBBS
rkennedy wrote:
BanditBBS wrote:
rkennedy wrote:We would have to test this out in house to see if it's a bug - what version are you running?
5.3.2

I'm checking for enough memory and execution time also since I have 35,000 services
Now I have to ask since we're bringing PHP / numbers to the equation with that many vars, how many services are you attempting to remove a contact from at once?
I'm not even able to get to the point to where I plan on removing. It can't find the ajax.php file which doesn't exist. Edited previous comment with the folder contents.

Re: Bulk Mod issue

Posted: Thu Feb 09, 2017 4:32 pm
by BanditBBS
I fixed it by copying the ajaxreqs.php to ajax.php.

Re: Bulk Mod issue

Posted: Fri Feb 10, 2017 11:09 am
by rkennedy
I was able to confirm this on a 5.3.2 machine -

Code: Select all

==> /var/log/httpd/error_log <==
[Wed Feb 08 15:14:29.943469 2017] [:error] [pid 22242] [client 192.152.24.249:51189] script '/usr/local/nagiosxi/html/includes/components/bulkmodifications/ajax.php' not found or unable to stat, referer: http://149.56.113.209/nagiosxi/includes/components/bulkmodifications/step2.php?cmd=removecontacts
Spinning up a fresh 5.4.2 machine to see if it's still an issue.

Re: Bulk Mod issue

Posted: Fri Feb 10, 2017 11:35 am
by rkennedy
Was able to confirm this is not a problem in 5.4.2 -

Code: Select all


==> /var/log/httpd/access_log <==
192.152.24.249 - - [10/Feb/2017:11:35:09 -0500] "GET /nagiosxi/includes/components/bulkmodifications/ajaxreqs.php?cmd=getcontacts&contact=nagiosadmin&id=1 HTTP/1.1" 200 1671 "http://149.56.113.209/nagiosxi/includes/components/bulkmodifications/step2.php?cmd=removecontacts" "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/56.0.2924.87 Safari/537.36"

You should probably update, Bandit. :)

Re: Bulk Mod issue

Posted: Fri Feb 10, 2017 1:17 pm
by BanditBBS
rkennedy wrote:Was able to confirm this is not a problem in 5.4.2 -
You should probably update, Bandit. :)
I actually have a CMR in to update on Monday.

Thanks!