# Proclog - A Nagios/Linux script to see the running process such Nagios....and so on.... # Keep it simple ! # Copyright (C) 2006 jsz/SYSteam Kalmar AB # Maintainer : Jörg Schulz # email : jorg.schulz@telia.com ########################################################################################### Revision 0.1a In this revision: ----------------- proclog looks for Services : "mysqld","nagios","sshd","master","snmpd","mrtg","smbd","ndo2db","httpd","inetd" proclog reports for logfiles : /usr/local/nagios/var/nagios.log /usr/local/nagios/var/perfdata.log /usr/local/nagios/var/status.dat /usr/local/nagios/var/rw/nagios.cmd - readable-or-not /var/log/apache/error_log - Apache Error Log proclog check following procs: Running Processes Active Mailq Requests Memory Total System Memory Free System Dirty Cache INSTALLATION ------------ Needs: php3,4 or 5 Put the proclog.php and the gif´s to your Webserver Hints: 1.) If you want to change the gif`s such en.gif and dis.gif just change it to your favorite icon in the following section print ""; } else { print ""; 2.) Change the META Tagg URL for REFRESH --- the content=15 proclag scans every 15 seconds --- 3.) If you want to add more services, add those to the $proc = array or delete a service $proc = array("mysqld","nagios","sshd","master","smtp","snmpd","mrtg","smbd","ndo2db","httpd","inetd"); I use postfix as the maildelivery , so the smtp service called here "master" , change it for your need 4.) If you dont have logfiles such perfdata.log for Nagiosgrapher from Netways.de or PNP from ederdrom.de just delete or remark the following section in the proclog.php file
Perfdata.log Questions, comments, -----> jorg.schulz@telia.com