Page 1 of 2

Performance Graph

Posted: Mon Apr 02, 2012 2:15 pm
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.

Re: Performance Graph

Posted: Mon Apr 02, 2012 4:16 pm
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]

Re: Performance Graph

Posted: Tue Apr 03, 2012 6:54 am
by lamin
So what am i doing wrong? If possible can you be more specific.

Thanks

Re: Performance Graph

Posted: Tue Apr 03, 2012 10:08 am
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.

Re: Performance Graph

Posted: Tue Apr 03, 2012 12:02 pm
by lamin
It is saying no performance graph found.

Re: Performance Graph

Posted: Tue Apr 03, 2012 12:08 pm
by scottwilkerson
I think mguthrie was looking for what the output was when you run the command from the command line.

Re: Performance Graph

Posted: Tue Apr 03, 2012 1:13 pm
by lamin
Look at attachment.

Re: Performance Graph

Posted: Tue Apr 03, 2012 2:33 pm
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

Re: Performance Graph

Posted: Wed Apr 04, 2012 1:07 pm
by lamin
i changed it but still no graph, however, i am getting the file count.

Thanks

Re: Performance Graph

Posted: Wed Apr 04, 2012 1:27 pm
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