This commit is contained in:
Markus Makela 2015-03-13 03:34:31 +02:00
commit ca44549ddf
2 changed files with 10 additions and 2 deletions

View File

@ -92,3 +92,11 @@ Example related to server1.cfg
* services
OK: 7 services found | services1=RW_Router;readwritesplit;1;1 services2=RW_Split;readwritesplit;1;1 services3=Test Service;readconnroute;1;1 services4=Master Service;readconnroute;2;2 services5=Debug Service;debugcli;1;1 services6=CLI;cli;2;145 services7=MaxInfo;maxinfo;2;2
Returns OK and the number of services
Returns CRITICAL if no services are found
The data after | char are so called performance data and may be collected by Nagios
output format is:
servicex=Name;router_module;NumUsers;TotalSessions

View File

@ -201,8 +201,8 @@ if ($n_monitors) {
close(MAXSCALE);
exit 0;
} else {
printf "CRITICAL: 0 monitors found\n";
printf "WARNING: 0 monitors found\n";
close(MAXSCALE);
exit 2;
exit 1;
}