Page 1 of 1

Object file

Posted: Wed Feb 27, 2019 5:13 am
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?

Re: Object file

Posted: Wed Feb 27, 2019 2:34 pm
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