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)
Setting Default Settings for Unconfigured Objects
Setting Default Settings for Unconfigured Objects
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
The automated adding doesn't use the wizard, it actually is happening around line 289 in
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
Code: Select all
/usr/local/nagiosxi/scripts/parse_core_eventlog.phpThat 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
Re: Setting Default Settings for Unconfigured Objects
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!!!!!!!!",
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
that looks correct if added to the host sectionblariv 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!!!!!!!!",
Re: Setting Default Settings for Unconfigured Objects
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
Closing. Thank you for using the Nagios Support Forum.that did it. thanks and lock it.
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!
Be sure to check out our Knowledgebase for helpful articles and solutions!