Nagios HOST in command

Support forum for Nagios Core, Nagios Plugins, NCPA, NRPE, NSCA, NDOUtils and more. Engage with the community of users including those using the open source solutions.
Post Reply
motown_sk
Posts: 1
Joined: Wed Sep 07, 2022 3:51 pm

Nagios HOST in command

Post by motown_sk »

I run multiple servers and I have a custom notification command ( twilio sms ) that I'd like to share between the servers. I figure I can put the command definition in a stand alone file that can be shared on the relevant hosts, and in doing so I'd like to use a macro/variable for the nagios hostname ( and not the $HOSTNAME$ of the alerting device ); that way I don't have to have a custom file on each server.

Is there a variable that stores the nagios server host? I've done some digging but I can't find anything referencing this, likely because $HOSTNAME$ is swamping my results.
Post Reply