This document describes how to automate adding and removing hosts and services in Nagios XI from the command line. Some administrators may have need to automate the process of adding and removing hosts and services in Nagios XI for use with cloud computing or large environments where solutions like Puppet or Chef may already be implemented. The procedures below outline how administrators can create their own automation solutions to safely add and remove hosts and services in Nagios XI while still maintaining the integrity of the monitoring environment.
Search
About Nagios Labs
Nagios is the industry standard in IT infrastructure monitoring.
Nagios Labs is where our techs talk about new projects, support issues, best practices, and the cool stuff that's coming.
Latest Articles
Article Categories
Alerts
Awards
Awesome
Business Monitoring
Community
Components
Configuration
Cool Stuff
Databases
Deployment
Development
Distributed Monitoring
Events
Graphs
Internationalization
Jobs
Maps and Diagrams
Mobile
Nagios Core
Nagios Fusion
Nagios Log Server
Nagios Network Analyzer
Nagios XI
NCPA
Notifications
NRDS
NRPE
Passive Checks
Performance
Plugins
Release
Remote Monitoring
Reports
Site News
Support Issues
Tech Tips
UI
Uncategorized
Updates
Videos
Visualizations
VMWare
Windows
Wizards
This is certainly a feature that many larger installs will appreciate. In fact, I am implementing it right now with an organization working toward 20,000 checks on a Nagios XI install. This will be a major reason for some organizations with large Core installs to move toward XI…thanks. I surely appreciate all the hard work the developers at Nagios are doing.
Thanks
Typo in document. “nagiosql_delete_service.php” is used instead of “nagiosql_delete_host.php”
*****
After the services have successfully been deleted, the host can be removed as well:
./nagiosql_delete_service.php –host=LOC_MASShost_1
*******
Looks like there are actually two typos here, the arguments should all have two dashes as well: –host=myHost –config=myConfig. I updated and posted the new doc this morning, thanks for catching this!
Thanks for correcting that. Now i finally got it working
This is exactly what I was looking for! Thanks muchly.
R