[SOLVED] CACTI/SPINE/CMD.PHP scripts returning Empty Results

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

Moderators: Developers, Moderators

Post Reply
anandks
Posts: 25
Joined: Mon Oct 18, 2010 12:02 pm

[SOLVED] CACTI/SPINE/CMD.PHP scripts returning Empty Results

Post by anandks »

Hi All,

I am struggling to track this down on a RHEL 8 platform.

new install, my snmp query scripts are all return EMPTY RESULTS. I tried with both spine and cmd.php poller with same results.
running the script or spine in debug mode from the CLI works fine. I don't believe it is data template issue, because - if I run the script on cli and copy the results and replace my script with just a print statement with the results from the CLI, the poller when run has no issue parsing the result.

All my scripts with Net::SNMP does this, leading me to think, this is the issue.
Can anyone assist with resolving the issue please.

/tia
Last edited by anandks on Sat Apr 04, 2020 4:42 pm, edited 1 time in total.
anandks
Posts: 25
Joined: Mon Oct 18, 2010 12:02 pm

Re: CACTI/SPINE/CMD.PHP scripts returning Empty Results

Post by anandks »

UGH!
right after I posted it, had a light bulb moment.

cpan was installing modules in /root
and obviously, scripts running as a different user (cacti) is not going to find it.

reinstalled Net::SNMP into system location, and all is fine !
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests