Search found 7 matches
- Wed Feb 20, 2019 12:23 pm
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
I listed all services and did a search (Ctrl F) on the hostname, which is inbedded in the configuration name. It did not find any that began with a blank.
- Wed Feb 20, 2019 11:56 am
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
I did a search on server1 and it came back without any duplicates. The name of our config files is XX-XXXXXXX - server1.domain.com so just putting in server1 I think should have returned duplicates, but it doesn't.
- Wed Feb 20, 2019 11:35 am
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
I noticed that it is writing the services configuration file twice, but one is coming up with a blank as the first character. You don't see the blank in the GUI, only in the CLI. I tried deleting the one with the blank since it is out of date with the information in there. It writes it back and with...
- Wed Feb 20, 2019 11:13 am
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
It did not return anything.
[11:12:05]root:/usr/local/nagios/etc]# echo "select id,service_description from tbl_service where service_description like ' %' group by config_name,service_description;"|mysql -pnagiosxi nagiosql
[11:12:06]root:/usr/local/nagios/etc]#
[11:12:05]root:/usr/local/nagios/etc]# echo "select id,service_description from tbl_service where service_description like ' %' group by config_name,service_description;"|mysql -pnagiosxi nagiosql
[11:12:06]root:/usr/local/nagios/etc]#
- Tue Feb 19, 2019 4:48 pm
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
Yes, they do. Looking at the output in CCM you don't see the duplicate file names (one with blank). You only see that through the CLI.
- Tue Feb 19, 2019 4:32 pm
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Re: Leading blank in services cfg file names
I came upon this. Just started a month or so ago and just doing some cleanup from current "admins". The cfg files are not identical. Services are added to a single host. Running the verification: <Output Omitted> Total Warnings: 1396 Total Errors: 0 Things look okay - No serious problems w...
- Tue Feb 19, 2019 12:51 pm
- Forum: Nagios XI
- Topic: Leading blank in services cfg file names
- Replies: 13
- Views: 1183
Leading blank in services cfg file names
If we go into our /usr/local/nagios/etc/services directory and do an ls we found several duplicate file names except one of the files would have a leading blank space. Does anyone know how these got created and how do I get rid of them? Example: [12:44:18]root:/usr/local/nagios/etc/services]# ls ser...