sample script for performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
Locked
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

sample script for performance graph

Post 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
Zajil NMS
abrist
Red Shirt
Posts: 8334
Joined: Thu Nov 15, 2012 1:20 pm

Re: sample script for performance graph

Post 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?
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.
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: sample script for performance graph

Post 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
Zajil NMS
User avatar
tgriep
Madmin
Posts: 9190
Joined: Thu Oct 30, 2014 9:02 am

Re: sample script for performance graph

Post 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?
Be sure to check out our Knowledgebase for helpful articles and solutions!
zaji_nms
Posts: 616
Joined: Tue Oct 16, 2012 12:28 am

Re: sample script for performance graph

Post 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
Zajil NMS
Locked