Not finding check files after using Linux snmp wizard

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
jkelly1959
Posts: 49
Joined: Tue Jun 06, 2017 10:59 am

Not finding check files after using Linux snmp wizard

Post by jkelly1959 »

Setup our first linux monitoring with the linux snmp wizard in xi. Found filesystems and processes and set a few up to monitor.
When checks started running started to receive errors indicating that the check files where not in /usr/local/nagios/libexec.

(No output on stdout) stderr: execvp(/usr/local/nagios/libexec/check_snmp_load_wizard.pl, ...) failed. errno is 2: No such file or directory

I did a find on *wizards" got the following:(base dir was /usr)

[nagios@lnxvnaghq001 usr]$ find . -name "*wizard*"
find: ‘./share/polkit-1/rules.d’: Permission denied
find: ‘./libexec/initscripts/legacy-actions/auditd’: Permission denied
./local/nagios/share/images/logos/bpiwizard.png
./local/nagiosxi/html/includes/components/escalationwizard
./local/nagiosxi/html/includes/components/escalationwizard/escalationwizard.inc.php
./local/nagiosxi/html/includes/components/escalationwizard/escalationwizard.php
./local/nagiosxi/html/includes/components/nagioscore/ui/images/logos/bpiwizard.png
./local/nagiosxi/html/includes/configwizards
./local/nagiosxi/html/includes/configwizards/bpiwizard
./local/nagiosxi/html/includes/configwizards/bpiwizard/bpiwizard.inc.php
./local/nagiosxi/html/includes/configwizards/bpiwizard/logos/bpiwizard.png
./local/nagiosxi/html/includes/configwizards/bpiwizard/templates/bpiwizard.cfg
./local/nagiosxi/html/includes/configwizards/configwizardhelper.inc.php
./local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_load_wizard.pl
./local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_process_wizard.pl
./local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_storage_wizard.pl
./local/nagiosxi/html/includes/configwizards.inc.php
./local/nagiosxi/html/includes/js/wizards.js
./local/nagiosxi/html/includes/utils-wizards.inc.php
./local/nagiosxi/html/includes/utils-configwizards.inc.php
./local/nagiosxi/html/admin/configwizards.php
./local/nagiosxi/html/config/monitoringwizard.php
./local/nagiosxi/html/images/config-wizard.png
./local/nagiosxi/html/images/wizardwand.png
./local/nagiosxi/tools/install_configwizard.php

Anything with wizard.pl was not in /usr/local/nagios/libexec and found only 3 in another directory as you can see. Not sure if we should just move them to libexec or if something else is missing.
I did find a bunch of basic check_snmp files in /usr/local/nagios/libexec(no wizard in name). Tested one with line command and they run.

please advise.

Also...not sure if its relevant but could not find anything beginning with check_xi in any directory under /usr. Not sure if I should have or not.

Thanks
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Not finding check files after using Linux snmp wizard

Post by tgriep »

The error message and what you posted, it sounds like the plugin is missing from the server.

Code: Select all

/usr/local/nagios/libexec/check_snmp_load_wizard.pl
If the Linux SNMP Wizard needs to be updated on your server, installing the updated version should put the missing plugin back on the server.
To check if it needs to be updated, go to the Admin > Manage Config Wizards menu, click on the Check for Updates button and update it is needed.

If the wizard is already at the latest version, you can copy the plugin from the Wizard's folder by running the following

Code: Select all

cp /usr/local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_load_wizard.pl /usr/local/nagios/libexec
cp /usr/local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_process_wizard.pl /usr/local/nagios/libexec
cp /usr/local/nagiosxi/html/includes/configwizards/linux_snmp/plugins/check_snmp_storage_wizard.pl /usr/local/nagios/libexec
Then set the plugin executible by running

Code: Select all

chmod a+x  /usr/local/nagios/libexec/check_snmp_*
After this, run the Wizard and see if it functions for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
jkelly1959
Posts: 49
Joined: Tue Jun 06, 2017 10:59 am

Re: Not finding check files after using Linux snmp wizard

Post by jkelly1959 »

Thank you. I will check the plugin for more but are those the only files related to it?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not finding check files after using Linux snmp wizard

Post by lmiltchev »

Thank you. I will check the plugin for more but are those the only files related to it?
Yes, these are the three plugins that are used by the Linux SNMP wizard. Let us know if tgriep's instructions helped you fix the issue.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked