Page 1 of 2

Bulk Modification Tool

Posted: Mon Jan 11, 2016 2:46 pm
by mlk0506
How can I make changes across the board to the CPU service using the Bulk Modification Tool? I tried using the "Change Command and Arguments," but it does not work correctly.

My current settings are: check_xi_service_nsclient!!CPULOAD!-l 5,80,90

When I use the previous above mentioned tool, I get the following output: check_xi_service_nsclient!CPULOAD!-1!5!80!99!!!! and then it gives me the following error: check_nt: Could not parse arguments

I'm running version 5.2.0.

Re: Bulk Modification Tool

Posted: Mon Jan 11, 2016 3:00 pm
by hsmith
I'm running XI 5.2.3, and it worked fine for me.

Did you follow the same steps that I did?

Code: Select all

Change Command and Arguments
Click on Select Services
Type CPU Usage into the filter
Highlight the one(s) I want to change
Hit add selected
Hit close
For $ARG1$ type in your NSClient password, if applicable.
$ARG2$ type in CPULOAD
$ARG3$ type in whatever you want for thresholds, for example: -l 5,80,90
Save Changes
Apply Configuration
I verified that it populated the values correctly after I did this.

Re: Bulk Modification Tool

Posted: Mon Jan 11, 2016 3:58 pm
by mlk0506
I just upgraded to 5.2.3 and followed your instructions completely, and I'm still receiving the same issue.

Re: Bulk Modification Tool

Posted: Mon Jan 11, 2016 4:40 pm
by rkennedy
Can you post a screenshot showing your configuration where you see check_xi_service_nsclient!CPULOAD!-1!5!80!99!!!!?

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 9:53 am
by mlk0506
I have included two screen shots. This is after I upgraded to the 5.2.3 OS. I the one you want a copy of, was before I followed your directions and I was putting the information in the wrong field. However, I'm still having issues after the upgrade.

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 10:23 am
by hsmith
Does your NSClient have a password on it?

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 10:54 am
by mlk0506
No, there is no password.

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 11:08 am
by rkennedy
Can you also post the service definition that shows the $ARG1$ values?

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 11:17 am
by jolson
If you compare a working check_cpu_load command that you have generated previously to one that breaks after you use the bulk modifications tool, what is different between the two?

The command we're talking about looks like this from the GUI:

Code: Select all

$USER1$/check_nt -H $HOSTADDRESS$ -s "$ARG1$" -p 12489 -v $ARG2$ $ARG3$ $ARG4$
Due to the way that the arguments are interpreted, leaving out a secret will cause the command to fail, because there is still a '-s' in the command definition.
[root@localhost libexec]# ./check_nt -H 192.168.1.1 -s -p 12489 -v CPULOAD -l 5,80,90
check_nt: Could not parse arguments
Try either removing the '-s' from your command definition (if you don't plan on using a password) or enabling a password on your devices (which I do recommend you do for the sake of security).

Re: Bulk Modification Tool

Posted: Tue Jan 12, 2016 11:28 am
by mlk0506
I tried on a different server that was working correctly before. I receive the same error.