The following warnings occurred:
Warning [2] Undefined array key "lockoutexpiry" - Line: 94 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 94 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "lockoutexpiry" - Line: 573 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 573 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $can_access_moderationqueue - Line: 749 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 749 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined array key "avatartype" - Line: 889 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 889 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined variable $unreadreports - Line: 45 - File: global.php(956) : eval()'d code PHP 8.1.17 (Linux)
File Line Function
/global.php(956) : eval()'d code 45 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined variable $awaitingusers - Line: 47 - File: global.php(956) : eval()'d code PHP 8.1.17 (Linux)
File Line Function
/global.php(956) : eval()'d code 47 errorHandler->error
/global.php 956 eval
/printthread.php 16 require_once
Warning [2] Undefined array key "style" - Line: 1021 - File: global.php PHP 8.1.17 (Linux)
File Line Function
/global.php 1021 errorHandler->error
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$lang_select_default - Line: 5196 - File: inc/functions.php PHP 8.1.17 (Linux)
File Line Function
/inc/functions.php 5196 errorHandler->error
/global.php 1021 build_theme_select
/printthread.php 16 require_once
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined variable $nofollow - Line: 1 - File: inc/class_parser.php(1138) : eval()'d code PHP 8.1.17 (Linux)
File Line Function
/inc/class_parser.php(1138) : eval()'d code 1 errorHandler->error
/inc/class_parser.php 1138 eval
/inc/class_parser.php 1644 postParser->mycode_parse_url
[PHP]   postParser->mycode_auto_url_callback
/inc/class_parser.php 1597 preg_replace_callback
/inc/class_parser.php 524 postParser->mycode_auto_url
/inc/class_parser.php 201 postParser->parse_mycode
/printthread.php 179 postParser->parse_message
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 165 errorHandler->error
Warning [2] Undefined array key "showimages" - Line: 160 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 160 errorHandler->error
Warning [2] Undefined array key "showvideos" - Line: 165 - File: printthread.php PHP 8.1.17 (Linux)
File Line Function
/printthread.php 165 errorHandler->error



Category5.TV Community Forum
Enable 'External Commands' - Printable Version

+- Category5.TV Community Forum (https://forum.category5.tv)
+-- Forum: NEMS - Nagios Enterprise Monitoring Server (https://forum.category5.tv/forum-8.html)
+--- Forum: Help and Support (https://forum.category5.tv/forum-9.html)
+--- Thread: Enable 'External Commands' (/thread-256.html)



Enable 'External Commands' - jnoe@fcsg.com - 06-15-2018

I need to be able to enable 'external commands' for Nagios core. I did this when I created a 'core' Nagios install for my Pi but I don't know if I go thru the same steps, would it 'break' this distro/config?


RE: Enable 'External Commands' - jnoe@fcsg.com - 06-15-2018

...found answer in the following:
https://assets.nagios.com/downloads/nagioscore/docs/nagioscore/4/en/configmain.html#check_external_commands

Doesn't seem to 'break' anything and I'm now able to send 'custom' (test) alerts and 'enable/disable' notifications like I needed. 

Robbie, can we 'enable' this in the NEMS v1.4 build? ...I think most users would want this turned on/agree?


RE: Enable 'External Commands' - Robbie Ferguson - 06-15-2018

This would break the API, Adagios, and several other features of NEMS that use Check_MK Livestatus. If you're exclusively using Nagios Core, that's fine... but Nagios Core's interface is pretty bad... the goal with NEMS is to get everyone eventually moved over to Adagios: a much nicer, mobile/responsive layout with easy UI. What you're doing will break that on NEMS.


RE: Enable 'External Commands' - jnoe@fcsg.com - 06-17-2018

"...the goal with NEMS is to get everyone eventually moved over to Adagios..." - I cannot change email address of the admin (new) account in Adagios nor get any email alerts to work. I'm able to change the admin (new) account email from 'nagios@local' to mine using NConf. If I try to change the email address of the admin (new) in Adagios, I get the following error "OSError: [Errno 2] No such file or directory: '/var/log/nagios/archives'". As well when I change the email address in NConf and then go back to Adagios and send a test email (by choosing 'service' then 'send out email...' from the GUI/icon, I get a generic error message of "error sending mail".


RE: Enable 'External Commands' - Robbie Ferguson - 06-17-2018

Sorry - I wasn't clear. The EVENTUAL goal is to migrate to Adagios. It is not yet functional and is only an "in testing" feature. Which definitely clarifies to me why you might need External Commands in Core :)

It all stems from the death of Check_MK Multisite. Originally NEMS 1.4 was going to include Multisite (as it has in the past) but I had to pull it and find an alternative (Adagios).

Adagios functionality will become a priority once NEMS 1.4.1 is complete. For now, feel free to change the conf and just be prepared to change it back again (unless you actually prefer to use Core).

Thanks!
Robbie