[Nagiosplug-devel] BugFix of check_log

Matthew Peters mattp at esec.com.au
Thu Sep 5 18:13:03 CEST 2002


Hiya,

I recently (today) had a use for the check_log plugin, but found that
it contained a few bugs.  I fixed these, and cleaned up some of the
exit codes while I was at it.

Hope it helps someone.

	-Matt



-------------- next part --------------
169c169
< 	exit 2
---
> 	exit $STATE_UNKNOWN
179c179
< 	exit 0
---
> 	exit $STATE_OK
187c187
< 	tempdiff="/bin/mktemp /tmp/check_log.XXXXXXXXXX"
---
> 	tempdiff='/bin/mktemp /tmp/check_log.XXXXXXXXXX'
190c190
<   /bin/touch $tempdiff
---
> 	/bin/touch $tempdiff
207c207
< 	exitstatus=0
---
> 	exitstatus=$STATE_OK
209a210
> 	exitstatus=$STATE_CRITICAL
212c213
< exit exitstatus
---
> exit $exitstatus


More information about the Devel mailing list