!host_name 255 Character Limit

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

!host_name 255 Character Limit

Post by spurrellian »

Hi,

I have a host group for MS SQL Servers and against that Host Group I have a numerous service checks.

On of the service checks against these SQL Servers is for disk space on P:

Around 30 of these servers don't have P: setup.

I have excluded most of these by using host_name !SERVERNAME in the service manage variables but noticed there is a limit on 255 characters so is missing some off

I tried manually importing the file using CCM but it doesn't let you import exclusions.

Any way I can change the limit?

Thanks
Paul S - Using Nagios XI, Network Analyzer, Log Server
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: !host_name 255 Character Limit

Post by tgriep »

Can you provide a screen capture here showing the issue you are having?
Be sure to check out our Knowledgebase for helpful articles and solutions!
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: !host_name 255 Character Limit

Post by spurrellian »

I'm trying to add the following list of servers to the service check
hostname1.PNG
Once I save and click apply it cuts it down to 255 characters
hostname2.PNG
You do not have the required permissions to view the files attached to this post.
Paul S - Using Nagios XI, Network Analyzer, Log Server
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: !host_name 255 Character Limit

Post by tgriep »

Make sure you run a full backup of your system before running the following.
If you run the following command on the XI system in a shell, it will increase the size if that field to 510 characters.

Code: Select all

echo "use nagiosql;alter table tbl_variabledefinition modify value varchar(510) not null;" | mysql -pnagiosxi
Let us know if this works for you.
Be sure to check out our Knowledgebase for helpful articles and solutions!
spurrellian
Posts: 43
Joined: Tue Jan 06, 2015 6:26 am
Location: Bath, UK

Re: !host_name 255 Character Limit

Post by spurrellian »

That worked brilliantly

Thank you very much
Paul S - Using Nagios XI, Network Analyzer, Log Server
Locked