Add IRCd service.

This commit is contained in:
Louis Rossouw
2015-07-05 21:12:59 +02:00
parent ae72cfd978
commit c050ff374f
2 changed files with 14 additions and 0 deletions
+1
View File
@@ -49,3 +49,4 @@ no graphs will be generated. **
- pop
- simap
- ntp
- ircd
+13
View File
@@ -0,0 +1,13 @@
<?php
$check = shell_exec($config['nagios_plugins'] . "/check_ircd -H ".$service['hostname']." ".$service['service_param']);
list($check, $time) = split("\|", $check);
if(strstr($check, "IRCD ok")) {
$status = '1';
} else {
$status = '0';
}
?>