View Full Version : check_graph_ping (--crit) must be superior to (--warn)
I used the default check_graph_ping but I have to use some arguments for this service?
Check_command_arguments
But what do I have to put in there for example? :)
Thanks in advance!
Michiel
Hi,
For example :
!3!80!95!public!2c
3 = number of your network interface
80 = warning value
95 = critical value
public = snmp community
2c = snmp version
To find the number of your network interface, just execute :
./check_graph_traffic.pl -H ip -C public -s (with the good snmp community)
Thanks..but isn't that the syntax for check_graph_traffic.pl?
I am using check_graph_ping.pl (no snmp!)
Thanks in advance for your reply.
Michiel
For the check_graph_ping, you don't have to use args.
When you pass over the image on the right of the input area, you can see if you need args for the command. ARG1, ARG2, ...
But when I do not use any arguements I get the error I posted:
[1116578608] SERVICE;www.t-mobile.nl;www.t-mobile.nl-ping-graph;OK;1/3;HARD;1116578189;1116578609;ACTIVE;1;1;0;11165298 88;0;OK;0;0;0;0;0;0;0;0
;0;1;0;0.00;0;1;1;1;(--crit) must be superior to (--warn)
So I suppose I have to use some arguements..I can execute the script from the command shell without any problem..creating a 1.rrd file in /usr/local/oreon/rrd/
But from Nagios it errors with above error.
Permissions rrd folder:
4 drwxrwxr-x 2 nagios nagios 4096 May 19 17:47 rrd
Michiel
Hi Rom,
sorry to bother you..but Ihave another question..I also check my services under /nagios/ and find that the availability report does not show any graphs.
I entered: process_performance_data=1
in nagios.cfg and restarted nagios but still I can not graph an availability report.
Is this because Nagios is started for 5 minutes and it doesn't have enough stats to graph? (lowerst graph period is 24 hours)..
I also find a lot of plugins NOT found in my list of checks..when I look in /usr/local/nagios/libexec I find a lot checks not being found by Oreon..how can I fix this?
Sorry for all the questions but your documentation isn't sufficient for me and more then 80% of your website and forum posts are in French :roll:
Thanks in advance for your help/suggestions.
Michiel
But when I do not use any arguements I get the error I posted:
[1116578608] SERVICE;www.t-mobile.nl;www.t-mobile.nl-ping-graph;OK;1/3;HARD;1116578189;1116578609;ACTIVE;1;1;0;11165298 88;0;OK;0;0;0;0;0;0;0;0
;0;1;0;0.00;0;1;1;1;(--crit) must be superior to (--warn)
So I suppose I have to use some arguements..I can execute the script from the command shell without any problem..creating a 1.rrd file in /usr/local/oreon/rrd/
But from Nagios it errors with above error.
Permissions rrd folder:
4 drwxrwxr-x 2 nagios nagios 4096 May 19 17:47 rrd
Michiel
Detail de check_graph_ping.pl
Copyright (c) 2004 OREON
Bugs to http://www.oreon.org/
Usage:
check_graph_ping
-H (--hostname) Hostname to query - (required)
-g (--rrdgraph) create à rrd base and add datas into this one
-D (--directory) Path to rrdatabase (or create the .rrd in this directory)
by default: /usr/local/oreon/rrd/
(The path is valid with spaces '/my path/...')
-w (--warn) Signal strength at which a warning message will be generated
(default 80)
-c (--crit) Signal strength at which a critical message will be generated
(default 95)
-S (--ServiceId) Oreon Service Id
-V (--version) Plugin version
-h (--help) usage help
If you would like to put new args, you have to modify the command using check_graph_ping by adding the option -w $ARG1$ -c $ARG2$ -S $ARG3$ (When you'll put your value, don't fill the -S ARG, it's automatic to had a graph)
Hi Rom,
sorry to bother you..but Ihave another question..I also check my services under /nagios/ and find that the availability report does not show any graphs.
I entered: process_performance_data=1
in nagios.cfg and restarted nagios but still I can not graph an availability report.
Is this because Nagios is started for 5 minutes and it doesn't have enough stats to graph? (lowerst graph period is 24 hours)..
I don't know, for us, you have to wait 4-5 minutes so the rrd base start to fill. But if your service is green in monitoring, there's no problem I think.
I also find a lot of plugins NOT found in my list of checks..when I look in /usr/local/nagios/libexec I find a lot checks not being found by Oreon..how can I fix this?
Michiel
You have to write your own command in the configuration->command part, I don't remember if we use or not all the nagios checks.
Hmm..this is my result:
cat /etc/nagios/services/cfg:
check_command check_graph_ping!80!95!4
my command check_graph_ping:
$USER1$/check_graph_ping.pl $HOSTADDRESS$ -g -w $ARG1$ -c $ARG2$ -S $ARG3$
my extra arguements for the service:
!80!95
service nagios restart and a cat /var/log/nagios/status.log:
[root@pcintelw01 nagios]# cat /var/log/nagios/status.log
# Nagios 1.2 Status File
[1116591132] SERVICE;www.t-mobile.nl;www.t-mobile.nl-ping-graph;OK;1/3;HARD;1116590937;1116591357;ACTIVE;1;1;0;11165909 14;0;OK;23;0;0;0;0;0;0;0;1;1;0;0.00;0;1;1;1;GPING OK - 64 bytes from www.t-mobile.nl (80.79.193.146): icmp_seq=0 ttl=125 time=30.7 ms
But no graph yet in /usr/local/oreon/rrd/ :(
M.
Do you have the good laws on /rrd ? It has to be nagios
yes:
cd /usr/local/oreon
ls -als
drwxrwxr-x 2 nagios nagios 4096 May 20 13:08 rrd
When I do a su - nagios and then run /usr/local/nagios/libexec/check_graph_ping.pl www.t-mobile.nl -g I get a nice 4.rrd in /usr/local/oreon/rrd/ ...
M.
Seems that your rrd file is created whit root law, and after nagios can't write on it. Because you made shell test with your root account ?
So erase all the datas in
oreon/rrd
oreon/tmp
oreon/include/average
and after restart nagios, the datas will be created with the good law :)
No..like I said:
I did a:
su - nagios (become user nagios)
and THEN I executed the command (which worked good).
So there is nothing wrong with permissions..
Can I check anything else?
And why don't I see all the check_* commands in Oreon? (for example: check_smtp)
Michiel
Because we didn't put it in the 1.2.1. There's some but you have to create the others you need.
For the other problem I don't know.
ok..I'll add the check_smtp and other commands then..thanks for your help..
Michiel