Bonjour à tous,
J'ai un problème pour monitorer mes serveurs Linux sur Observium.
Le monitoring snmp de base fonctionne, mon problème est la configuration des script Unix-agent.
J'ai utilisé le script mis à dispo sur le tuto:
# Configuration
SNMP_COMMUNITY=public
SYSCONTACT= Clm
SYSLOCATION=10.0.1.110
# get packages
apt-get install snmpd xinetd nano
mkdir -p /opt/observium && cd /opt
wget http://www.observium.org/observium-community-latest.tar.gz
tar zxvf observium-community-latest.tar.gz
sed -e "/SNMPDOPTS=/ s/^#*/SNMPDOPTS='-Lsd -Lf \/dev\/null -u snmp -p \/var\/run\/snmpd.pid'\n#/" -i /etc/default/snmpd
cp observium/scripts/distro /usr/bin/distro
chmod 755 /usr/bin/distro
mv /etc/snmp/snmpd.conf /etc/snmp/snmpd.conf.org
cat >/etc/snmp/snmpd.conf <<EOL
com2sec readonly default $SNMP_COMMUNITY
group MyROGroup v1 readonly
group MyROGroup v2c readonly
group MyROGroup usm readonly
view all included .1 80
access MyROGroup "" any noauth exact all none none
syslocation $SYSLOCATION
syscontact $SYSCONTACT
#This line allows Observium to detect the host OS if the distro script is installed
extend .1.3.6.1.4.1.2021.7890.1 distro /usr/bin/distro
EOL
cp observium/scripts/observium_agent_xinetd /etc/xinetd.d/observium_agent
# change "only_from" to match your observium server ip
nano /etc/xinetd.d/observium_agent
cp observium/scripts/observium_agent /usr/bin/observium_agent
mkdir -p /usr/lib/observium_agent/local
# copy all agent helper scripts that you want (bind, dpkg, freeradius, ksm, munin, mysql.cnf, ntpd, postfix_qshape, powerdns, rpm, shoutcast.conf, unbound, apache, crashplan, drbd, hddtemp, lmsensors, munin-scripts, nfs, nvidia-smi, postgresql.conf, powerdns-recursor, sabnzbd-qstatus, shoutcast.default.conf, vmwaretools, asterisk, dmi, exim-mailqueue.sh, ipmitool-sensor, memcached, mysql, nginx, postfix_mailgraph, postgresql.pl, raspberrypi, shoutcast, temperature)
# to make this work you have to enable the unix-agent module on your device's settings or globally in config.php ($config['poller_modules']['unix-agent'] = 1;)
#cp observium/scripts/agent-local/AGENTHELPER /usr/lib/observium_agent/local/
cp /opt/observium/scripts/agent-local/bind /usr/lib/observium_agent/local/
/etc/init.d/xinetd restart
/etc/init.d/snmpd restart
Sur le serveur observium je lance le discovery et le poller,
./discovery.php -h ns1
___ _ _
/ _ \ | |__ ___ ___ _ __ __ __(_) _ _ _ __ ___
| | | || '_ \ / __| / _ \| '__|\ \ / /| || | | || '_ ` _ \
| |_| || |_) |\__ \| __/| | \ V / | || |_| || | | | | |
\___/ |_.__/ |___/ \___||_| \_/ |_| \__,_||_| |_| |_|
Observium Professional 0.15.11.7195
http://www.observium.org
There is a newer revision of Observium available!
Version 0.15.11.7207 (20th November 2015) is 12 revisions ahead.
##### Starting discovery run at 2015-11-20 11:58:51 #####
##### Finished discovery run at 2015-11-20 11:58:51 #####
WARNING: 0 devices discovered. Did you specify a device that does not exist?
o Devices Discovered 0
o Discovery Time 0.005 secs
o Memory usage 5.75MB (peak: 5.75MB)
o MySQL Usage Cell[1/0s] Row[5/0.001s] Rows[0/0s] Column[0/0s] Update[0/0s] Insert[0/0s] Delete[0/0s]
o RRDTool Usage
Et pour le poller:
##### Starting polling run at 2015-11-20 11:55:57 #####
WARNING: 0 devices polled. Did you specify a device that does not exist?
##### Completed polling run at 2015-11-20 11:55:57 #####
o Devices Polled 0
o Poller Time 0.010 secs
o Memory usage 5.5MB (peak: 5.5MB)
o MySQL Usage Cell[1/0s] Row[3/0s] Rows[0/0s] Column[0/0s] Update[0/0s] Insert[0/0s] Delete[0/0s]
o RRDTool Usage
Et pour finir, dans les propriétés du serveur sur observium, dans la partie "Modules"
l'Unix-Agent est en disabled, je peux l'activer mais il se desactive peut de temps après...
Avez-vous eu des cas similaires ?
Merci d'avance !