Negate issue

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Negate issue

Post by BanditBBS »

Running a MSSQL query check that I want to negate from CRITICAL to WARNING. The command is defined as:

Code: Select all

$USER1$/negate -c WARNING -s $USER1$/check_mssql -H $HOSTADDRESS$ $ARG1$
Then $ARG1$ is filled with all the information. If we hit the "Run Check Command" button it works great and if we test from cli it works great. Once we applied in CCM the resilt is a WARNING state with this text:

Code: Select all

Error output from command:
No entry for terminal type "unknown";
using dumb terminal settings.
Any idea on what can be causing the issue? If we revert the command bac to not using negate it shows up as OK or CRITICAL as it should.

Thanks
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Negate issue

Post by tgriep »

Typically when you see that message, it is because of the special characters in the $ARG$ fields are not excaped.
When using the "Run Check Command" button, it escapes the command for you if needed and if it does it correctly, it will work for you.
What you could do is to use the "Run Check Command" button again and verify that the command in the CCM matches and see if that works for you.

You may want to refer to this KB article as well.
https://support.nagios.com/kb/article/n ... s-580.html
Be sure to check out our Knowledgebase for helpful articles and solutions!
User avatar
BanditBBS
Posts: 2474
Joined: Tue May 31, 2011 12:57 pm
Location: Scio, OH
Contact:

Re: Negate issue

Post by BanditBBS »

Compared what the run command button generates and what I have in ARG1 and it is identical. I'm at a loss as to what could be causing this weirdness.
2 of XI5.6.14 Prod/DR/DEV - Nagios LogServer 2 Nodes
See my projects on the Exchange at BanditBBS - Also check out my Nagios stuff on my personal page at Bandit's Home and at github
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: Negate issue

Post by tgriep »

Could you post or PM me the full service configuration so we can test the settings and see if we can recreate it?
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked