me too,any idea?nightwisher wrote:I try on gentoo 2008.0 to install !
But no graph ...
i use second modified template and folow instruction !
Need help
Show locked Machines, Shares and Files from a Samba Server
Moderators: Developers, Moderators
- xtremebassist
- Posts: 7
- Joined: Sat Feb 17, 2007 2:42 pm
- Contact:
Updated with SNMP extend
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.
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 602 times
Last edited by xtremebassist on Fri Jun 26, 2009 9:24 am, edited 1 time in total.
- xtremebassist
- Posts: 7
- Joined: Sat Feb 17, 2007 2:42 pm
- Contact:
New Archive
Sorry about that. I uploaded a new zip archive with a non-blank samba.pl. Great catch by the way.
-
- Posts: 23
- Joined: Mon Jun 15, 2009 1:09 am
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?
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.
-
- Posts: 23
- Joined: Mon Jun 15, 2009 1:09 am
-
- Posts: 23
- Joined: Mon Jun 15, 2009 1:09 am
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
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
Who is online
Users browsing this forum: No registered users and 3 guests