Bug in Bulk Mod Tool(someone verify)
Bug in Bulk Mod Tool(someone verify)
Ok, here are the steps I did:
1.) Used bulk mod tool to change config name on ~40 services spread across 2 hosts to two new host names.
2.) Did not apply
3.) Found all 40 of the services and modified, removing the old host and adding the new hosts
4.) Applied Config
Issue: New services appeared on the 2 new hosts but ghost services remained on the hosts I was removing from
Fix: I had to delete the two services cfg file manually so XI would re-write them
1.) Used bulk mod tool to change config name on ~40 services spread across 2 hosts to two new host names.
2.) Did not apply
3.) Found all 40 of the services and modified, removing the old host and adding the new hosts
4.) Applied Config
Issue: New services appeared on the 2 new hosts but ghost services remained on the hosts I was removing from
Fix: I had to delete the two services cfg file manually so XI would re-write them
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
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
Re: Bug in Bulk Mod Tool(someone verify)
I've found that if bulk change "xyz" to hosts 1-100 happens to be already applied to host 51, 52, 53 (unbeknownst to me) that it will fail to write to the remaining 97 hosts...
Re: Bug in Bulk Mod Tool(someone verify)
I'm fairly confident what I described is a valid bug, so I opened http://tracker.nagios.com/view.php?id=767 bug report.
fyi - recently opened a couple for API and a FR for downtime component too
fyi - recently opened a couple for API and a FR for downtime component too
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
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
Re: Bug in Bulk Mod Tool(someone verify)
BanditBBS, can you show an example of a "before" and "after" configs?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bug in Bulk Mod Tool(someone verify)
Ludmil,lmiltchev wrote:BanditBBS, can you show an example of a "before" and "after" configs?
Let me explain better and less complicated.
Host1 has service1, service2, service3 on it.
Host2 has service4, service5, service6 on it
I can the Bulk Mod to rename configs, so service1-3 now have the config name of Host2 in CCM
I then modify service1-3 and remove host1 and add host2
I then apply changes. Result is no change to Host1 services cfg file, it still has service1-3 on it but now Host2 has service1-6. In other words, the ccm/bulk mod didn't make a change/rewrite the host1.cfg services file
I then deleted host1.cfg from the services folder, applied config again and that file got re-written and service1-3 were no longer present on host1.
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
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
Re: Bug in Bulk Mod Tool(someone verify)
Less complicated is good - I like it!
I am however unable to recreate the issue. I followed your steps, but after applying configuration:
Both hosts are present in the GUI now, but Host1 doesn't have any services. They are all added to Host2.
I no longer have Host1 config in the "services" directory. All of the services are added to "Host2".I then apply changes. Result is no change to Host1 services cfg file, it still has service1-3 on it but now Host2 has service1-6. In other words, the ccm/bulk mod didn't make a change/rewrite the host1.cfg services file
Code: Select all
[root@testbox services]# pwd
/usr/local/nagios/etc/services
[root@testbox services]# ll Host*
-rw-rw-r-- 1 apache nagios 2919 Oct 29 09:06 Host2.cfg
[root@testbox services]# cat Host2.cfg
###############################################################################
#
# Service configuration file
#
# Created by: Nagios Core Config Manager 2.5.1
# Date: 2015-10-29 09:06:05
# Version: Nagios 3.x config file
#
# --- DO NOT EDIT THIS FILE BY HAND ---
# Nagios CCM will overwrite all manual settings during the next update if you
# would like to edit files manually, place them in the 'static' directory or
# import your configs into the CCM by placing them in the 'import' directory.
#
###############################################################################
define service {
host_name Host2
service_description service1
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
define service {
host_name Host2
service_description service2
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
define service {
host_name Host2
service_description service3
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
define service {
host_name Host2
service_description service4
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
define service {
host_name Host2
service_description service5
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
define service {
host_name Host2
service_description service6
use xiwizard_genericnetdevice_ping_service
max_check_attempts 5
check_interval 5
retry_interval 1
check_period xi_timeperiod_24x7
notification_interval 60
notification_period xi_timeperiod_24x7
contacts nagiosadmin
_xiwizard genericnetdevice
register 1
}
###############################################################################
#
# Service configuration file
#
# END OF FILE
#
###############################################################################You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bug in Bulk Mod Tool(someone verify)
Ludmil,
Did you apply changes after using bulk mod tool? I am not as I want to make the further changes before applying there. I was just going through the steps to verify once again but found an error even sooner. After I modified a few services manually, I wrote the files and verified, had a error and needed to assign a new template to a few services. I used the Bulk Mod tool to change the templates on the services, it did so in the ccm. However, the services were not marked as "Not Applied" so when I applied changes and/or hit the write button, nothing was written. I have to open a service and hit save so it would then re-write the services config file.
Did you apply changes after using bulk mod tool? I am not as I want to make the further changes before applying there. I was just going through the steps to verify once again but found an error even sooner. After I modified a few services manually, I wrote the files and verified, had a error and needed to assign a new template to a few services. I used the Bulk Mod tool to change the templates on the services, it did so in the ccm. However, the services were not marked as "Not Applied" so when I applied changes and/or hit the write button, nothing was written. I have to open a service and hit save so it would then re-write the services config file.
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
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
Re: Bug in Bulk Mod Tool(someone verify)
No, I didn't. I will try this again - showing images below in the order I tested it.Did you apply changes after using bulk mod tool?
These are the two configs (before I started doing anything). CCM->Bulk Modifications->Change Config Names, typed "Host2" in the "Config Name" textbox, clicked on "Select Services", selected service1,2 &3, and saved changes. I didn't apply configuration. I went to the CCM to view the services. I modified service1 - removed Host1, added Host2 and saved. Did the same for service2 and service3. After this, I applied configuration. See my configs after I applied configuration. The "Host1.cfg" is gone from the "services" directory and the "Host2.cfg" contains all services.
You do not have the required permissions to view the files attached to this post.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Bug in Bulk Mod Tool(someone verify)
I would do the same, but there is a limit of 3 attachments for non moderators 
Here is one difference though, add a service7 to Host1 and redo the test from the start. I just tried it a third time and it still does it. I can do a remote session and show you it not working properly.
Here is one difference though, add a service7 to Host1 and redo the test from the start. I just tried it a third time and it still does it. I can do a remote session and show you it not working properly.
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
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
Re: Bug in Bulk Mod Tool(someone verify)
Bandit, create several screenshots, describing the steps you took, include some configs (before and after), zip up all of the "goodies", and PM me the zip file. I wonder if there is something than has been fixed in the Bulk Mod Tool that I am not aware of. I am running a development revision of XI... I will try the some procedure on Nagios XI 5.2.0 but first, I would like to see your screenshots. Thanks!
Be sure to check out our Knowledgebase for helpful articles and solutions!