Page 1 of 1

Nagiosxi and illegal characters

Posted: Tue May 05, 2015 7:03 pm
by krw
Hi.

So where does Nagios keep its temp files when doing a monitoring wizard setup?

I have a switch that I used a comma in the port description, which nagios I guess does not like.

Port Description:

Link to PVX 11-1-G10 CA77-7,8

I have found under /usr/local/nagios/etc/services there are files there that get created
everytime I go to apply the config it bombs with:

Error: The description string for service 'Link to PVX 11-1-G10 CA77-7,8 Bandwidth' on host 'Rupert 4900M Internet Switch' contains one or more illegal characters.

I have deleted what I think are all files relating to that description but they keep getting recreated.

[root@lonagiosxi etc]# pwd
/usr/local/nagios/etc

services/Rupert 4500M Internet.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Bandwidth
services/Rupert 4500M Internet.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Status
services/Rupert 4900M Internet Switch.cfg: service_description Link to PVX 11-1-G10 CA77-7,8 Bandwidth
services/Rupert 4900M Internet Switch.cfg: service_description Link to PVX 11-1-G10 CA77-7,8 Status
services/Rupert 4900M Internet Switch.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Bandwidth
services/Rupert 4900M Internet Switch.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Status
services/71conn2.rupert.net.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Bandwidth
services/71conn2.rupert.net.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Status
services/71conn2.rupert.net.cfg: service_description Link to PVX 11/1/G10 CA77 7/8 Bandwidth
services/71conn2.rupert.net.cfg: service_description Link to PVX 11/1/G10 CA77 7/8 Status
services/Internet-4900M-Rupert.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Bandwidth
services/Internet-4900M-Rupert.cfg: service_description Link to PVX 11-1-G10 CA77-7-8 Status

I used the same name, tried for new names, but where are these files, specifically the one with the description
with the comma in it come from?

I have deleted these files but they keep coming up and I cannot apply any new configs at present. How do I fix
this?

Thanks,
Keith

Re: Nagiosxi and illegal characters

Posted: Wed May 06, 2015 12:33 am
by Box293
You will need to go into CCM and edit/delete the services it created in the database.

Configure > Core Configuration Manager
Monitoring > Services
Search for the name of the switch
Click the service with the problem and fix the problem
OR
Delete the service

Apply Configuration should work now.

Let us know how that goes.

Re: Nagiosxi and illegal characters

Posted: Wed May 06, 2015 11:35 am
by krw
Thanks. I did not realize that config files get written even if the apply config fails so I never
actually checked to see if anything was under CCM services, which it turns out there was.

I have removed everything and added the switch again. Works fine.

Thanks for the reply.
Keith

Re: Nagiosxi and illegal characters

Posted: Wed May 06, 2015 12:03 pm
by ssax
I'm glad you got that sorted, can we mark this as resolved and lock the topic?