Bulk replace $ARG1$ in MySQL

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
cellact
Posts: 69
Joined: Mon May 14, 2012 7:00 am

Bulk replace $ARG1$ in MySQL

Post by cellact »

I'm trying to do change a bunch of services $ARG1$ but can't find the right MySQL table value that needs to be changed.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises
Contact:

Re: Bulk replace $ARG1$ in MySQL

Post by scottwilkerson »

First whatever you do, make sure you have a backup of your mysql database..

that said the field is check_command_args in both the nagios_services and nagios_hosts tables of the nagios database.

This field holds all of the $ARGn$ values. $ARG1$ is everything in that field before the first !
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
Locked