Dave Shield wrote:
On Sun, 2005-01-09 at 15:10, Jose Dragone wrote:

  
#procfix NAME PROG ARGS  : these two scripts below do not run
                           and I don't know why?
procfix sendmail /root/Snmp-Scripts/procfix-sendmail.sh start
procfix httpd /root/Snmp-Scripts/procfix-httpd.sh start
    

What command are you running to try and trigger them?
The "defaultMonitors" line will active sending a trap
when the process montoring detects a problem, but it
does not automatically trigger the 'procfix' directives.
  That still requires an explicit SET on the relevant
prErrFix instance.

Dave

  
Hi

snmpset does not work at all

Output got is :
snmpset -v 2c -c tenroses monitor1 UCD-SN
s.50.103.1 s "hello disk"
Error in packet.
Reason: notWritable (That object does not support modification)
[EMAIL PROTECTED] Snmp-Scripts]# snmpset -v 2c -c tenroses monitor1 UCD-SN
s.50.103.1 s "hello disk"
Error in packet.
Reason: notWritable (That object does not support modification)
[EMAIL PROTECTED] Snmp-Scripts]# snmpset -v2c -c tenroses monitor1 system.
 "Jose Luis Dragone <[EMAIL PROTECTED]>"
Error in packet.
Reason: notWritable (That object does not support modification)
[EMAIL PROTECTED] Snmp-Scripts]# snmpwalk -v 2c -c tenroses monitor1 UCD-SNMP-MIB::ucdavis.50
UCD-SNMP-MIB::ucdavis.50.1.1 = INTEGER: 1
UCD-SNMP-MIB::ucdavis.50.2.1 = STRING: "disk_io"
UCD-SNMP-MIB::ucdavis.50.3.1 = STRING: "/root/Snmp-Scripts/check_io.sh"
UCD-SNMP-MIB::ucdavis.50.100.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.101.1 = STRING: "7347992 . 7671424 "
UCD-SNMP-MIB::ucdavis.50.102.1 = INTEGER: 0
UCD-SNMP-MIB::ucdavis.50.103.1 = ""


Might it be a problem with the config.h, so I should recompile the package again?.

Actual place for file:
 
/usr/local/src/net-snmp-5.2/include/net-snmp/net-snmp-config.h :

/* Exec command to fix PROC problems */
/* %s will be replaced by the process name in error */

/* #define PROCFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */

/* Exec command to fix EXEC problems */
/* %s will be replaced by the exec/script name in error */

/* #define EXECFIXCMD "/usr/bin/perl /local/scripts/fixproc %s" */

Should I define these commented lines in config.h and recompile?

thanks

    Jose Dragone


Reply via email to