Bulk modify bandwidth warning, critical values
Posted: Wed Jan 24, 2018 2:12 pm
We have Nagios XI Enterprise 5.4.12 and I need to modify $ARG2$ and $ARG3$ across 1100 services (all bandwidth checks via snmp).
The services are pretty much identical... check command is check_xi_service_mrtgtraf, Command view is $USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$. The only thing that's different is $ARG1$ which contains the IP_portnumber.rrd
For example, one of these services is currently set to:
$ARG1$ 192.168.94.105_10101.rrd
$ARG2$ 5.00,5.00
$ARG3$ 8.00,8.00
$ARG4$ M
I want to change $ARG2$ to 500.0,500.0 and $ARG3$ to 800.0,800.0. I navigate to Bulk Modifications Tool -> Change Command and Arguments and modify:
Check command: <leave blank>
$ARG1$ <leave blank>
$ARG2$ 500.0,500.0
$ARG3$ 800.0,800.0
$ARG4$ <leave blank>
Select the 1 service to modify (as a test) then Save.
The problem is, both $ARG1$ and $ARG4$ get blanked out upon save.
Original command:check_xi_service_mrtgtraf!192.168.94.105_10101.rrd!5.00,5.00!8.00,8.00!M
Command when bulk modify used: check_xi_service_mrtgtraf!!500.0,500.0!800.0,800.0!
How do we only change $ARG2$ and $ARG3$ while preserving $ARG1$ and $ARG4$?
Thanks!
The services are pretty much identical... check command is check_xi_service_mrtgtraf, Command view is $USER1$/check_rrdtraf -f /var/lib/mrtg/$ARG1$ -w $ARG2$ -c $ARG3$ -l $ARG4$. The only thing that's different is $ARG1$ which contains the IP_portnumber.rrd
For example, one of these services is currently set to:
$ARG1$ 192.168.94.105_10101.rrd
$ARG2$ 5.00,5.00
$ARG3$ 8.00,8.00
$ARG4$ M
I want to change $ARG2$ to 500.0,500.0 and $ARG3$ to 800.0,800.0. I navigate to Bulk Modifications Tool -> Change Command and Arguments and modify:
Check command: <leave blank>
$ARG1$ <leave blank>
$ARG2$ 500.0,500.0
$ARG3$ 800.0,800.0
$ARG4$ <leave blank>
Select the 1 service to modify (as a test) then Save.
The problem is, both $ARG1$ and $ARG4$ get blanked out upon save.
Original command:check_xi_service_mrtgtraf!192.168.94.105_10101.rrd!5.00,5.00!8.00,8.00!M
Command when bulk modify used: check_xi_service_mrtgtraf!!500.0,500.0!800.0,800.0!
How do we only change $ARG2$ and $ARG3$ while preserving $ARG1$ and $ARG4$?
Thanks!