Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- $started=microtime(true);
- if ($page=file_get_contents($argv[1])) {
- if (0.5<(microtime()-$started) && strstr($file, 'some string from page')) {
- print "OK";
- exit 0;
- } else if (strstr($file, 'some string from page')) {
- print "WARNING";
- exit 1;
- }
- print "CRITICAL";
- exit 2;
- }
- print "UNKNOWN";
- exit 3;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement