From b75e8605cc98332b7f7ae49cb02073ae7cbaf1b9 Mon Sep 17 00:00:00 2001 From: Shawn Sterling Date: Mon, 13 Oct 2014 22:24:19 -0700 Subject: [PATCH] moving nagios commands into their own dir --- nagios/graphios_commands.cfg | 9 +++++++++ nagios/nagios_perfdata.cfg | 13 +++++++++++++ 2 files changed, 22 insertions(+) create mode 100644 nagios/graphios_commands.cfg create mode 100644 nagios/nagios_perfdata.cfg diff --git a/nagios/graphios_commands.cfg b/nagios/graphios_commands.cfg new file mode 100644 index 0000000..449919b --- /dev/null +++ b/nagios/graphios_commands.cfg @@ -0,0 +1,9 @@ +define command { + command_name graphios_perf_host + command_line /bin/mv /var/spool/nagios/graphios/host-perfdata /var/spool/nagios/graphios/host-perfdata.$TIMET$ +} + +define command { + command_name graphios_perf_service + command_line /bin/mv /var/spool/nagios/graphios/service-perfdata /var/spool/nagios/graphios/service-perfdata.$TIMET$ +} diff --git a/nagios/nagios_perfdata.cfg b/nagios/nagios_perfdata.cfg new file mode 100644 index 0000000..109a239 --- /dev/null +++ b/nagios/nagios_perfdata.cfg @@ -0,0 +1,13 @@ + +###### Auto-generated Graphios configs ####### +process_performance_data=1 +service_perfdata_file=/var/spool/nagios/graphios/service-perfdata +service_perfdata_file_template=DATATYPE::SERVICEPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tSERVICEDESC::$SERVICEDESC$\tSERVICEPERFDATA::$SERVICEPERFDATA$\tSERVICECHECKCOMMAND::$SERVICECHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tSERVICESTATE::$SERVICESTATE$\tSERVICESTATETYPE::$SERVICESTATETYPE$\tGRAPHITEPREFIX::$_SERVICEGRAPHITEPREFIX$\tGRAPHITEPOSTFIX::$_SERVICEGRAPHITEPOSTFIX$ +service_perfdata_file_mode=a +service_perfdata_file_processing_interval=15 +service_perfdata_file_processing_command=graphios_perf_service +host_perfdata_file=/var/spool/nagios/graphios/host-perfdata +host_perfdata_file_template=DATATYPE::HOSTPERFDATA\tTIMET::$TIMET$\tHOSTNAME::$HOSTNAME$\tHOSTPERFDATA::$HOSTPERFDATA$\tHOSTCHECKCOMMAND::$HOSTCHECKCOMMAND$\tHOSTSTATE::$HOSTSTATE$\tHOSTSTATETYPE::$HOSTSTATETYPE$\tGRAPHITEPREFIX::$_HOSTGRAPHITEPREFIX$\tGRAPHITEPOSTFIX::$_HOSTGRAPHITEPOSTFIX$ +host_perfdata_file_mode=a +host_perfdata_file_processing_interval=15 +host_perfdata_file_processing_command=graphios_perf_host