SNMP Information, snmp error

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

Moderators: Developers, Moderators

graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

SNMP Information, snmp error

Post by graver347 »

Dear Mod & Master,

I need some help
i have snmp information, snmp error
In device - localhost, snmp information not error
but in other device (other host or client), snmp error

SNMP Information
SNMP error

So a graph not shown

please suggestion, how to check this problem
hmm that's i'm not configure well the SNMP?

my snmpd.conf files setup :
com2sec local localhost public
group MyRWGroup v1 local
group MyRWGroup v2c local
group MyRWGroup usm local
view all included .1 80
access MyRWGroup "" any noauth exact all all none
syslocation Unknown (edit /etc/snmp/snmpd.conf)
syscontact Root (configure /etc/snmp/snmp.local.conf)
pass .1.3.6.1.4.1.4413.4.1 /usr/bin/ucd5820stat


i tried to test poller.php, there are some error :
#php poller.php
02/10/2012 02:14:52 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 275991 seconds have passed since the last poll!
02/10/2012 02:14:52 PM - SYSTEM STATS: Time:0.1069 Method:cmd.php Processes:1 Threads:N/A Hosts:33 HostsPerProcess:33 DataSources:535 RRDsProcessed:0
Timeout: No Response from 10.210.xx.xx:161.
Timeout: No Response from 10.211.xx.xx:161.
Timeout: No Response from 10.214.xx.xx:161.
Timeout: No Response from 10.210.xx.xx:161.
Timeout: No Response from 10.210.xx.xx:161.

*for privacy, i change ip to 'xx'

Note :
OS : RHEL5
NET-SNMP version: 5.3.2.2
PHP 5.1.6 (cli)


thank's for help :)
cheersss
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: SNMP Information, snmp error

Post by Linegod »

You have configured snmp to only respond to localhost requests:

Code: Select all

com2sec local localhost public
You should replace 'localhost' with the IP of your Cacti box.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

am i need to configure snmpd.conf in cacti client too?
with add some code like this :

Code: Select all

com2sec  readonly   [ip_cacti_machine]    your_community
my next question, why localhost can't shown graph
snmp and others is ok, no errors in localhost

thanks for your help
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: SNMP Information, snmp error

Post by Linegod »

Leave the cacti one as localhost.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

For your info
This new cacti is migrate from one server to another server (called new server)
I think that's no problem with cacti client

any idea to check why it's still not connect and shown graph?
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

Anyone can help again?

this is my RRDTOOLS info for localhost - memory usage graph:

Code: Select all

RRDTool Command:

/usr/bin/rrdtool graph - \
--imgformat=PNG \
--start=-86400 \
--end=-300 \
--title='localhost - Memory Usage' \
--rigid \
--base=1000 \
--height=120 \
--width=500 \
--alt-autoscale-max \
--lower-limit=0 \
--vertical-label='kilobytes' \
--slope-mode \
--font TITLE:12: \
--font AXIS:8: \
--font LEGEND:10: \
--font UNIT:8: \
DEF:a="/var/www/html/cacti/rra/localhost_mem_buffers_46.rrd":mem_buffers:AVERAGE \
DEF:b="/var/www/html/cacti/rra/localhost_mem_swap_47.rrd":mem_swap:AVERAGE \
CDEF:cdefa=a,1024,* \
CDEF:cdefe=b,1024,* \
AREA:cdefa#FF4105FF:"Free"  \
GPRINT:cdefa:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefa:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefa:MAX:"Maximum\:%8.2lf %s\n"  \
AREA:cdefe#FFC73BFF:"Swap":STACK \
GPRINT:cdefe:LAST:"Current\:%8.2lf %s"  \
GPRINT:cdefe:AVERAGE:"Average\:%8.2lf %s"  \
GPRINT:cdefe:MAX:"Maximum\:%8.2lf %s\n" 

RRDTool Says:

OK
SNMP Information :

Code: Select all

System:Linux XXmyhostnameXX 2.6.18-164.el5 #1 SMP Tue Aug 18 15:51:48 EDT
2009 x86_64
Uptime: 6494534 (0 days, 18 hours, 2 minutes)
Hostname: XXmyhostnameXX
Location: Unknown (edit /etc/snmp/snmpd.conf)
Contact: Root (configure /etc/snmp/snmp.local.conf)
RRDTools looks fine, so why the graph can't shown :(
Thanks for help dear master :)
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: SNMP Information, snmp error

Post by Linegod »

Have you changed the log level to debug and checked for errors?
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

Do you mean set in cron like this?

Code: Select all

*/5 * * * * /usr/bin/php -q /var/www/html/cacti/poller.php --force --debug > /var/local/log/poller.log 2>&1
i got error (date : 10-feb-2012) :

Code: Select all

# cat poller.log
02/10/2012 10:50:01 AM - POLLER: Poller[0] NOTE: Poller Int: '300', Cron Int: '300', Time Since Last: '263700', Max Runtime '298', Poller Runs: '1'
02/10/2012 10:50:01 AM - 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 263700 seconds have passed since the last poll!
02/10/2012 10:50:01 AM - POLLER: Poller[0] DEBUG: About to Spawn a Remote Process [CMD: /usr/bin/php, ARGS: -q "/var/www/html/cacti/cmd.php" 0 51]
02/10/2012 10:50:01 AM - SYSTEM STATS: Time:0.1063 Method:cmd.php Processes:1 Threads:N/A Hosts:33 HostsPerProcess:33 DataSources:535 RRDsProcessed:0
Timeout: No Response from 10.210.XX.XX:161.
Timeout: No Response from 10.210.XX.XX:161.
Timeout: No Response from 10.211.XX.XX:161.
Timeout: No Response from 10.214.XX.XX:161.
please correct if im wrong
Thank you :)
User avatar
Linegod
Developer
Posts: 1626
Joined: Thu Feb 20, 2003 10:16 am
Location: Canada
Contact:

Re: SNMP Information, snmp error

Post by Linegod »

I don't think I mentioned cron, but obviously you didn't have it set up before, as 263700 seconds have passed since the last poll

Take the --force --debug out, and set debug through the GUI.

Then check that you can do an snmpwalk of the devices from the console.
--
Live fast, die young
You're sucking up my bandwidth.

J.P. Pasnak,CD
CCNA, LPIC-1
http://www.warpedsystems.sk.ca
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

i don't understand about "set debug through the GUI"
it's debugging in (Verbose Query) like image @ attachement?

the result is :
1. SNMP - Interface Statistics

Code: Select all

+ Running data query [1].
+ Found type = '3' [snmp query].
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ XML file parsed ok.
+ Executing SNMP walk for list of indexes @ '.1.3.6.1.2.1.2.2.1.1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.1' value: '1'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.2' value: '2'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.3' value: '3'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.5' value: '5'
+ Index found at OID: '.1.3.6.1.2.1.2.2.1.1.6' value: '6'
+ Located input field 'ifIndex' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.1'
+ Found item [ifIndex='1'] index: 1 [from value]
+ Found item [ifIndex='2'] index: 2 [from value]
+ Found item [ifIndex='3'] index: 3 [from value]
+ Found item [ifIndex='5'] index: 5 [from value]
+ Found item [ifIndex='6'] index: 6 [from value]
+ Located input field 'ifOperStatus' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.8'
+ Found item [ifOperStatus='Up'] index: 1 [from value]
+ Found item [ifOperStatus='Up'] index: 2 [from value]
+ Found item [ifOperStatus='Up'] index: 3 [from value]
+ Found item [ifOperStatus='Down'] index: 5 [from value]
+ Found item [ifOperStatus='Up'] index: 6 [from value]
+ Located input field 'ifDescr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.2'
+ Found item [ifDescr='lo'] index: 1 [from value]
+ Found item [ifDescr='eth0'] index: 2 [from value]
+ Found item [ifDescr='eth1'] index: 3 [from value]
+ Found item [ifDescr='sit0'] index: 5 [from value]
+ Found item [ifDescr='usb0'] index: 6 [from value]
+ Located input field 'ifName' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.1'
+ Found item [ifName='lo'] index: 1 [from value]
+ Found item [ifName='eth0'] index: 2 [from value]
+ Found item [ifName='eth1'] index: 3 [from value]
+ Found item [ifName='sit0'] index: 5 [from value]
+ Found item [ifName='usb0'] index: 6 [from value]
+ Located input field 'ifAlias' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.31.1.1.1.18'
+ Found item [ifAlias=''] index: 1 [from value]
+ Found item [ifAlias=''] index: 2 [from value]
+ Found item [ifAlias=''] index: 3 [from value]
+ Found item [ifAlias=''] index: 5 [from value]
+ Found item [ifAlias=''] index: 6 [from value]
+ Located input field 'ifType' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.3'
+ Found item [ifType='softwareLoopback'] index: 1 [from value]
+ Found item [ifType='ethernetCsmacd'] index: 2 [from value]
+ Found item [ifType='ethernetCsmacd'] index: 3 [from value]
+ Found item [ifType='tunnel'] index: 5 [from value]
+ Found item [ifType='ethernetCsmacd'] index: 6 [from value]
+ Located input field 'ifSpeed' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.5'
+ Found item [ifSpeed='10000000'] index: 1 [from value]
+ Found item [ifSpeed='1000000000'] index: 2 [from value]
+ Found item [ifSpeed='1000000000'] index: 3 [from value]
+ Found item [ifSpeed='0'] index: 5 [from value]
+ Found item [ifSpeed='10000000'] index: 6 [from value]
+ Located input field 'ifHwAddr' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.2.2.1.6'
+ Found item [ifHwAddr=''] index: 1 [from value]
+ Found item [ifHwAddr='5C:F3:FC:78:00:9C'] index: 2 [from value]
+ Found item [ifHwAddr='5C:F3:FC:78:00:9E'] index: 3 [from value]
+ Found item [ifHwAddr=''] index: 5 [from value]
+ Found item [ifHwAddr='5E:F3:FC:7B:00:9F'] index: 6 [from value]
+ Located input field 'ifIP' [walk]
+ Executing SNMP walk for data @ '.1.3.6.1.2.1.4.20.1.2'
+ Found item [ifIP='10.212.15.31'] index: 2 [from regexp oid parse]
+ Found item [ifIP='10.212.15.32'] index: 3 [from regexp oid parse]
+ Found item [ifIP='127.0.0.1'] index: 1 [from regexp oid parse]
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/snmp_queries/interface.xml'
2. Unix - Get Mounted Partitions

Code: Select all

+ Running data query [6].
+ Found type = '4 '[script query].
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ XML file parsed ok.
+ Executing script for list of indexes 'perl /var/www/html/cacti/scripts/query_unix_partitions.pl index'
+ Executing script query 'perl /var/www/html/cacti/scripts/query_unix_partitions.pl query device'
+ Found item [dskDevice='/dev/sda2'] index: /dev/sda2
+ Found item [dskDevice='/dev/sda3'] index: /dev/sda3
+ Found item [dskDevice='/dev/sda5'] index: /dev/sda5
+ Executing script query 'perl /var/www/html/cacti/scripts/query_unix_partitions.pl query mount'
+ Found item [dskMount='/'] index: /dev/sda2
+ Found item [dskMount='/oracle'] index: /dev/sda3
+ Found item [dskMount='/oradata'] index: /dev/sda5
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
+ Found data query XML file at '/var/www/html/cacti/resource/script_queries/unix_disk.xml'
i'm so tired about that, it's look like fine and all device status Up
but graph not shown

as you suggest, i was take out --force --debug before

thanks for your respon :)
Attachments
debugging.JPG
debugging.JPG (25.39 KiB) Viewed 6404 times
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

Anyone can help again?
I thinks the root cause is the poller

what should i do, first i must solve the localhost graph problem :(
snmp is ok, rrdtool is ok

i test to copy rrd files from old_server to new_server, graph is shown..because poller is not run properly, graph data not refresh or update in new server.

thanks for your help
i feel stuck :-s
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: SNMP Information, snmp error

Post by noname »

>> i don't understand about "set debug through the GUI"

See 'Settings -> General -> Poller Logging Level'
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

i have change Poller Logging Level to DEBUG, then in the top shown "Save Successful."
but in Poller Logging Level combox still back to default (LOW - Statistic and Error)

I don't know why it's not change to DEBUG
Any suggest?
graver347
Posts: 17
Joined: Fri Feb 10, 2012 1:36 am

Re: SNMP Information, snmp error

Post by graver347 »

Ok, first i think i must solve about snmp problem
any package that i'm missing in migration process? so make the localhost graph not shown/update

and what setting that i must do to make snmpwalk to cacti client have a respon

cacti server
--> client 1 to get graph
--> client 2 to get graph
--> etc

need help :)
noname
Cacti Guru User
Posts: 1566
Joined: Thu Aug 05, 2010 2:04 am
Location: Japan

Re: SNMP Information, snmp error

Post by noname »

graver347 wrote:i have change Poller Logging Level to DEBUG, then in the top shown "Save Successful."
but in Poller Logging Level combox still back to default (LOW - Statistic and Error)

I don't know why it's not change to DEBUG
To force to change log level,

Code: Select all

Before:
% mysql -uUSER -p -e 'SELECT * FROM settings WHERE name="log_verbosity";' cacti
+---------------+-------+
| name          | value |
+---------------+-------+
| log_verbosity | 2     |
+---------------+-------+

Change:
% mysql -uUSER -p -e 'UPDATE settings SET value=5 WHERE name="log_verbosity";' cacti

After:
% mysql -uUSER -p -e 'SELECT * FROM settings WHERE name="log_verbosity";' cacti
+---------------+-------+
| name          | value |
+---------------+-------+
| log_verbosity | 5     |
+---------------+-------+
I think, making trial and error without clues (= log) is like wandering in the dark..
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests