Page 1 of 1

NagiosLog : "The Configuration Could not be verified" error

Posted: Mon Jul 30, 2018 5:25 am
by gsl_ops_practice
NagiosLog : "The Configuration Could not be verified" error

Have added a new Inputs, and able to verify fine. but when applied configuration, received the error that "The Configuration Could not be verified" .
Able to see the inputs in the "View Inputs" via GUI but the actual config file in the server /usr/local/nagioslogserver/logstash/etc/conf.d/000_inputs.conf is NOT updated.

New Input entry added is as below ( was trying to test https://assets.nagios.com/downloads/nag ... Inputs.pdf)

file {
type => 'testing'
path => '/tmp/test.log'
}

Already checked the link https://support.nagios.com/forum/viewto ... d+#p244767 but still have same issue.

Re: NagiosLog : "The Configuration Could not be verified" er

Posted: Mon Jul 30, 2018 2:05 pm
by scottwilkerson
Can you share the results of the following command

Code: Select all

ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/

Re: NagiosLog : "The Configuration Could not be verified" er

Posted: Mon Jul 30, 2018 9:51 pm
by gsl_ops_practice
Hi, please see the requested o/p and the screenshot from "View - Input File" which shows the config is updated but from the actual cmd line shows its NOT updated and the "Apply Configaration" suspected to be not success.
I have tried writing into the /tmp/test.log, it doesn't appear in the NagiosLog events as well.

[root@centos005v7 ~]# ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/
total 12
drwxrwxr-x. 2 nagios nagios 77 Jul 27 09:53 .
drwxrwxr-x. 3 nagios nagios 20 Jul 27 09:21 ..
-rw-rw-r--. 1 apache apache 592 Jul 27 09:53 000_inputs.conf
-rw-rw-r--. 1 apache apache 987 Jul 27 09:53 500_filters.conf
-rw-rw-r--. 1 apache apache 390 Jul 27 09:53 999_outputs.conf
[root@centos005v7 ~]#
[root@centos005v7 ~]# date
Mon 30 Jul 17:21:00 SGT 2018
[root@centos005v7 ~]#

Re: NagiosLog : "The Configuration Could not be verified" er

Posted: Tue Jul 31, 2018 7:40 am
by scottwilkerson
Please change the following permissions

Code: Select all

chown nagios.nagios /usr/local/nagioslogserver/logstash/etc/conf.d/*
Try again.

Also if you continue to have issues, can you send the results of the following

Code: Select all

grep nag /etc/group
Thanks