Home - Walter-Stroebel/Nagios-CLI-Config GitHub Wiki

Welcome to the Nagios-CLI-Config wiki!


Here are some random notes.

You can end a cd with an *, eg. cd serviceg*. If there is more than one match, you'll get the first one. If you type just cd (no arguments) you get a list of items you can select from.

To compile the source without Netbeans just copy the src directory into a new project in your IDE. I incorporated org.json to avoid getting a dependency on an external jar, which was clumsy for deployment. Make sure to enable .jar generation.

The 'mv' command is now fairly functional in /service/item. Allows for restructuring your Nagios setup with rather less pain.

Deleting of fields (rm) and whole objects (rmdir) now works.

Added JSON output so you can actually build applications on top of this fairly easily.

Made it ALSO an Ansible module. This is automagically activated when you give it only one argument which is a readable file (which is what Ansible does). Perfect for adding hosts and services to your Nagios when rolling them out through Ansible. See also the Ansible page.