Kategoriarkiv: Nagios

Styling Nagios output for a large display

Theres not really any built in features for styling Nagios, so i devised a simple workaround that utilizes html, css and jquery to do the trick. We need to run this on the same domain as Nagios itself or disable … Læs resten

Udgivet i Nagios | Skriv en kommentar

PHP Script to parse nagios.dat

Please add your own error-handling:

Udgivet i Nagios, PHP | Skriv en kommentar

Nagios module for monitoring smsdlog for modem-connectivity

Udgivet i Nagios, Uncategorized | Skriv en kommentar

Nagios / Incinga plugin for BackupPC

This plugin scrapes the BackupPC web-interface and uses it to fire off an alert if one or more jobs needs attention.

Udgivet i Nagios | Skriv en kommentar

Nagios / Incinga plugin for verifying ssl certificates

Udgivet i Nagios, PHP, Uncategorized | Skriv en kommentar

Nagiosmodule for HAProxy Health monitoring

This is just a quick hack, and it could certainly be better. I.E. it could get the list af active backends automaticly, and this assumes that you only have one websites with these backends in. I plan a projekt where … Læs resten

Udgivet i Knowledge Base, Monitoring, Nagios, Networking, Old Base | Skriv en kommentar

Nagios module for monitoring Postfix Queue Size

#!/usr/bin/php <? $e=exec(“postqueue -p|tail -n1”); if (preg_match(“/empty/”,$e)) { print “OK: Queue is empty | queue_size=0\n”; die(0); } preg_match(“/([0-9]+) Requests/”,$e,$m); if ($m[1]>100) { print “WARNING: “.$m[1].” mails in queue | queue_size=”.$m[1].”\n”; die(1); } else { print “OK: “.$m[1].” mails in queue … Læs resten

Udgivet i Monitoring, Nagios, Postfix | Skriv en kommentar

Nagios modul til overvågning af antal MySQL Connections

Jeg har gemt selve modulet i /opt/nagios/mysql_conn.php: #!/usr/bin/php <? # Copyright (c) 2013 Mikkel Mikjaer Christensen function get_args() { global $argv; $a = $argv; unset($a[0]); $b = preg_split(“/-/”,implode(” “,$a),NULL,PREG_SPLIT_NO_EMPTY); foreach ($b as $_) { $c = preg_split(“/ /”,$_,NULL,PREG_SPLIT_NO_EMPTY); $ret[$c[0]]=$c[1]; } … Læs resten

Udgivet i Knowledge Base, Linux, Monitoring, Mysql, Nagios, Old Base | Skriv en kommentar

Overvåg dine SSL Certifikater med Nagios

Det er ikke bare hamrende uprofessionelt men det er også mega irriterende når ens SSL Certifikater udløber og man ikke opdater det – for det første har man jo sat ind i sin kalender når certifikatet skal fornyes men det … Læs resten

Udgivet i Knowledge Base, Nagios | Skriv en kommentar