SNMP-Error & no rrd-files

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

Post Reply
wedge1001
Posts: 5
Joined: Thu Apr 19, 2012 3:19 am

SNMP-Error & no rrd-files

Post by wedge1001 »

Hi,
i've been trying to install the latest cacti to my debian server.
(unfortunately it has plesk on it - and i'm not allowed to do a complete reinstall)

i used apt-get to install cacti - this has worked fine.
i relocated the cacti sites to a place plesk is able to load the site (links are fixed, so that resource will point to the right folder)

But SNMP won't work.
if i create a new device i get an error at the top saying "SNMP error"

i've checked my config & tried smpwalk
the "walk" seems to work:
for example:

Code: Select all

#snmpwalk -v 1 -c public localhost .1.3.6.1.2.1.1.1.0
SNMPv2-MIB::sysDescr.0 = STRING: Linux <myserver.de> 2.6.32-5-amd64 #1 SMP Mon Jan 16 16:22:28 UTC 2012 x86_64
then i've rechecked the settings on cacti - i tried SNMP v1 and v2 - both won't fix the error.

i've checked the firewall settings - and even allowed every connection - but this asen't changed anything.

Someone got an ideas, because i haven't one anymore.

Thanks in advance
Last edited by wedge1001 on Thu Apr 19, 2012 12:55 pm, edited 1 time in total.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP-Error

Post by gandalf »

Is SELinux or the like active
R.
wedge1001
Posts: 5
Joined: Thu Apr 19, 2012 3:19 am

Re: SNMP-Error

Post by wedge1001 »

gandalf wrote:Is SELinux or the like active
R.
Hi
thank you for your answer.
i've checked this.

but sestatus wans't found on the system and there are no directories available on the fs

so nope, no selinux or anything else like this is active.
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP-Error

Post by gandalf »

Are you able to peform a wireshark trace to at least learn if some snmp request goes out from cacti?
R.
wedge1001
Posts: 5
Joined: Thu Apr 19, 2012 3:19 am

Re: SNMP-Error

Post by wedge1001 »

Hi,

thank you.
i've figured out that the server won't listen to any ports - even if the config was right.
Only an reistall has helped.

So now i've got a new problem - a well known one - i can't create the rrd-files.

thank you for your help.
i'll try to find a solution for my problem in the forums here. if i won't find any solution i'll write again ^^


edit
i reinstalled via apt-get - but it hasen't created a new user.
cat /etc/passwd wont' show me a cacti user -.-
wedge1001
Posts: 5
Joined: Thu Apr 19, 2012 3:19 am

Re: SNMP-Error

Post by wedge1001 »

hum. obiousely the poller wasn't called with the right user - so i startet it manel to see the output. this is was it shows me:

so this is what happens if i'm trying to load the poller.php manually per

Code: Select all

php -q poller.php

Code: Select all

04/19/2012 04:18:47 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '485', Max Runtime '298', Poller Runs: '1'
04/19/2012 04:18:47 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 485 seconds have passed since the last poll!
04/19/2012 04:18:48 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/sbin/spine, ARGS:  0 1]
04/19/2012 04:18:48 PM - SPINE: Poller[0] ERROR: > is an unknown command-line parameter (Spine init)
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
...
^C04/19/2012 04:21:13 PM - CMDPHP: Poller[0] WARNING: Cacti Master Poller process terminated by user
sorry for the double-post
wedge1001
Posts: 5
Joined: Thu Apr 19, 2012 3:19 am

Re: SNMP-Error & no rrd-files

Post by wedge1001 »

now i give up :/

i've tried lots of files solutions here in the board - and other mail-archives.


i've run cmd.php
this is the output:

Code: Select all

04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] PING: UDP Ping Success (0.1 ms)
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] DS[3] CMD: perl /var/www/vhosts/default/htdocs/cacti/site/scripts/linux_memory.pl MemFree:, output: 203984
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] DS[4] CMD: perl /var/www/vhosts/default/htdocs/cacti/site/scripts/linux_memory.pl SwapFree:, output: 33551224
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] DS[5] CMD: perl /var/www/vhosts/default/htdocs/cacti/site/scripts/loadavg_multi.pl, output: 1min:0.52 5min:0.32 10min:0.23
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] DS[6] CMD: perl /var/www/vhosts/default/htdocs/cacti/site/scripts/unix_users.pl , output: 1
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Host[1] DS[7] CMD: perl /var/www/vhosts/default/htdocs/cacti/site/scripts/unix_processes.pl, output: 259
04/19/2012 07:57:28 PM - CMDPHP: Poller[0] Time: 0.0530 s, Theads: N/A, Hosts: 1
if i start the poller.php i gent only this one:

Code: Select all

]$php poller.php
04/19/2012 08:07:29 PM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '1282', Max Runtime '298', Poller Runs: '1'
04/19/2012 08:07:29 PM - POLLER: Poller[0] WARNING: Cron is out of sync with the Poller Interval!  The Poller Interval is '300' seconds, with a maximum of a '300' second Cron, but 1282                       seconds have passed since the last poll!
04/19/2012 08:07:29 PM - POLLER: Poller[0] WARNING: Poller Output Table not Empty.  Issues Found: 5, Data Sources: mem_buffers(DS[3]), mem_swap(DS[4]), (DS[5]), users(DS[6]), proc(DS[7                      ])
04/19/2012 08:07:29 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/vhosts/default/htdocs/cacti/site/cmd.php" 0 1]
sh: /php: not found
PHP Warning:  putenv(): Safe Mode warning: Cannot set environment variable 'RRD_DEFAULT_FONT' - it's not in the allowed list in /var/www/vhosts/default/htdocs/cacti/site/lib/rrd.php on                       line 38
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
....
....
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
Waiting on 1 of 1 pollers.
04/19/2012 08:17:04 PM - POLLER: Poller[0] Maximum runtime of 298 seconds exceeded. Exiting.
04/19/2012 08:17:04 PM - SYSTEM STATS: Time:299.3115 Method:cmd.php Processes:2 Threads:N/A Hosts:2 HostsPerProcess:1 DataSources:5 RRDsProcessed:0
Loop  Time is: 299.32270407677
Sleep Time is: 0.67595481872559
Total Time is: 299.32404518127
i've checked permissions - they're ok.
i can write to the rra folders if i do this manually.

i've checked the status of the device. It's up.

but the system won't create me a rrd-file :/
i dunno what to do -.-
User avatar
gandalf
Developer
Posts: 22383
Joined: Thu Dec 02, 2004 2:46 am
Location: Muenster, Germany
Contact:

Re: SNMP-Error & no rrd-files

Post by gandalf »

I just noticed that you're running php safe mode. I'm not an expert on this but I'm quite sure that this is not a good idea when running cacti
R.
bedigajean
Posts: 6
Joined: Wed Apr 18, 2012 4:35 am

Re: SNMP-Error & no rrd-files

Post by bedigajean »

please some body can tell me how can i build graph that will show me a packet by using or not using template.
cordialement
J-B BED
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests