Cacti version: 0.8.8f
Spine version: 0.8.8f
We're deploying new hosts outside our perimeter so we're mandating SNMPv3 (authPriv) for obvious security reasons. I've added SNMPv3 default settings (user, pass, hash method, key, cipher, *no* context) to Cacti based on successful tests with snmpwalk:
Code: Select all
root@<hostname>(cacti)# snmpwalk -v 3 -a SHA -A <hidden> -u <hidden> -x AES -X <hidden> -l AuthPriv -n "" <hostname> system.sysUpTime.0
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (213210) 0:35:32.10
When adding the host as SNMPv3 in Cacti, it queries the host perfectly, allows me to add all graphs include SNMP data query-based graphs (partitions, network interfaces, etc), and all looks well. Here's the top of the host properties page output:
Code: Select all
<Pretty name> (FQDN)
*Data Source List
*Graph List
SNMP Information
System:Linux <hostname> 3.10.0-123.el7.x86_64 #1
SMP Mon Jun 30 12:09:22 UTC 2014 x86_64
Uptime: 251456 (0 days, 0 hours, 41 minutes)
Hostname: <hostname>
Location: Unknown
Contact: blah@blah.com
Here is spine debug output:
When host is set to use ICMP availability check:
Code: Select all
root@<hostname>(cacti)# /usr/bin/spine -H 1946 -R -S -V 5
SPINE: Using spine config file [/etc/spine.conf]
WARNING: DB_PreG is no longer supported
12/08/2015 09:42:16 AM - SPINE: Poller[0] DEBUG: The path_php_server variable is /srv/http/site/cacti.<domain>/html/script_server.php
12/08/2015 09:42:16 AM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /srv/logs/<domain>/cacti/cacti.log
DEBUG: The log_destination variable is 4 (STDOUT)
DEBUG: The path_php variable is /usr/bin/php
DEBUG: The availability_method variable is 2
DEBUG: The ping_recovery_count variable is 3
DEBUG: The ping_failure_count variable is 2
DEBUG: The ping_method variable is 2
DEBUG: The ping_retries variable is 1
DEBUG: The ping_timeout variable is 400
DEBUG: The snmp_retries variable is 3
DEBUG: The log_perror variable is 1
DEBUG: The log_pwarn variable is 1
DEBUG: The boost_redirect variable is 0
DEBUG: The log_pstats variable is 1
DEBUG: The threads variable is 100
DEBUG: The polling interval is 300 seconds
DEBUG: The number of concurrent processes is 1
DEBUG: The script timeout is 10
DEBUG: The number of php script servers to run is 10
DEBUG: Host List to be polled='1946', TotalPHPScripts='1
DEBUG: The PHP Script Server is Required
DEBUG: The Maximum SNMP OID Get Size is 40
Version 0.8.8f starting
DEBUG: MySQL is Thread Safe!
DEBUG: Spine is running asroot.
SPINE: Initializing Net-SNMP API
DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
SPINE: Initializing PHP Script Server(s)
DEBUG: SS[0] PHP Script Server Routine Starting
DEBUG: SS[0] PHP Script Server About to FORK Child Process
DEBUG: SS[0] PHP Script Server Child FORK Success
DEBUG: SS[0] Confirmed PHP Script Server running using readfd[7], writefd[6]
DEBUG: SS[1] PHP Script Server Routine Starting
DEBUG: SS[1] PHP Script Server About to FORK Child Process
DEBUG: SS[1] PHP Script Server Child FORK Success
DEBUG: SS[1] Confirmed PHP Script Server running using readfd[9], writefd[8]
DEBUG: SS[2] PHP Script Server Routine Starting
DEBUG: SS[2] PHP Script Server About to FORK Child Process
DEBUG: SS[2] PHP Script Server Child FORK Success
DEBUG: SS[2] Confirmed PHP Script Server running using readfd[11], writefd[10]
DEBUG: SS[3] PHP Script Server Routine Starting
DEBUG: SS[3] PHP Script Server About to FORK Child Process
DEBUG: SS[3] PHP Script Server Child FORK Success
DEBUG: SS[3] Confirmed PHP Script Server running using readfd[13], writefd[12]
DEBUG: SS[4] PHP Script Server Routine Starting
DEBUG: SS[4] PHP Script Server About to FORK Child Process
DEBUG: SS[4] PHP Script Server Child FORK Success
DEBUG: SS[4] Confirmed PHP Script Server running using readfd[15], writefd[14]
DEBUG: SS[5] PHP Script Server Routine Starting
DEBUG: SS[5] PHP Script Server About to FORK Child Process
DEBUG: SS[5] PHP Script Server Child FORK Success
DEBUG: SS[5] Confirmed PHP Script Server running using readfd[17], writefd[16]
DEBUG: SS[6] PHP Script Server Routine Starting
DEBUG: SS[6] PHP Script Server About to FORK Child Process
DEBUG: SS[6] PHP Script Server Child FORK Success
DEBUG: SS[6] Confirmed PHP Script Server running using readfd[19], writefd[18]
DEBUG: SS[7] PHP Script Server Routine Starting
DEBUG: SS[7] PHP Script Server About to FORK Child Process
DEBUG: SS[7] PHP Script Server Child FORK Success
DEBUG: SS[7] Confirmed PHP Script Server running using readfd[21], writefd[20]
DEBUG: SS[8] PHP Script Server Routine Starting
DEBUG: SS[8] PHP Script Server About to FORK Child Process
DEBUG: SS[8] PHP Script Server Child FORK Success
DEBUG: SS[8] Confirmed PHP Script Server running using readfd[23], writefd[22]
DEBUG: SS[9] PHP Script Server Routine Starting
DEBUG: SS[9] PHP Script Server About to FORK Child Process
DEBUG: SS[9] PHP Script Server Child FORK Success
DEBUG: SS[9] Confirmed PHP Script Server running using readfd[25], writefd[24]
NOTE: Spine will support multithread device polling.
DEBUG: Initial Value of Active Threads is 0
DEBUG: Valid Thread to be Created
DEBUG: In Poller, About to Start Polling of Host
DEBUG: The Value of Active Threads is 1
DEBUG: Valid Thread to be Created
DEBUG: In Poller, About to Start Polling of Host
DEBUG: The Value of Active Threads is 2
Host[0] TH[1] Total Time: 0.0012 Seconds
Host[0] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
DEBUG: The Value of Active Threads is 1
Host[1946] DEBUG: Entering ICMP Ping
Host[1946] DEBUG: ICMP Host Alive, Try Count:1, Time:151.2420 ms
Host[1946] PING: Result ICMP: Host is Alive
Host[1946] TH[1] RECACHE: Processing 13 items in the auto reindex cache for '<hostname>
Host[1946] TH[1] Recache DataQuery[1] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[2] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[8] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[22] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[23] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[24] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[25] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[44] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[45] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[46] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[47] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[48] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] Recache DataQuery[49] OID: .1.3.6.1.2.1.1.3.0, output: U
Host[1946] TH[1] NOTE: There are '61' Polling Items for this Host
Host[1946] TH[1] Total Time: 40 Seconds
Host[1946] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
DEBUG: The Value of Active Threads is 0
DEBUG: Thread Cleanup Complete
DEBUG: SS[0] Script Server Shutdown Started
DEBUG: SS[1] Script Server Shutdown Started
DEBUG: SS[2] Script Server Shutdown Started
DEBUG: SS[3] Script Server Shutdown Started
DEBUG: SS[4] Script Server Shutdown Started
DEBUG: SS[5] Script Server Shutdown Started
DEBUG: SS[6] Script Server Shutdown Started
DEBUG: SS[7] Script Server Shutdown Started
DEBUG: SS[8] Script Server Shutdown Started
DEBUG: SS[9] Script Server Shutdown Started
DEBUG: PHP Script Server Pipes Closed
DEBUG: Allocated Variable Memory Freed
DEBUG: MYSQL Free & Close Completed
DEBUG: Net-SNMP Close Completed
Time: 41.3461 s, Threads: 100, Hosts: 2
Code: Select all
root@<hostname>(cacti)# /usr/bin/spine -H 1946 -R -S -V 5
SPINE: Using spine config file [/etc/spine.conf]
WARNING: DB_PreG is no longer supported
12/08/2015 11:45:32 AM - SPINE: Poller[0] DEBUG: The path_php_server variable is /srv/http/site/cacti.<domain>/html/script_server.php
12/08/2015 11:45:32 AM - SPINE: Poller[0] DEBUG: The path_cactilog variable is /srv/logs/<domain>/cacti/cacti.log
DEBUG: The log_destination variable is 4 (STDOUT)
DEBUG: The path_php variable is /usr/bin/php
DEBUG: The availability_method variable is 2
DEBUG: The ping_recovery_count variable is 3
DEBUG: The ping_failure_count variable is 2
DEBUG: The ping_method variable is 2
DEBUG: The ping_retries variable is 1
DEBUG: The ping_timeout variable is 400
DEBUG: The snmp_retries variable is 3
DEBUG: The log_perror variable is 1
DEBUG: The log_pwarn variable is 1
DEBUG: The boost_redirect variable is 0
DEBUG: The log_pstats variable is 1
DEBUG: The threads variable is 100
DEBUG: The polling interval is 300 seconds
DEBUG: The number of concurrent processes is 1
DEBUG: The script timeout is 10
DEBUG: The number of php script servers to run is 10
DEBUG: Host List to be polled='1946', TotalPHPScripts='1
DEBUG: The PHP Script Server is Required
DEBUG: The Maximum SNMP OID Get Size is 40
Version 0.8.8f starting
DEBUG: MySQL is Thread Safe!
DEBUG: Spine is running asroot.
SPINE: Initializing Net-SNMP API
DEBUG: Issues with SNMP Header Version information, assuming old version of Net-SNMP.
SPINE: Initializing PHP Script Server(s)
DEBUG: SS[0] PHP Script Server Routine Starting
DEBUG: SS[0] PHP Script Server About to FORK Child Process
DEBUG: SS[0] PHP Script Server Child FORK Success
DEBUG: SS[0] Confirmed PHP Script Server running using readfd[7], writefd[6]
DEBUG: SS[1] PHP Script Server Routine Starting
DEBUG: SS[1] PHP Script Server About to FORK Child Process
DEBUG: SS[1] PHP Script Server Child FORK Success
DEBUG: SS[1] Confirmed PHP Script Server running using readfd[9], writefd[8]
DEBUG: SS[2] PHP Script Server Routine Starting
DEBUG: SS[2] PHP Script Server About to FORK Child Process
DEBUG: SS[2] PHP Script Server Child FORK Success
DEBUG: SS[2] Confirmed PHP Script Server running using readfd[11], writefd[10]
DEBUG: SS[3] PHP Script Server Routine Starting
DEBUG: SS[3] PHP Script Server About to FORK Child Process
DEBUG: SS[3] PHP Script Server Child FORK Success
DEBUG: SS[3] Confirmed PHP Script Server running using readfd[13], writefd[12]
DEBUG: SS[4] PHP Script Server Routine Starting
DEBUG: SS[4] PHP Script Server About to FORK Child Process
DEBUG: SS[4] PHP Script Server Child FORK Success
DEBUG: SS[4] Confirmed PHP Script Server running using readfd[15], writefd[14]
DEBUG: SS[5] PHP Script Server Routine Starting
DEBUG: SS[5] PHP Script Server About to FORK Child Process
DEBUG: SS[5] PHP Script Server Child FORK Success
DEBUG: SS[5] Confirmed PHP Script Server running using readfd[17], writefd[16]
DEBUG: SS[6] PHP Script Server Routine Starting
DEBUG: SS[6] PHP Script Server About to FORK Child Process
DEBUG: SS[6] PHP Script Server Child FORK Success
DEBUG: SS[6] Confirmed PHP Script Server running using readfd[19], writefd[18]
DEBUG: SS[7] PHP Script Server Routine Starting
DEBUG: SS[7] PHP Script Server About to FORK Child Process
DEBUG: SS[7] PHP Script Server Child FORK Success
DEBUG: SS[7] Confirmed PHP Script Server running using readfd[21], writefd[20]
DEBUG: SS[8] PHP Script Server Routine Starting
DEBUG: SS[8] PHP Script Server About to FORK Child Process
DEBUG: SS[8] PHP Script Server Child FORK Success
DEBUG: SS[8] Confirmed PHP Script Server running using readfd[23], writefd[22]
DEBUG: SS[9] PHP Script Server Routine Starting
DEBUG: SS[9] PHP Script Server About to FORK Child Process
DEBUG: SS[9] PHP Script Server Child FORK Success
DEBUG: SS[9] Confirmed PHP Script Server running using readfd[25], writefd[24]
NOTE: Spine will support multithread device polling.
DEBUG: Initial Value of Active Threads is 0
DEBUG: Valid Thread to be Created
DEBUG: In Poller, About to Start Polling of Host
DEBUG: The Value of Active Threads is 1
DEBUG: Valid Thread to be Created
DEBUG: In Poller, About to Start Polling of Host
DEBUG: The Value of Active Threads is 2
Host[0] TH[1] Total Time: 0.00098 Seconds
Host[0] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
DEBUG: The Value of Active Threads is 1
Host[1946] DEBUG: Entering SNMP Ping
Host[1946] SNMP Ping Error: Unknown error: 2
Host[1946] SNMP Result: Host did not respond to SNMP
Host[1946] TH[1] NOTE: There are '61' Polling Items for this Host
Host[1946] TH[1] Total Time: 40 Seconds
Host[1946] TH[1] DEBUG: HOST COMPLETE: About to Exit Host Polling Thread Function
DEBUG: The Value of Active Threads is 0
DEBUG: Thread Cleanup Complete
DEBUG: SS[0] Script Server Shutdown Started
DEBUG: SS[1] Script Server Shutdown Started
DEBUG: SS[2] Script Server Shutdown Started
DEBUG: SS[3] Script Server Shutdown Started
DEBUG: SS[4] Script Server Shutdown Started
DEBUG: SS[5] Script Server Shutdown Started
DEBUG: SS[6] Script Server Shutdown Started
DEBUG: SS[7] Script Server Shutdown Started
DEBUG: SS[8] Script Server Shutdown Started
DEBUG: SS[9] Script Server Shutdown Started
DEBUG: PHP Script Server Pipes Closed
DEBUG: Allocated Variable Memory Freed
DEBUG: MYSQL Free & Close Completed
DEBUG: Net-SNMP Close Completed
Time: 41.2753 s, Threads: 100, Hosts: 2
Has anyone else run across this? I saw that spine 1.0.0 is available for compilation on github, but in the release notes I see nothing about SNMPv3 so it doesn't seem like that would help us.