Hi Dinesh,
So sorry you were hit by this bug :(
The following command should find and fix the file on the nagios/nagrestconf server:
sed -i 's#\(^[^,]*\)/#\1#' `find /etc/nagios*/ -name "*_hosts.setup" | grep '/setup/'`
After this is run, all should work. Read on to see how I got that line and why you got the error...
In the rest reference page (1), you will see fields with 'E' flags. Those fields can contain any character. Other fields cannot and the GUI should not allow it. I have re-opened bug #35 where someone had the same problem, with the same character!
You can read that issue (2) to see how to fix, but I will also paste my previous answer below:
------------------------------- snip -----------------------------------
I need to block this in the GUI, or allow it and fix it. The former is easier of course!
You'll need to edit the csv files manually to get rid of it.
I can't remember exactly the directory but if you do the following you will find the file to edit:
find /etc/nagios*/ -name "*_hosts.setup"
It should be in the setup/ directory, not last_known_good (or similar to that).
It's just a csv file so you can just delete the '/' character and all should be good.
------------------------------- snip -----------------------------------
The above assumes some linux command line knowledge. Here's what happened when I added host 'Testio-ABC-DEV/IT-1481175032' then tried the above to fix it:
# find /etc/nagios*/ -name "*_hosts.setup"
/etc/nagios3/objects/local/setup.known_good/local_hosts.setup
/etc/nagios3/objects/local/versions/local_hosts.setup
/etc/nagios3/objects/local/setup/local_hosts.setup
So, it was the third line. Isolate it with grep:
# find /etc/nagios*/ -name "*_hosts.setup" | grep '/setup/'
/etc/nagios3/objects/local/setup/local_hosts.setup
And now take the slash out of ALL the first fields. Use vim, emacs, nano etc, or sed (as shown):
sed -i 's#\(^[^,]*\)/#\1#' `find /etc/nagios*/ -name "*_hosts.setup" | grep '/setup/'`
Now you will be able to configure or delete the host in the GUI.