Page 1 of 1

Victorops integration

Posted: Fri Dec 06, 2019 5:44 am
by IT-OPS-SYS
I am integrating nagios xi 5.6.6 with the victorops using the below guide:

https://help.victorops.com/knowledge-ba ... ion-guide/

I have configure the victerops.cfg and placed it to the /usr/local/nagios/etc directory and after that I have imported it to the nagios.

apply the configuration give me the below error

Re: Victorops integration

Posted: Fri Dec 06, 2019 10:29 am
by IT-OPS-SYS
nagios service is down and when we try to start the service it says:

Error: Could not register service (config file '/usr/local/nagios/etc/services/VictorOps-service.cfg', starting on line 16)

Re: Victorops integration

Posted: Fri Dec 06, 2019 1:50 pm
by ssax
Please read here:

https://assets.nagios.com/downloads/nag ... ios-XI.pdf

Technically, any file under /usr/local/nagios/etc that has this at the top should not be modified by hand:
- Or anything directly under /usr/local/nagios/etc/hosts and /usr/local/nagios/etc/services

Code: Select all

# --- 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.
Here are the only files/dirs you should manually work with under /usr/local/nagios/etc:

Code: Select all

/usr/local/nagios/etc/import/         # This is for importing
/usr/local/nagios/etc/static/         # This entire dir is for your manually created (static) configs (should you want to utilize that method)
/usr/local/nagios/etc/pnp/            # Performance data configurations

/usr/local/nagios/etc/nagios.cfg      # Nagios Core config
/usr/local/nagios/etc/ndo2db.cfg      # NDOUtils (Core data to DB settings)
/usr/local/nagios/etc/ndomod.cfg      # NDOUtils Broker Module settings
/usr/local/nagios/etc/nrpe.cfg        # Local NRPE config
/usr/local/nagios/etc/nsca.cfg        # Local NSCA config
/usr/local/nagios/etc/resource.cfg    # Custom macros
/usr/local/nagios/etc/send_nsca.cfg   # Used for send_nsca
/usr/local/nagios/etc/cgi.cfg         # I think this is managed a bit by the CCM/XI as well for permissions

Please move the file to /usr/local/nagios/etc/static, then go to Configure > Tools > Config File Management, click the Verify button, and send the full output

Or import it so that you can manage through the XI interface:

https://assets.nagios.com/downloads/nag ... gement.pdf