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