Not Generating graphs

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: Not Generating graphs

Post 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.
Former Nagios employee
"It is turtles. All. The. Way. Down. . . .and maybe an elephant or two."
VI VI VI - The editor of the Beast!
Come to the Dark Side.
aravindreddy114
Posts: 55
Joined: Tue May 07, 2013 12:48 pm

Re: Not Generating graphs

Post 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
You do not have the required permissions to view the files attached to this post.
User avatar
lmiltchev
Bugs find me
Posts: 13589
Joined: Mon May 23, 2011 12:15 pm

Re: Not Generating graphs

Post 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"
# }
Be sure to check out our Knowledgebase for helpful articles and solutions!
aravindreddy114
Posts: 55
Joined: Tue May 07, 2013 12:48 pm

Re: Not Generating graphs

Post by aravindreddy114 »

Thanks ! Its working now
Locked