Notes not saved

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
nino
Posts: 4
Joined: Tue Dec 13, 2011 4:12 am

Notes not saved

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Notes not saved

Post 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.
Be sure to check out our Knowledgebase for helpful articles and solutions!
nino
Posts: 4
Joined: Tue Dec 13, 2011 4:12 am

Re: Notes not saved

Post 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
You do not have the required permissions to view the files attached to this post.
nino
Posts: 4
Joined: Tue Dec 13, 2011 4:12 am

Re: Notes not saved

Post by nino »

Here's the screenshot for the command
common.png
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

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
nino
Posts: 4
Joined: Tue Dec 13, 2011 4:12 am

Re: Notes not saved

Post 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.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notes not saved

Post 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.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Notes not saved

Post 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); 
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked