Nagios 3.3.1 - DEL_DOWNTIME_BY_HOSTGROUP_NAME

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.
Locked
fran.pastor
Posts: 24
Joined: Tue Nov 22, 2011 3:17 am

Nagios 3.3.1 - DEL_DOWNTIME_BY_HOSTGROUP_NAME

Post by fran.pastor »

how I can use this new functionality? I need to apply to a hostgroup
in include/common.h i see the define "CMD_DEL_DOWNTIME_BY_HOST_NAME 170"
i try with, for example:
http://nagios.local/nagios/cgi-bin/cmd. ... md_typ=171
but don't work..
i googleed but don't find any comment for use this new functionality, only for development.
fran.pastor
Posts: 24
Joined: Tue Nov 22, 2011 3:17 am

Re: Nagios 3.3.1 - DEL_DOWNTIME_BY_HOSTGROUP_NAME

Post by fran.pastor »

;)
masive del host downtime

Code: Select all

#!/bin/sh

HASTA=19100
DESDE=18500

while [ "$DESDE" -le "$HASTA" ]; do
echo $DESDE
        now=`date +%s`
        commandfile='/usr/local/nagios/var/rw/nagios.cmd'

        /usr/bin/printf "[%lu] DEL_HOST_DOWNTIME;$DESDE\n" $now > $commandfile
        let DESDE=DESDE+1
        done

Locked