error when install sip plugin on nags xi

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Locked
almanasra
Posts: 2
Joined: Wed May 25, 2016 5:19 pm

error when install sip plugin on nags xi

Post 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.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: error when install sip plugin on nags xi

Post 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.
Former Nagios Employee
almanasra
Posts: 2
Joined: Wed May 25, 2016 5:19 pm

Re: error when install sip plugin on nags xi

Post 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]#
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: error when install sip plugin on nags xi

Post by rkennedy »

Looks like your missing a perl dependency, try running this -

Code: Select all

perl -MCPAN -e 'install String::Random'
Former Nagios Employee
Locked