Skip to content

CHANGE CUSTOM SVC VAR

Command Format

CHANGE_CUSTOM_SVC_VAR;host_name;service_description;varname;varvalue

Description

Changes the value of a custom service variable.

Shell Script Usage Example

sh
#!/bin/sh
# This is a shell script showing how to submit the CHANGE_CUSTOM_SVC_VAR command
# to Naemon. Adjust variables to fit your environment as necessary.
# This will change value of the custom variable: $_SERVICESOMEVAR$

printf "[%lu] CHANGE_CUSTOM_SVC_VAR;host1;service1;SOMEVAR;some new value\n" \
    `date +%s` > /var/lib/naemon/naemon.cmd