Platform:
Oracle Linux Server release 6.7
/usr/local/nagios/etc/nsca.cfg:
decryption_method=2
command:
/usr/local/nagios/bin/nsca -c /usr/local/nagios/etc/nsca.cfg
/var/log/messages error:
Jan 25 16:15:34 monitoring nsca[12487]: Invalid decryption method (2) in config file '/usr/local/nagios/etc/nsca.cfg' - Line 203
Jan 25 16:15:34 monitoring nsca[12487]: Daemon was not compiled with mcrypt library, so decryption is unavailable.
Solution:
yum install -y libmcrypt-devel libmcrypt
./configure --with-nsca-user=nagios --with-nsca-grp=nagios --with-mcrypt-lib=/usr/lib64/ --with-mcrypt-inc=/usr/include
make clean
make all
cp src/nsca /usr/local/nagios/bin/nsca
Thank you for this post, for Ubuntu this worked for me.
ReplyDelete./configure --with-nsca-user=nagios --with-nsca-grp=nagios --with-mcrypt-lib=/usr/lib/ --with-mcrypt-inc=/usr/include/ --with-libmcrypt-prefix=PFX