I ran across this plugin on the Exchange and would really like to use it. However, it appears to have been written for Nagios Core and when trying to go through the installation manual on an XI server it fails saying it can't find Nagios. Has anyone been able to successfully get this running on an XI box?
https://exchange.nagios.org/directory/P ... r)/details
Help with iLO plugin and Xi
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Help with iLO plugin and Xi
Hi,
That link is going to a main directory listing on the Nagios Exchange. If you're trying to run check_ilo2_health.pl, please try the following steps.
At this point, you should be able to run the plugin from the command line.
If that's is not the right plugin, please re-send over the link from the Nagios Exchange and I'll try to test it out here. Thanks, Benjamin
That link is going to a main directory listing on the Nagios Exchange. If you're trying to run check_ilo2_health.pl, please try the following steps.
Code: Select all
sudo cpan Nagios::Monitoring::Plugin
#Then
sed -i 's/Nagios::Plugin/Nagios::Monitoring::Plugin/g' check_ilo2_health.pl
Code: Select all
/usr/local/nagios/libexec/check_ilo2_health.plAs 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!
Re: Help with iLO plugin and Xi
Sorry about that, I pasted it as txt and I think it got truncated. I added it as a URL this time below. We were hoping to use this one so we could take advantage of the cold traps but I will look into the one you posted as well. I've tried both the SNMP 1.51 and the REST versions for CentOS 7. I got past the initial nagios core check by throwing a txt file named nagios in init.d but ran into some issues after that. I'll try it again and post the results in a bit.
https://exchange.nagios.org/directory/P ... 29/details
https://exchange.nagios.org/directory/P ... 29/details
Re: Help with iLO plugin and Xi
I ran through it again this morning. The initial issue was it checking init.d for nagios during the install. I bypassed that just throwing a blank file with that name in there. The rest of the installation process went well according to their documentation. At the very end it appears to die out though. I posted the last few lines of output below. It just dies running the configuration file. Heads up the x's in the config output show were me hiding internal info. The data was correct.
Do you wish to add one more host group (y/n) (Blank is n): n
Enter host group check interval time in minutes (Blank default value - 5 minutes ):
Enter default iLO credential you have set on the HPE iLO servers being managed.
Default credential will be saved for HPE iLO RESTful api request.
Enter iLO user name for default: nagios
Enter iLO user password:
Enter iLO user password again:
iLO Credential succeeds to encrypt and save.
Do you wish to configure iLO credential for single server if there're different with
the default iLO credential (y/n) (Blank is n): n
Please run "/usr/local/nagios/libexec/credit_save -H [default|$hostip]" script manually to set
iLO credential for default account or single server, if you wish to add individual credentical info.
**************Configured Data****************
PASSIVE_DISCOVERY 0
ACTIVE_DISCOVERY 1
HOSTGROUP: HP_iLO_CLT,10.x.x.x-10.x.x.x,xxxxx,xxxxxx
CHECK_INTERVAL 5
*********************************************
Do you wish to write above configured data to host-group configuration file. (y/n) (Blank is y):y
HPE iLO host-group configuration file saved at /usr/local/nagios/libexec/hpeilo_nagios_config.cfg.
dirname: missing operand
Try 'dirname --help' for more information.
Do you wish to run configuration file to complete the process (y/n) (Blank is y): y
Running configuration file ....
dirname: missing operand
Try 'dirname --help' for more information.
-
benjaminsmith
- Posts: 5324
- Joined: Wed Aug 22, 2018 4:39 pm
- Location: saint paul
Re: Help with iLO plugin and Xi
HI,
If you are running this on Cent 7, I believe you are hitting this issue on the following page ( Installation on Cent 7 ):
https://apolo-docs.readthedocs.io/en/la ... allation.4
Let me know if you're able to get to the next step after creating that file.
Benjamin
If you are running this on Cent 7, I believe you are hitting this issue on the following page ( Installation on Cent 7 ):
https://apolo-docs.readthedocs.io/en/la ... allation.4
In order not to modify the code of the iLO plugin scripts, the alternative proposed here is to generate a temporal file /etc/init.d/nagios during the generation of the configuration files with the following content:The error will show an error output during the execution of the configuration scripts as the showed below:
Do you wish to write above configured data to host-group configuration file. (y/n) (Blank is y):
HPE iLO host-group configuration file saved at /usr/local/nagios/libexec/hpeilo_nagios_config.cfg
grep: /etc/init.d/nagios*: No existe el fichero o el directorio
dirname: falta un operando
Pruebe 'dirname --help' para más información.
In this installation, CentOS 7 configured Nagios Daemon with systemd specifications, so the file /etc/init.d/nagios* was not created.
Code: Select all
NagiosIloCfgFile=/usr/local/nagios/etc/nagios.cfg
Benjamin
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!