NagiosLog : "The Configuration Could not be verified" error

This support forum board is for support questions relating to Nagios Log Server, our solution for managing and monitoring critical log data.
Locked
gsl_ops_practice
Posts: 151
Joined: Thu Apr 09, 2015 9:14 pm

NagiosLog : "The Configuration Could not be verified" error

Post 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.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post by scottwilkerson »

Can you share the results of the following command

Code: Select all

ls -al /usr/local/nagioslogserver/logstash/etc/conf.d/
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
gsl_ops_practice
Posts: 151
Joined: Thu Apr 09, 2015 9:14 pm

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

Post 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 ~]#
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

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

Post 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
Former Nagios employee
Creator:
ahumandesign.com
enneagrams.com
Locked