Object file

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
Geo
Posts: 7
Joined: Tue Feb 26, 2019 11:12 am

Object file

Post by Geo »

Good morning,

is it possibile to add a new file object file (.cfg) for specific devices. For example I would like to monitor the ping service on IP cameras. Is it possible to create a camera.cfg file inside the object folder and then include it in nagios as separeted file?
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Object file

Post by scottwilkerson »

In the nagios.cfg if the objects directory is listed as a cfg_dir then you can simply create the file

Otherwise you can also just add the file in the nagios.cfg as something like

Code: Select all

cfg_file=/usr/local/nagios/etc/objects/camera.cfg
Then restart nagios
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked