Performance graph

This support forum board is for support questions relating to Nagios XI, our flagship commercial network monitoring solution.
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Performance graph

Post by lamin »

Hello guys,
I modified one of my script (directory_file_count) so that it will graph the result. however it is not working even thought i have delete the .rrd and xml files in /usr/local/nagios/share/perfdata directory. Could someone tells me what i am doing wrong. Atached is to show i have done.
You do not have the required permissions to view the files attached to this post.
yancy
Posts: 523
Joined: Thu Oct 06, 2011 10:12 am

Re: Performance graph

Post by yancy »

take a look at the plugin development guidelines (specifically section 2.6)

http://nagiosplug.sourceforge.net/devel ... lines.html

the plugin should return data in the following syntax:
'label'=value[UOM];[warn];[crit];[min];[max]
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Performance graph

Post by lamin »

So what am i doing wrong? If possible can you be more specific.

Thanks
mguthrie
Posts: 4380
Joined: Mon Jun 14, 2010 10:21 am

Re: Performance graph

Post by mguthrie »

Can you post the full output that is being generated from this plugin? That should make it easy to identify where the issue is.
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Performance graph

Post by lamin »

It is saying no performance graph found.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Performance graph

Post by scottwilkerson »

I think mguthrie was looking for what the output was when you run the command from the command line.
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Performance graph

Post by lamin »

Look at attachment.
You do not have the required permissions to view the files attached to this post.
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Performance graph

Post by scottwilkerson »

I believe the Wscript.Echo lines should look more like this

Code: Select all

Wscript.Echo "OK: File count is " & FileCount & ".|count=" & FileCount
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart
lamin
Posts: 177
Joined: Thu Oct 28, 2010 6:59 am

Re: Performance graph

Post by lamin »

i changed it but still no graph, however, i am getting the file count.

Thanks
scottwilkerson
DevOps Engineer
Posts: 19396
Joined: Tue Nov 15, 2011 3:11 pm
Location: Nagios Enterprises

Re: Performance graph

Post by scottwilkerson »

Again, we will need to see what the output was when you run the command from the command line.

By command line I mean a terminal connection where you are executing the command you expect Nagios to run. It will look something like this

Code: Select all

[root@localhost libexec]# ./check_nrpe -H YOUR_SERVER_IP -c YOUR_COMMAND
Former Nagios employee
Creator:
Human Design Website
Get Your Human Design Chart