Maintaining service checks with different ncpa tokens

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
meganwilliford
Posts: 101
Joined: Tue Aug 06, 2019 7:49 am

Maintaining service checks with different ncpa tokens

Post by meganwilliford »

I'm looking for best practices around maintaining service checks on hosts with different ncpa tokens.

Here is a scenario I'm currently trying to figure out:

I have > 1000 RHEL remote hosts and > 1000 Windows remote hosts. RHEL remote hosts have a different ncpa token than the Windows remote hosts. There are multiple service checks on each remote host. I am trying to bulk modify the thresholds on the CPU service check. However, if I use the Change Command and Arguments bulk modification tool, I don't think there is a way to decipher the RHEL CPU service checks from the Windows CPU service checks which I would need to do because the different token are in the $ARG1$ line.

Is there a way to be able to select specific services only from hosts in a particular host group? Or is there a better way all together to maintain service checks for remote hosts with different ncpa tokens?
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Maintaining service checks with different ncpa tokens

Post by lmiltchev »

You could create two "custom" commands, e.g. "check_ncpa_windows", and "check_ncpa_rhel". Then, you could modify each command via the Bulk Mod Tool by adding whatever arguments you need to (including the correct token), and adding them to the correct services. You could add these commands by clicking on "Select Services" or "Select Services using Service Groups" (provided you created separate service groups for your Windows and RHEL checks).
Be sure to check out our Knowledgebase for helpful articles and solutions!
Locked