z

Commercial Support Clients: Clients with support contracts can get escalated support assistance by visiting Nagios Answer Hub. These forums are for community support services. Although we at Nagios try our best to help out on the forums here, we always give priority support to our support clients.

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.

Nagios HOST in command

Postby motown_sk » Wed Sep 07, 2022 3:57 pm

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.
motown_sk
 
Posts: 1
Joined: Wed Sep 07, 2022 3:51 pm

Return to Open Source Nagios Projects

Who is online

Users browsing this forum: No registered users and 27 guests