Page 1 of 1
Notes not saved
Posted: Tue Dec 13, 2011 4:27 am
by nino
Hi
I'm trying to add a note on a service I just created, first picture is when I'm adding a new note. But when I try to click the Save changes, it says "Notes updated" yet nothing is saved. Any idea on whats happening in here?
BTW, this is a custom check and not a default one with the likes of CPU, Memory or disk spaces checks. Tried it on normal checks and it's working fine. I'm using version "2011R1.6"
Please help!!!
test note A.png
test note B.png
Re: Notes not saved
Posted: Tue Dec 13, 2011 5:54 pm
by lmiltchev
What kind of custom check have you created? Can you describe the steps you took in some detail? We will try to recreate the problem and determine what the issue might be.
Re: Notes not saved
Posted: Tue Dec 13, 2011 9:11 pm
by nino
Hi,
I'm using NagiosXI for Windows so its running under VMWare. My client is using WindowsXP and NSClient++, I used NRPE to check the status of a server. Wrote some small console apps to do some checks for ActiveMQ, It returns correct messages and status although I'm not sure how this is related to notes.
Anyway, some of them are working fine and I was able to save the notes but some are not working.
Here's the screenshots for the service where I can't save a note. Will attach a screenshot for the command after this reply.
common.png
alert.png
check.png
Re: Notes not saved
Posted: Tue Dec 13, 2011 9:15 pm
by nino
Here's the screenshot for the command
common.png
Re: Notes not saved
Posted: Thu Dec 15, 2011 12:12 pm
by scottwilkerson
I can understand blocking out certain things for privacy however the Service description may be the problem.
This directive is used to define the description of the service, which may contain spaces, dashes, and colons (semicolons, apostrophes, and quotation marks should be avoided). No two services associated with the same host can have the same description. Services are uniquely identified with their host_name and service_description directives.
If this is the case it may resolve your problem.
Re: Notes not saved
Posted: Wed Dec 21, 2011 1:09 am
by nino
I found the cause of the problem, i tried to rename the service and managed to save a note ONLY IF my service name does not exceed 17 characters. I'm not sure if this is a bug or not but it would be a nice feature if I can have service name with at least 50 characters without this problem.
Another thing, not sure if this is a bug or not again. When I rename a service, the note is gone but if I rename it back, the notes appears again. I'm guessing that the notes object component references has a reference on the service name and not on ObjectID or some kind of primary key.
Re: Notes not saved
Posted: Wed Dec 21, 2011 3:13 pm
by scottwilkerson
nino wrote:I found the cause of the problem, i tried to rename the service and managed to save a note ONLY IF my service name does not exceed 17 characters. I'm not sure if this is a bug or not but it would be a nice feature if I can have service name with at least 50 characters without this problem.
Another thing, not sure if this is a bug or not again. When I rename a service, the note is gone but if I rename it back, the notes appears again. I'm guessing that the notes object component references has a reference on the service name and not on ObjectID or some kind of primary key.
I have confirmed this and will be submitting a feature request to have the notes component re-worked.
Thank you.
Re: Notes not saved
Posted: Thu Dec 29, 2011 4:51 pm
by scottwilkerson
The character limit will be fixed in XI 2011R1.10 for new installs.
For existing installs the following query can be run to allow for long
host/service names to be store notes correctly.
Code: Select all
psql nagiosxi nagiosxi
ALTER TABLE xi_options ALTER COLUMN name TYPE VARCHAR(128);