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.
Performance graph
-
- Posts: 177
- Joined: Thu Oct 28, 2010 6:59 am
Performance graph
You do not have the required permissions to view the files attached to this post.
-
- Posts: 523
- Joined: Thu Oct 06, 2011 10:12 am
Re: Performance graph
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]
http://nagiosplug.sourceforge.net/devel ... lines.html
the plugin should return data in the following syntax:
'label'=value[UOM];[warn];[crit];[min];[max]
-
- Posts: 177
- Joined: Thu Oct 28, 2010 6:59 am
Re: Performance graph
So what am i doing wrong? If possible can you be more specific.
Thanks
Thanks
-
- Posts: 4380
- Joined: Mon Jun 14, 2010 10:21 am
Re: Performance graph
Can you post the full output that is being generated from this plugin? That should make it easy to identify where the issue is.
-
- Posts: 177
- Joined: Thu Oct 28, 2010 6:59 am
Re: Performance graph
It is saying no performance graph found.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Performance graph
I think mguthrie was looking for what the output was when you run the command from the command line.
-
- Posts: 177
- Joined: Thu Oct 28, 2010 6:59 am
Re: Performance graph
Look at attachment.
You do not have the required permissions to view the files attached to this post.
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Performance graph
I believe the Wscript.Echo lines should look more like this
Code: Select all
Wscript.Echo "OK: File count is " & FileCount & ".|count=" & FileCount
-
- Posts: 177
- Joined: Thu Oct 28, 2010 6:59 am
Re: Performance graph
i changed it but still no graph, however, i am getting the file count.
Thanks
Thanks
-
- DevOps Engineer
- Posts: 19396
- Joined: Tue Nov 15, 2011 3:11 pm
- Location: Nagios Enterprises
Re: Performance graph
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
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