Setting Default Settings for Unconfigured Objects

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Setting Default Settings for Unconfigured Objects

Post by blariv »

Hi,

I just started utilizing the "auto-configure" feature in the unconfigured objects area. I had set the parameters I want the hosts/services set to in both the xiwizard_passive_host and xiwizard_passive_service in the UI. I also hardcoded these settings in the passiveobject.inc.php and passivecheck.inc.php files.

Original forum post that used to work.
https://support.nagios.com/forum/viewto ... hp#p221543

Neither setting is taking once the server are auto imported for either linux or windows servers.

Not sure what I am missing.

I have attached the passiveobject.inc.php snippet.

Nagios XI version: 5.5.7
XI installed from: source
XI UUID: c32d835d-6ff5-46be-9267-9f927af5ef8a
Release info: nagiosxi.na.hasbro.com 3.10.0-957.el7.x86_64 x86_64
Red Hat Enterprise Linux Server release 7.6 (Maipo)
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setting Default Settings for Unconfigured Objects

Post by scottwilkerson »

The automated adding doesn't use the wizard, it actually is happening around line 289 in

Code: Select all

/usr/local/nagiosxi/scripts/parse_core_eventlog.php
NOTE: this file is overwritten every upgrade and not recommended to be modified

That said, you should be able to add the notification_interval and check_freshness directives you have in there to a template and specify the template you want to use for auto/added unconfigured objects on the Auto Configure Settings Tab and then Advanced sub tab
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Setting Default Settings for Unconfigured Objects

Post by blariv »

that did it, great service as usual.

one last question. is it possible to add a default check command to that file as well. I would like the check-host-alive set at import.

just looking for the syntax.

"check_command" => "check-host-alive!!!!!!!!",
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Setting Default Settings for Unconfigured Objects

Post by scottwilkerson »

blariv wrote:that did it, great service as usual.

one last question. is it possible to add a default check command to that file as well. I would like the check-host-alive set at import.

just looking for the syntax.

Code: Select all

"check_command" => "check-host-alive!!!!!!!!",
that looks correct if added to the host section
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
blariv
Posts: 190
Joined: Wed Sep 26, 2012 11:55 am

Re: Setting Default Settings for Unconfigured Objects

Post by blariv »

that did it. thanks and lock it.
benjaminsmith
Posts: 5324
Joined: Wed Aug 22, 2018 4:39 pm
Location: saint paul

Re: Setting Default Settings for Unconfigured Objects

Post by benjaminsmith »

that did it. thanks and lock it.
Closing. Thank you for using the Nagios Support Forum.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.

Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked