Bulk Mod issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Bulk Mod issue

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Mod issue

Post by rkennedy »

We would have to test this out in house to see if it's a bug - what version are you running?
Former Nagios Employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bulk Mod issue

Post 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
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bulk Mod issue

Post 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
Last edited by BanditBBS on Thu Feb 09, 2017 4:25 pm, edited 1 time in total.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Mod issue

Post 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?
Former Nagios Employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bulk Mod issue

Post 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.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bulk Mod issue

Post by BanditBBS »

I fixed it by copying the ajaxreqs.php to ajax.php.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Mod issue

Post 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.
Former Nagios Employee
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Mod issue

Post 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. :)
Former Nagios Employee
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Bulk Mod issue

Post 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!
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
Locked