define snmp in command
Posted: Mon Feb 02, 2015 7:35 am
Good, I'm trying to define a snmpwalk for a particular check and can not.
The purpose is to monitor the memory of a fortimail1000D and get that value alone with a snmpwalk because not found a script that worked me with that model
Would this ->
snmpwalk -c -v2c XX.XX.XX.XX comunity fmlSysMemUsage
and define it in the service and the command ....
define command {
command_name check_mem_forti2
command_line / usr / bin / snmpwalk -H $ HOSTADDRESS $ -v2c -c $ ARG1 $ fmlSysMemUsage
}
define service {
use generic-service
host_name XX.XX.XX.XX
service_description check_mem_forti2
check_command check_mem_forti2! 1XX.XX.XX.XX! comunity
normal_check_interval 30
retry_check_interval 10
servicegroups group
notification_interval 0
}
But he gives me this error:
No output on stdout) stderr: Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1
Performance Data: yes|true|0|no|false) excludeRequested (1|yes|true|0|no|false) printStatistics (1|yes|true|0|no|false) dontCheckOrdering (1|yes|true|0|no|false) timeResults (1|yes|true|0|no|false) In snmp.conf and snmp.local.conf: doDebugging (1|0) debugTokens token[,token...] logTimestamp (1|yes|true|0|no|false) mibdirs [mib-dirs|+mib-dirs|-mib-dirs] mibs [mib-tokens|+mib-tokens] mibfile mibfile-to-read showMibErrors (1|yes|true|0|no|false) strictCommentTerm (1|yes|true|0|no|false) mibAllowUnderline (1|yes|true|0|no|false) mibWarningLevel integerValue mibReplaceWithLatest (1|yes|true|0|no|false) printNumericEnums (1|yes|true|0|no|false) printNumericOids (1|yes|true|0|no|false) escapeQuotes (1|yes|true|0|no|false) dontBreakdownOids (1|yes|true|0|no|false) quickPrinting (1|yes|true|0|no|false) numericTimeticks (1|yes|true|0|no|false) oidOutputFormat integerValue suffixPrinting integerValue extendedIndex (1|yes|true|0|no|false) printHexText (1|yes|true|0|no|false) printValueOnly (1|yes|true|0|no|false) dontPrintUnits (1|yes|true|0|no|false) hexOutputLength integerValue dumpPacket (1|yes|true|0|no|false) reverseEncodeBER (1|yes|true|0|no|false) defaultPort integerValue defCommunity string noTokenWarnings (1|yes|true|0|no|false) noRangeCheck (1|yes|true|0|no|false) persistentDir string tempFilePattern string noDisplayHint (1|yes|true|0|no|false) 16bitIDs (1|yes|true|0|no|false) clientaddr string serverSendBuf integerValue serverRecvBuf integerValue clientSendBuf integerValue clientRecvBuf integerValue noPersistentLoad (1|yes|true|0|no|false) noPersistentSave (1|yes|true|0|no|false) defDomain application domain defTarget application domain target defSecurityModel string defSecurityName string defContext string defPassphrase string defAuthPassphrase string defPrivPassphrase string defAuthMasterKey string defPrivMasterKey string defAuthLocalizedKey string defPrivLocalizedKey string defVersion 1|2c|3 defAuthType MD5|SHA defPrivType DES|AES defSecurityLevel noAuthNoPriv|authNoPriv|authPriv In snmpapp.conf and snmpapp.local.conf: defDomain application domain defTarget application domain target engineID string engineIDType num engineIDNic string)
how can i make it work?
The purpose is to monitor the memory of a fortimail1000D and get that value alone with a snmpwalk because not found a script that worked me with that model
Would this ->
snmpwalk -c -v2c XX.XX.XX.XX comunity fmlSysMemUsage
and define it in the service and the command ....
define command {
command_name check_mem_forti2
command_line / usr / bin / snmpwalk -H $ HOSTADDRESS $ -v2c -c $ ARG1 $ fmlSysMemUsage
}
define service {
use generic-service
host_name XX.XX.XX.XX
service_description check_mem_forti2
check_command check_mem_forti2! 1XX.XX.XX.XX! comunity
normal_check_interval 30
retry_check_interval 10
servicegroups group
notification_interval 0
}
But he gives me this error:
No output on stdout) stderr: Configuration directives understood:
No log handling enabled - turning on stderr logging
In snmpwalk.conf and snmpwalk.local.conf:
includeRequested (1
Performance Data: yes|true|0|no|false) excludeRequested (1|yes|true|0|no|false) printStatistics (1|yes|true|0|no|false) dontCheckOrdering (1|yes|true|0|no|false) timeResults (1|yes|true|0|no|false) In snmp.conf and snmp.local.conf: doDebugging (1|0) debugTokens token[,token...] logTimestamp (1|yes|true|0|no|false) mibdirs [mib-dirs|+mib-dirs|-mib-dirs] mibs [mib-tokens|+mib-tokens] mibfile mibfile-to-read showMibErrors (1|yes|true|0|no|false) strictCommentTerm (1|yes|true|0|no|false) mibAllowUnderline (1|yes|true|0|no|false) mibWarningLevel integerValue mibReplaceWithLatest (1|yes|true|0|no|false) printNumericEnums (1|yes|true|0|no|false) printNumericOids (1|yes|true|0|no|false) escapeQuotes (1|yes|true|0|no|false) dontBreakdownOids (1|yes|true|0|no|false) quickPrinting (1|yes|true|0|no|false) numericTimeticks (1|yes|true|0|no|false) oidOutputFormat integerValue suffixPrinting integerValue extendedIndex (1|yes|true|0|no|false) printHexText (1|yes|true|0|no|false) printValueOnly (1|yes|true|0|no|false) dontPrintUnits (1|yes|true|0|no|false) hexOutputLength integerValue dumpPacket (1|yes|true|0|no|false) reverseEncodeBER (1|yes|true|0|no|false) defaultPort integerValue defCommunity string noTokenWarnings (1|yes|true|0|no|false) noRangeCheck (1|yes|true|0|no|false) persistentDir string tempFilePattern string noDisplayHint (1|yes|true|0|no|false) 16bitIDs (1|yes|true|0|no|false) clientaddr string serverSendBuf integerValue serverRecvBuf integerValue clientSendBuf integerValue clientRecvBuf integerValue noPersistentLoad (1|yes|true|0|no|false) noPersistentSave (1|yes|true|0|no|false) defDomain application domain defTarget application domain target defSecurityModel string defSecurityName string defContext string defPassphrase string defAuthPassphrase string defPrivPassphrase string defAuthMasterKey string defPrivMasterKey string defAuthLocalizedKey string defPrivLocalizedKey string defVersion 1|2c|3 defAuthType MD5|SHA defPrivType DES|AES defSecurityLevel noAuthNoPriv|authNoPriv|authPriv In snmpapp.conf and snmpapp.local.conf: defDomain application domain defTarget application domain target engineID string engineIDType num engineIDNic string)
how can i make it work?