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!!!
Notes not saved
Notes not saved
You do not have the required permissions to view the files attached to this post.
Re: Notes not saved
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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
Re: Notes not saved
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.
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.
You do not have the required permissions to view the files attached to this post.
Re: Notes not saved
Here's the screenshot for the command
You do not have the required permissions to view the files attached to this post.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notes not saved
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.
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
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.
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.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notes not saved
I have confirmed this and will be submitting a feature request to have the notes component re-worked.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.
Thank you.
-
scottwilkerson
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
- Contact:
Re: Notes not saved
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.
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);