Hello,
I am getting this SNMP error when i am trying to create a new device on my Linux system. I have checked my SNMP community string, it is correct.
Also, the Status in Devices is Unknown both for the Localhost and the one i added.
i checked this too and i got a timeout but when i do a ping i get response.
snmpwalk -c mystring -v 1 IP
Timeout: No Response from IP
I have all these on my system.
net-snmp-5.1.2-11.EL4.6
mysql-4.1.12-3.RHEL4.1
php-4.3.9-3.9
rrdtool is installed at [/usr/local/bin/rrdtool-1.2.12]
snmpget and snmpwalk are at [/usr/bin]
This is from my cacti log file::
12/28/2005 02:55:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti-0.8.6g/poller_export.php]
12/28/2005 02:55:02 PM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q /var/www/html/cacti-0.8.6g/poller_commands.php]
12/28/2005 02:55:02 PM - SYSTEM STATS: Time:1.0275 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:0 RRDsProcessed:0
12/28/2005 02:55:01 PM - CMDPHP: Poller[0] ERROR: Either there are no items in the cache or polling is disabled
--I checked in the Settings-Poller, polling process is enabled.
Any ideas?
Thanks
Charlie.
SNMP Issue
Moderators: Developers, Moderators
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
Wait some polling cycles, state only changes on polls.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
Yes it did changed to 'Up' and there are some values in Current and Average. Thanks.
But i am still not able to view graphs, i have added one graph for each. I only see text like
'Localhost - Memory Usage', no graph.
cacti.log
--------
12/28/2005 03:55:03 PM - SYSTEM STATS: Time:1.0511 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:3 RRDsProcessed:3
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[8] DS[14] WARNING: Result from CMD not valid. Partial Result:
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from CMD not valid. Partial Result:
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[7] DS[12] WARNING: Result from CMD not valid. Partial Result:
Thanks,Charlie.
But i am still not able to view graphs, i have added one graph for each. I only see text like
'Localhost - Memory Usage', no graph.
cacti.log
--------
12/28/2005 03:55:03 PM - SYSTEM STATS: Time:1.0511 Method:cmd.php Processes:1 Threads:N/A Hosts:3 HostsPerProcess:3 DataSources:3 RRDsProcessed:3
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[8] DS[14] WARNING: Result from CMD not valid. Partial Result:
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[7] DS[13] WARNING: Result from CMD not valid. Partial Result:
12/28/2005 03:55:02 PM - CMDPHP: Poller[0] Host[7] DS[12] WARNING: Result from CMD not valid. Partial Result:
Thanks,Charlie.
- rony
- Developer/Forum Admin
- Posts: 6022
- Joined: Mon Nov 17, 2003 6:35 pm
- Location: Michigan, USA
- Contact:
That script for that graph requires access /proc/meminfo. Does the poller user have access to /proc/meminfo?
Also, that is for localhost only, it will not work with remote hosts.
Also, that is for localhost only, it will not work with remote hosts.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
I tried to read the file using both users root and the other user i used when i installed cacti, the cactiuser. I was able to do that. but still no graphs just text. what am i missing.
This is from cacti.log file for a different host.
-----------------------------
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[15] SNMP: v1: 'IPAddress', dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 1
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[14] CMD: perl /var/www/html/cacti-0.8.6g/scripts/ping.pl 'IPAddress' output: U
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[14] WARNING: Result from CMD not valid. Partial Result:
say when i clicked on DS[14]: i get this
Data Template (Unix -Ping Host)
Data Source Debug
/usr/local/bin/rrdtool-1.2.12 create \
/var/www/html/cacti-0.8.6g/rra/ea_router_ping_14.rrd \
--step 300 \
DS:ping:GAUGE:600:0:5000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
does this helps? any ideas?
Thanks
Charlie.
This is from cacti.log file for a different host.
-----------------------------
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[15] SNMP: v1: 'IPAddress', dsname: users, oid: .1.3.6.1.2.1.25.1.5.0, output: 1
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[14] CMD: perl /var/www/html/cacti-0.8.6g/scripts/ping.pl 'IPAddress' output: U
12/28/2005 05:05:05 PM - CMDPHP: Poller[0] Host[8] DS[14] WARNING: Result from CMD not valid. Partial Result:
say when i clicked on DS[14]: i get this
Data Template (Unix -Ping Host)
Data Source Debug
/usr/local/bin/rrdtool-1.2.12 create \
/var/www/html/cacti-0.8.6g/rra/ea_router_ping_14.rrd \
--step 300 \
DS:ping:GAUGE:600:0:5000 \
RRA:AVERAGE:0.5:1:600 \
RRA:AVERAGE:0.5:6:700 \
RRA:AVERAGE:0.5:24:775 \
RRA:AVERAGE:0.5:288:797 \
RRA:MAX:0.5:1:600 \
RRA:MAX:0.5:6:700 \
RRA:MAX:0.5:24:775 \
RRA:MAX:0.5:288:797 \
does this helps? any ideas?
Thanks
Charlie.
- gandalf
- Developer
- Posts: 22383
- Joined: Thu Dec 02, 2004 2:46 am
- Location: Muenster, Germany
- Contact:
Please su to your cactiuser and try to run from cli.
If you got your remote hosts' snmp config up and running, I'd suggest you start using SNMP Graphs first to check your installation. E.g. assign "Generic SNMP enabled Host" or "ucd/net SNMP Host" to your remote device. You'll see some Graph Templates and Data Queries associated with this host. Then "Create Graphs for this Host" and wait at least for two polling cycles...
Reinhard
Code: Select all
perl /var/www/html/cacti-0.8.6g/scripts/ping.pl 'IPAddress'
If you got your remote hosts' snmp config up and running, I'd suggest you start using SNMP Graphs first to check your installation. E.g. assign "Generic SNMP enabled Host" or "ucd/net SNMP Host" to your remote device. You'll see some Graph Templates and Data Queries associated with this host. Then "Create Graphs for this Host" and wait at least for two polling cycles...
Reinhard
Who is online
Users browsing this forum: No registered users and 3 guests