Cacti (home)ForumsDocumentation
Cacti: offical forums and support
It is currently Sun Nov 18, 2018 9:58 pm

All times are UTC - 5 hours




Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2
Author Message
 Post subject:
PostPosted: Thu Jan 08, 2009 8:59 pm 
Offline

Joined: Wed Jan 07, 2009 9:34 pm
Posts: 4
nightwisher wrote:
I try on gentoo 2008.0 to install !

But no graph ...

i use second modified template and folow instruction !

Need help

me too,any idea?


Top
 Profile  
 
 Post subject: Updated with SNMP extend
PostPosted: Wed Mar 11, 2009 9:42 pm 
Offline
User avatar

Joined: Sat Feb 17, 2007 2:42 pm
Posts: 7
The problem might be the original script is utilizing exec which is deprecated and will not run on a lot of new installations of SNMP. Attached is a version that uses extend instead. See this How To on detailed installation instructions.

You should test the results of the smbstatus commands to ensure the script is providing the correct results.


Attachments:
samba.zip [4.65 KiB]
Downloaded 542 times


Last edited by xtremebassist on Fri Jun 26, 2009 9:24 am, edited 1 time in total.
Top
 Profile  
 
 Post subject:
PostPosted: Fri Jun 26, 2009 7:44 am 
Offline

Joined: Tue Apr 07, 2009 1:00 am
Posts: 1
samba.pl is blank :(


Top
 Profile  
 
 Post subject: New Archive
PostPosted: Fri Jun 26, 2009 9:25 am 
Offline
User avatar

Joined: Sat Feb 17, 2007 2:42 pm
Posts: 7
Sorry about that. I uploaded a new zip archive with a non-blank samba.pl. :lol: Great catch by the way.


Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 18, 2009 11:09 am 
Offline

Joined: Mon Jun 15, 2009 1:09 am
Posts: 23
Good day!
xtremebassist thank you for your help page, but i have error.
Script is working fine.
In file snmpd.conf i added :

extend SambaProcesses /usr/share/cacti/scripts/samba.pl Processes
extend SambaShares /usr/share/cacti/scripts/samba.pl Shares
extend SambaFiles /usr/share/cacti/scripts/samba.pl Files

But when I do
snmpwalk -v 2c -c public 192.168.123.70 'NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."SambaFiles"'
I receive error:
NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."SambaFiles" = STRING: /usr/share/cacti/scripts/samba.pl: Permission denied

Same for SambaShares and SambaProcesses.

Rights on file samba.pl -
-rwxrwxrwx 1 root root 893 Июл 17 23:26 samba.pl

What can I do?


Last edited by ivan-impuls on Sat Jul 18, 2009 11:41 am, edited 1 time in total.

Top
 Profile  
 
 Post subject:
PostPosted: Sat Jul 18, 2009 11:39 am 
Offline

Joined: Mon Jun 15, 2009 1:09 am
Posts: 23
O, sorry
my system - Debian Lenny
version NET-SNMP - 5.4.1


Top
 Profile  
 
 Post subject:
PostPosted: Mon Jul 20, 2009 5:07 am 
Offline

Joined: Mon Jun 15, 2009 1:09 am
Posts: 23
I did it!!!
Key is in rights on folder...


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 4:52 am 
Offline

Joined: Wed Mar 10, 2010 4:44 am
Posts: 2
Hi everybody!

Great script!!!

But I have a problem. I used the updated script and get results using snmpwalk but no graph is displayed in cacti.

Any idea?

Thanks!!!


cacti 0.8.7e
samba 3.2.4-5.2
suse 11.1


Top
 Profile  
 
 Post subject:
PostPosted: Wed Mar 10, 2010 7:56 am 
Offline

Joined: Wed Mar 10, 2010 4:44 am
Posts: 2
Oh sorry, some more information:

net-snmp 5.4.2.1

result snmpwalk:

NET-SNMP-EXTEND-MIB::nsExtendOutput1Line."SambaFiles" = STRING: 9

error message cacti log:

03/10/2010 01:49:06 PM - CMDPHP: Poller[0] Host[1] DS[50] WARNING: Result from SNMP not valid. Partial Result: U
03/10/2010 01:49:06 PM - CMDPHP: Poller[0] Host[1] DS[49] SNMP: v2: 127.0.0.1, dsname: samba_files, oid: NET-SNMP-EXTEND-MIB::nsExtendOutput1Line.SambaFiles, output: U


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 24 posts ]  Go to page Previous  1, 2

All times are UTC - 5 hours


Who is online

Users browsing this forum: No registered users and 6 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  

Protected by Anti-Spam ACP Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group