Page 1 of 1

sample script for performance graph

Posted: Fri Feb 06, 2015 3:22 am
by zaji_nms
Dear Expert

I found that if we adding -f in the arguments , it will generate PNP Performance Graph, however me finding difficulties to go through long script.

Can you please ref any document or simple script to generate PNP graph with minimum requirement.

Regards

Re: sample script for performance graph

Posted: Fri Feb 06, 2015 10:04 am
by abrist
zaji_nms wrote:I found that if we adding -f in the arguments , it will generate PNP Performance Graph, however me finding difficulties to go through long script.
Could you clarify? what script are you referring to?

Re: sample script for performance graph

Posted: Fri Feb 06, 2015 1:20 pm
by zaji_nms
Dear Abrist

check_snmp_environment.pl

However here me asking general question , if my script return some value, what should I add some procedure/syntext to generate PNP performance graph.

Regards

Re: sample script for performance graph

Posted: Fri Feb 06, 2015 2:23 pm
by tgriep
Here is the link to the plugin development guide. Take a look at the Performance data section.

https://nagios-plugins.org/doc/guidelines.html

I tried to find that plugin but couldn't, so could you post a link to where it is or attach it to this post?

Re: sample script for performance graph

Posted: Mon Feb 09, 2015 3:46 pm
by zaji_nms
Dear Expert

Please close the case, some help got from :
Troy Lea => Leveraging and Understanding Performance Data and Graphs
Some from other script and understood that the magic is | (pipe)
Nagios generate the graph for the value after the | (pipe)

more /usr/local/nagios/libexec/zus_pnp_graph
#!/bin/sh
zusminute=`date +%M`
echo ""Minute $zusminute" | mIn=$zusminute"
exit 0

Command : zus_pnp_graph
Command Line : $USER1$/zus_pnp_graph

Regards