Ad blocker detected: Our website is made possible by displaying online advertisements to our visitors. Please consider supporting us by disabling your ad blocker on our website.
I've been running this same script on an MRTG system for several years, and want to migrate it to Cacti.
So: I created a data input method for the script, created graph and data templates that use the data input method, added the hosts of the Total Control chassis on our network, and created the graphs for the system.
The bandwidth graphs for the TC chassis seem to work fine, but the graphs for the modem utilization are blank.
I can run the script from commandline and it returns valid data.
Turning on debug in loggint, I get this:
04/04/2005 06:45:26 PM - CMDPHP: Poller[0] Host[13] WARNING: Result from CMD not valid. Partial Result: 77
0
Okay, so the script is returning 77 and 0, on separate lines. This is what it does from command-line. Any help with the data input method would be appreciated, as I obviously don't have it right.
Okay, I figured out the problem with the script, and now just have it returning the integer number of modems in use, and not a trailing zero on another line. The logs are happy, it shows that the script returns a single number, but the graphs are still empty.
No other debug information. Can anyone point me at what the problem might be?
Here are the graph and data templates I created for use with the hiperdsp.pl script. It looks like you can't export a data input method or I would export that as well, but I don't think that's where the problem lies.
sorry. my question was more geared towards silicon_freak.
i was hoping to get something like this to work as well...
i get this in my poll.log file...
sh: -c: line 2: syntax error: unexpected end of file
MULTI command: /usr/share/cacti/scripts/3com_totalcontrol_hipernmc.pl |host_snmp_community|@|host_hostname|, output:
i'm not sure how to send the actual host/community for my device.
hi all
please help me, i have followed step. when i run scrip. i receive this result ->>modems_in_use:29 modemsavailable:48.
But,i have 2 E1 ,modemsavailabe should be 60.
And at the time there are 37 users ,modem_in_use should be 37.
anyone help me to solve problem to get correct data.
-------------------------------------------------
foreach ($i = 2001;$i <= 2030; $i++)
in foreach Loop above it mean that Query interface slot:2/mod:1 until slot:2/mod:30 ( change the number are appropriate your system)
Please can you advise what Perl Modules are required to do this as when running the command Im getting the following errors.
Can't locate SNMP_Session.pm in @INC (@INC contains: /etc/perl /usr/local/lib/perl/5.8.4 /usr/local/share/perl/5.8.4 /usr/lib/perl5 /usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl .) at ./3com_totalcontrol_hipernmc.pl line 7.
BEGIN failed--compilation aborted at ./3com_totalcontrol_hipernmc.pl line 7.
Taking this into account it is apparent that the SNMP_Session module is mising yet looking on CPAN I cant find it as an option.