Debian: Issues with poller.php in latest Cacti (0.8.7a)

monitoring 2 Comments »

Prehistory: Upgraded cacti to 0.8.7a a couple of weeks ago during a regular “apt-get dist-upgrade” run.
Today I checked my Cacti installation to gather some intel on a performance/latency issue that we are currently encountering on a network link. As all graphs are blank since mid of October (hey, I am only checking in to Cacti when there are issues to take care of) I went ahead and tried to manually run the poller:

root@host: [~] /usr/share/cacti/site/poller.php
/usr/share/cacti/site/poller.php: line 1: ?php: No such file or directory
/usr/share/cacti/site/poller.php: line 2: /bin: is a directory
/usr/share/cacti/site/poller.php: line 3: +-------------------------------------------------------------------------+: command not found
/usr/share/cacti/site/poller.php: line 4: syntax error near unexpected token `|'
/usr/share/cacti/site/poller.php: line 4: ` | Copyright (C) 2004-2007 The Cacti Group |'

Looking at the source of poller.php did not really reveal anything obvious which made me start searching the Cacti forum, Google and Debian Bugs. Looks like I am pretty much alone with the problem so far…

Probably that’s the price you pay for running cutting edge (*zang*) Debian unstable.

fsck.

SNMPD: Remotely query return code of scripts

monitoring, systems No Comments »

To remotely check the return code of a script via snmpd add the following to snmpd.conf:
exec myname /path/to/script
After recycling the snmpd daemon the return code could be obtained via the following OID:
1.3.6.1.4.1.2021.8.1.100.1
If you have more than one exec line the last digit is incremented by one for each script.

OpenView for Windows: List of configuration files

monitoring No Comments »

c:\usr\ov\conf\opc\mgrconf
c:\usr\ov\conf\opc\nodeinfo
c:\usr\ov\conf\opc\primmgr
c:\usr\ov\bin\opc\install\opcinfo

OpenView: Setup Tracing in OVO8

monitoring No Comments »

.) start trace server
/etc/rc3.d/S90OVTrcSrv start
.) register localhost as allowed client
./ovtrcadm -hosts
./ovtrcadm -a localhost
.) start monitor
opcagt -start

.) setup tracing of agent
./ovconfchg -ns eaagt -set OPC_TRACE TRUE

OpenView: opccfgupld

monitoring No Comments »

opccfgupld -replace /home/user/templates

root@node:/home/user/templates# find . -name \*
./templates.tar
./C
./C/template.idx
./C/TEMPLATES
./C/TEMPLATES/LOGFILE
./C/TEMPLATES/LOGFILE/logfile.dat
./C/TEMPLATES/INTERFACE
./C/TEMPLATES/INTERFACE/interface.dat
./C/TEMPLATES/MONITOR
./C/TEMPLATES/MONITOR/monitor.dat
./C/TEMPLATES/SCHEDULE
./C/TEMPLATES/SCHEDULE/schedule.dat
./C/TEMPLATES/TEMPLGROUP
./C/TEMPLATES/TEMPLGROUP/templgroup.dat

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Log in