mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 00:25:06 +02:00
Merge pull request #1388 from spinza/addserviceircd
Add service monitoring for IRCd
This commit is contained in:
@@ -49,3 +49,4 @@ no graphs will be generated. **
|
||||
- pop
|
||||
- simap
|
||||
- ntp
|
||||
- ircd
|
||||
|
||||
@@ -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';
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in New Issue
Block a user