Bulk Modification Tool

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Bulk Modification Tool

Post 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.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bulk Modification Tool

Post 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.
Former Nagios Employee.
me.
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Bulk Modification Tool

Post by mlk0506 »

I just upgraded to 5.2.3 and followed your instructions completely, and I'm still receiving the same issue.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Modification Tool

Post by rkennedy »

Can you post a screenshot showing your configuration where you see check_xi_service_nsclient!CPULOAD!-1!5!80!99!!!!?
Former Nagios Employee
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Bulk Modification Tool

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
hsmith
Agent Smith
Posts: 3539
Joined: Thu Jul 30, 2015 11:09 am
Location: 127.0.0.1
Contact:

Re: Bulk Modification Tool

Post by hsmith »

Does your NSClient have a password on it?
Former Nagios Employee.
me.
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Bulk Modification Tool

Post by mlk0506 »

No, there is no password.
rkennedy
Posts: 6579
Joined: Mon Oct 05, 2015 11:45 am

Re: Bulk Modification Tool

Post by rkennedy »

Can you also post the service definition that shows the $ARG1$ values?
Former Nagios Employee
jolson
Attack Rabbit
Posts: 2560
Joined: Thu Feb 12, 2015 12:40 pm

Re: Bulk Modification Tool

Post 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).
Twits Blog
Show me a man who lives alone and has a perpetually clean kitchen, and 8 times out of 9 I'll show you a man with detestable spiritual qualities.
mlk0506
Posts: 28
Joined: Thu Oct 03, 2013 2:40 pm

Re: Bulk Modification Tool

Post by mlk0506 »

I tried on a different server that was working correctly before. I receive the same error.
You do not have the required permissions to view the files attached to this post.
Locked