mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Merge branch 'master' of https://github.com/arnoldthebat/librenms into issue-1390
Added load and state icons from silk icons
This commit is contained in:
@@ -49,3 +49,4 @@ no graphs will be generated. **
|
|||||||
- pop
|
- pop
|
||||||
- simap
|
- simap
|
||||||
- ntp
|
- ntp
|
||||||
|
- ircd
|
||||||
|
13
includes/services/ircd/check.inc
Normal file
13
includes/services/ircd/check.inc
Normal 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';
|
||||||
|
}
|
||||||
|
|
||||||
|
?>
|
Reference in New Issue
Block a user