Page 1 of 1

Nagios 3.3.1 - DEL_DOWNTIME_BY_HOSTGROUP_NAME

Posted: Thu Nov 24, 2011 3:32 am
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.

Re: Nagios 3.3.1 - DEL_DOWNTIME_BY_HOSTGROUP_NAME

Posted: Thu Sep 13, 2012 3:28 am
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