Page 1 of 1

error when install sip plugin on nags xi

Posted: Wed Jun 08, 2016 7:00 pm
by almanasra
Nagios Core 4.1.1
Copyright (c) 2009-present Nagios Core Development Team and Community Contributors
Copyright (c) 1999-2009 Ethan Galstad
Last Modified: 08-19-2015
License: GPL

Website: https://www.nagios.org
Reading configuration data...




Read main config file okay...
Error: Command name of command line is NULL
Error: Could not register command (config file '/usr/local/nagios/etc/commands.cfg', starting on line 276)
Error processing object config files!


***> One or more problems was encountered while processing the config files...

Check your configuration file(s) to ensure that they contain valid
directives and data defintions. If you are upgrading from a previous
version of Nagios, you should be aware that some variables/definitions
may have been removed or modified in this version. Make sure to read
the HTML documentation regarding the config files, as well as the
'Whats New' section to find out what has changed.

Re: error when install sip plugin on nags xi

Posted: Thu Jun 09, 2016 10:19 am
by rkennedy
Can you show us what you added to your commands.cfg? As the error mentions, it most likely corresponds to this 'Error: Command name of command line is NULL'

Also, please post your commands.cfg for us to take a look at.

Re: error when install sip plugin on nags xi

Posted: Thu Jun 09, 2016 11:16 am
by almanasra
[root@cts-ace1-vip ~]# cd /usr/local/nagios/libexec/
[root@cts-ace1-vip libexec]# ./check_sip_options
Can't locate String/Random.pm in @INC (@INC contains: /usr/local/lib64/perl5 /usr/local/share/perl5 /usr/lib64/perl5/vendor_perl /usr/share/perl5/vendor_perl /usr/lib64/perl5 /usr/share/perl5 .) at ./check_sip_options line 14.
BEGIN failed--compilation aborted at ./check_sip_options line 14.
[root@cts-ace1-vip libexec]#

Re: error when install sip plugin on nags xi

Posted: Thu Jun 09, 2016 11:53 am
by rkennedy
Looks like your missing a perl dependency, try running this -

Code: Select all

perl -MCPAN -e 'install String::Random'