Page 1 of 1
No performance graphs were found for this service
Posted: Wed Dec 30, 2015 6:31 am
by anguri.sudhakar
Hi,
No performance graphs were found for this service.
I have created SNMP trap for one service ,But performance graph it not appearing.
Please suggest the processes.
Thanks,
Sudhakar Anguri
Re: No performance graphs were found for this service
Posted: Wed Dec 30, 2015 10:50 am
by rkennedy
Can you please post a screenshot of the advanced status details tab for the service that isn't generating graphs?
Re: No performance graphs were found for this service
Posted: Thu Dec 31, 2015 12:47 am
by anguri.sudhakar
Hi,
I attached the screenshot of service and advance tab details.
Please find the below.
Thanks,
Sudhakakar Anguri
Re: No performance graphs were found for this service
Posted: Mon Jan 04, 2016 10:54 am
by rkennedy
It does not look like your service check is returning any performance data.
Can you post a complete example of what you're sending with this passive check?
Re: No performance graphs were found for this service
Posted: Wed Jan 06, 2016 6:29 am
by anguri.sudhakar
Hi ,
Just i am imported xxxx.MIB file into snmptt.conf file and i have create service name SNMP trap for respective MIB file.
SNMP trap service capturing the alert alarms and it showing in the GUI.
But problem is performance data is not showing the graphs.
Thanks,
Sudhakar Anguri.
Re: No performance graphs were found for this service
Posted: Wed Jan 06, 2016 3:45 pm
by rkennedy
rkennedy wrote:It does not look like your service check is returning any performance data.
In order to generate performance data on a passive check, the EXEC line in snmptt.conf needs to be modified accordingly. Can you post the part in snmptt.conf that corresponds to this service in question?
Re: No performance graphs were found for this service
Posted: Thu Jan 07, 2016 12:54 am
by anguri.sudhakar
Hi,
below is the SNMP service .
EVENT resourceAdaptorNotification .1.3.6.1.4.1.19808.2.101.2 "Status Events" Normal
FORMAT This notification is sent when a Resource Adaptor changes state $*
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "This notification is sent when a Resource Adaptor changes state $*"
SDESC
This notification is sent when a Resource Adaptor changes state
Variables:
1: message
2: type
3: sequenceID
4: timestamp
5: nodes
6: component
7: oldState
8: newState
EDESC
Thanks,
Sudhakar Anguri.
Re: No performance graphs were found for this service
Posted: Thu Jan 07, 2016 11:01 am
by rkennedy
In order to format performance, you will need to follow the guidelines from here
https://assets.nagios.com/downloads/nag ... fdata.html -
At a minimum, Nagios plugins must return a single line of human-readable text that indicates the status of some type of measurable data. For example, the check_ping plugin might return a line of text like the following:
PING ok - Packet loss = 0%, RTA = 0.80 ms
With this simple type of output, the entire line of text is available in the $HOSTOUTPUT$ or $SERVICEOUTPUT$ macros (depending on whether this plugin was used as a host check or service check).
Plugins can return optional performance data in their output by sending the normal, human-readable text string that they usually would, followed by a pipe character (|), and then a string containing one or more performance data metrics. Let's take the check_ping plugin as an example and assume that it has been enhanced to return percent packet loss and average round trip time as performance data metrics. Sample output from the plugin might look like this:
PING ok - Packet loss = 0%, RTA = 0.80 ms | percent_packet_loss=0, rta=0.80
In your case, for SNMP, the line that we need to modify to start generating perfdata is going to be -
Code: Select all
EXEC /usr/local/bin/snmptraphandling.py "$r" "SNMP Traps" "$s" "$@" "$-*" "This notification is sent when a Resource Adaptor changes state $*"
Take a look here
http://snmptt.sourceforge.net/docs/snmp ... ONF-FORMAT for more information about the variables that you would like to format. Each passive check will need to be setup a little bit differently on that EXEC line in order for performance graphs to generate.
Give it a try and let me know if you have any questions.
Let me know if you have any questions.
Re: No performance graphs were found for this service
Posted: Fri Jan 08, 2016 6:10 am
by anguri.sudhakar
Thanks for quick response the link is very use full, i will try my end and i will let know.
Re: No performance graphs were found for this service
Posted: Fri Jan 08, 2016 10:27 am
by rkennedy
You're welcome. I'll leave this thread open for now - let us know if you have any further questions about it.