Parent Directory
|
Revision Log
Draft of nagios-cmdline-tools, a set of shell scripts to interact with the Nagios daemon via the command line
1 | #!/bin/sh |
2 | # Submit the SCHEDULE_FORCED_SVC_CHECK command to Nagios |
3 | |
4 | now=`date +%s` |
5 | commandfile='/var/log/nagios/rw/nagios.cmd' |
6 | host=$1 |
7 | service=$2 |
8 | |
9 | /usr/bin/printf "[%lu] SCHEDULE_FORCED_SVC_CHECK;$host;$service;1110741500\n" $now > $commandfile |
Name | Value |
---|---|
svn:keywords | id |
grid.support@nikhef.nl | ViewVC Help |
Powered by ViewVC 1.1.28 |