[Nagiosplug-help] Help Using Plugins
Ian Manco
ianm at btx.com
Mon Nov 30 14:29:12 CET 2009
I know this is very general, but I cannot figure out how to use a
plugin.
Here is all that I have done to get the plugins to work.
I have nsclient++ running on my client with all the defaults properly
communicating (defaults meaning the nagios monitoring of memory, CPU,
explorer, disk space and uptime)
This was done by editing the .ini file for nsclient and adding the
servers within the Nagios.cfg file and their appropriate service lines.
I want to use other checks that are located in my
/usr/local/nagios/libexe/ such as the check_dns, check_mailq, check_ping
etc
Here is a few uncommented sections of my .ini file on my clients.
[External Alias]
alias_cpu=checkCPU warn=80 crit=90 time=5m time=1m time=30s
alias_cpu_ex=checkCPU warn=$ARG1$ crit=$ARG2$ time=5m time=1m time=30s
alias_disk=CheckDriveSize MinWarn=10% MinCrit=5% CheckAll
FilterType=FIXED
alias_service=checkServiceState CheckAll
alias_process=checkProcState $ARG1$=started
alias_mem=checkMem MaxWarn=80% MaxCrit=90% ShowAll type=physical
alias_up=checkUpTime MinWarn=1d MinWarn=1h
alias_file_age=checkFile2 filter=out "file=$ARG1$" filter-written=>1d
MaxWarn=1 MaxCrit=1 "syntax=%filename% %write%"
alias_file_size=checkFile2 filter=out "file=$ARG1$" filter-size=>$ARG2$
MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"
alias_file_size_in_dir=checkFile2 filter=out pattern=*.txt "file=$ARG1$"
filter-size=>$ARG2$ MaxWarn=1 MaxCrit=1 "syntax=%filename% %size%"
alias_event_log=CheckEventLog file=application file=system filter=new
filter=out MaxWarn=1 MaxCrit=1 filter-generated=>2d
filter-severity==success
filter-severity==informational truncate=1023 unique descriptions
"syntax=%severity%: %source%: %message% (%count%)"
alias_event_log2=CheckEventLog file=application file=system filter=new
filter=in MaxWarn=1 MaxCrit=1 filter+generated=<2d
"filter+eventSource==Service
Control Manager" filter+severity==error truncate=1023 unique
descriptions "syntax=%severity%: %source%: %message% (%count%)"
check_ok=CheckOK Everything is fine!
[modules]
FileLogger.dll
CheckSystem.dll
CheckDisk.dll
NSClientListener.dll
NRPEListener.dll
SysTray.dll
CheckEventLog.dll
CheckHelpers.dll
;CheckWMI.dll
I really wanted to monitor the event logs, but cannot figure it out too.
I am sure if someone walks me through how to properly confiure any of
the checks I will get the idea of how these chaeck call each other.
Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://www.monitoring-plugins.org/archive/help/attachments/20091130/3a60cd68/attachment.html>
More information about the Help
mailing list