Nagiosxi and illegal characters

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Nagiosxi and illegal characters

Post 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
User avatar
Box293
Too Basu
Posts: 5126
Joined: Sun Feb 07, 2010 10:55 pm
Location: Deniliquin, Australia
Contact:

Re: Nagiosxi and illegal characters

Post 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.
As of May 25th, 2018, all communications with Nagios Enterprises and its employees are covered under our new Privacy Policy.
krw
Posts: 71
Joined: Tue May 29, 2012 2:01 pm

Re: Nagiosxi and illegal characters

Post 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
ssax
Dreams In Code
Posts: 7682
Joined: Wed Feb 11, 2015 12:54 pm

Re: Nagiosxi and illegal characters

Post by ssax »

I'm glad you got that sorted, can we mark this as resolved and lock the topic?
Locked