Page 2 of 2
Re: Not Generating graphs
Posted: Thu Aug 01, 2013 10:49 am
by abrist
Line # 213 of the script is wrong, it currently reads:
Code: Select all
echo "OK - ${output} | ${perfdata} ]"
Change it to:
Code: Select all
echo "OK - ${output} | ${perfdata}"
By removing the extra "]" at the end.
Re: Not Generating graphs
Posted: Thu Aug 01, 2013 2:10 pm
by aravindreddy114
Thanks a lot for the reply, I changed the script. I can see graphs for the service.
I have one more script which is monitoring number of connections to a particular port.
When I login to Nagios XI server web UI I do not see graphs for this check.
Service Detail----Advanced tab---Performance Data is Empty
Please find the attached screen shot and script. Can you please let me know what is the problem
Re: Not Generating graphs
Posted: Thu Aug 01, 2013 2:44 pm
by lmiltchev
Did you use the "-f" flag in your command definition?
Code: Select all
# Additionally if you want performance output then use '-f' option to get all
# the ports specified with '-p' or specify particular list of of ports for
# performance data with '-A' (this list can include names not found in '-p').
# Note that when reporting for in perfomance data instead of saying ">smtp'
# or "<smtp" the plugin will report it as 'smtp_out=' or 'smtp_in='.
#
# ============================= SETUP EXAMPLES ===============================
#
# The first example is for your server to check SMTP connections - warnings
# would be sent here fore more then 15 incoming connections or more then 10
# outgoing and critical alerts for more then 40 incoming or 20 outgoing
# ----
# define command {
# command_name check_smtp_connections
# command_line $USER1$/check_netstat.pl -L "SMTP Load" -H $HOSTADDRESS$ -C $ARG1$ -2 -p "<smtp,>smtp" -w $ARG2$ -c $ARG3$ -f -A "@"
# }
#
# define service{
# use std-service
# service_description SMTP Load
# hostgroups mailserv
# check_command check_smtp_connections!public!">15,>10"!">40,>20"
# }
Re: Not Generating graphs
Posted: Thu Aug 01, 2013 3:46 pm
by aravindreddy114
Thanks ! Its working now