TracNav
Internal Commands
CheckDisk...
CheckEventLog...
CheckSystem...
CheckHelpers
- overview
- Configuration?
- CheckAlwaysOK
- CheckAlwaysCRITICAL
- CheckAlwaysWARNING
- CheckOK
- CheckCRITICAL
- CheckWARNING
- CheckMultiple
- CheckVersion
CheckTaskSched...
FileLogger...
NRPEListener...
NSClientListener...
SysTray...
CheckWMI...
RemoteConfiguration...
CheckExternalScripts...
LUAScript...
NSCAAgent...
Documentation...
Getting Started...
Information...
Sponsoring...
- ==External Scripts==
Donate...
CheckAlwaysOK
Runs another check and alters the return state to always return OK. This command has no options instead everything is inject as a new command. Notice that this command does not alter the return string so if a check (as most do) prints WARNING that will still remain, only the return state is altered. The return state is what Nagios will use to determine state.
Examples
Run the sample check from CheckDisk but alter the return state. Notice that WARNING is still printed, yet Nagios will interpret this as an OK state.
CheckAlwaysOK CheckFileSize ShowAll MaxWarn=1024M MaxCrit=4096M File:WIN=c:\WINDOWS\*.* WARNING: WIN: 2G (2325339822B)|WIN=2325339822;1073741824;4294967296 (but this will be returned with an "OK" state so Nagios will show this as working even though it is infac not working)







