View Full Version : check_graph_ping.pl
dobebo
12th August 2005, 11:57
Hello,
I need the orginal and working check_command syntax for the check_graph_ping plugin
And, if you are able to maybe give me a short description, how I can create the correct .rrd File in the rrd directory
Thank you
dobebo
I
julio
12th August 2005, 12:12
We had done a shot howto for creating graphical plugins. I hop it help you.
http://www.oreon.org/documents/HOWTO_check_graph_v0.1.txt
good luck :)
wistof
12th August 2005, 12:17
That did you means by 'original and working' ?
for 'HOWTO_check_graph_v0.1.txt', it's obsolete if you use RC3, we must upgrade it. You can get inspiration from other check_graph plugins
dobebo
12th August 2005, 12:22
Thanks, but that is not what I ment.
First of all I need the original syntax of the command_line in checkcommands.cfg for check_graph_ping.pl
like
$USER1$/check_graph_traffic.pl -H $HOSTADDRESS$ (...) etc.
And a little instructions how I can get it work correctly. In my case there was a .rrd File created (like 10.rrd) but it was not fitting to the path in the properties of the graph
Path of the RRDtool data-base /usr/local/oreon/rrd/3.rrd
Can anybody help ?
DonKiShoot
12th August 2005, 12:26
"check_graph_ping.pl --help" could help you ?
wistof
12th August 2005, 12:27
$USER1$/check_graph_ping.pl $HOSTADDRESS$ -g -S $ARG1$
is the minimun...
and for argument, nothing...
that version of Oreon do you use ?
that is your check_command syntax and arguments ?
dobebo
12th August 2005, 12:33
I am using Oreon-1.2.2-RC2
The syntax I've shown you was not mine I changed mine like this
$HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -D $ARG3$ -g $ARG4$ -S $ARG5$
but I think that is bullshit, cause it won't generate me any rrd file.
My problem (like I told) is that I wont get the rrd file that is given in the rrd path
Path of the RRDtool data-base /usr/local/oreon/rrd/3.rrd
and the rrd that was generated was like 10.rrd or something.
Thats why I request your help :)
wistof
12th August 2005, 12:36
in 'Options General', you only need to specify '/usr/local/oreon/rrd/' for 'Path of the RRDtool'.
update to RC3, there is more debug information for rrdtool plugins
DonKiShoot
12th August 2005, 12:37
new check_graph_ping.pl use warning and critical level who are necessary
wistof
12th August 2005, 12:39
yes, in RC3. Thanks Donki for this great plugin :D
DonKiShoot
12th August 2005, 12:41
I think i have the same bug for the can't locate database.
Le fichier /72.rrd n'est pas accessible
it is all the same for all my graph_ping
i think there is a relative path bug
wistof
12th August 2005, 12:45
in RC3 ??
go to 'Plugins' and generate 'Oreon.conf'.
Do you have install oreon.pm ?
DonKiShoot
12th August 2005, 12:50
I think there is a bug in graph.php, i'm searching :D
dobebo
12th August 2005, 12:50
How do I update to RC3 without loosing the information from my Database ?
wistof
12th August 2005, 12:52
there is a INSTALL file in tar.gz
wistof
12th August 2005, 12:52
I think there is a bug in graph.php, i'm searching :D
A bug ? impossible :D
Do you have select rrdtool version in 'Options General'?
dobebo
12th August 2005, 12:54
WARNING : Setup will delete all previous informations in your OREON DATABASE.
I don't want to loose my settings.
Is there a method to let my settings in Database ?
don't run install.sh for update
For update :
Step 1 - Execute MySQL request locate on the update file
Step 2 - Update Oreon files with the new files
For the files :
Stop nagios during the update
Make a tgz with all files in order to save all your data
Keep thes following files and directories :
/usr/local/oreon/include/trafficmap/average
/usr/local/oreon/include/trafficmap/png
/usr/local/oreon/include/trafficmap/bg
/usr/local/oreon/include/log/
/usr/local/oreon/etc/
/usr/local/oreon/etc/conf/
/usr/local/oreon/temp/
/usr/local/oreon/rrd/
/usr/local/oreon/oreon.conf.php
'/usr/local/oreon/etc/' becomes '/usr/local/oreon/nagios_cfg/'
Create directory 'upload' in '/usr/local/oreon/nagios_cfg/'
Replace others files by files in oreon_src/
and now :
chown -R apache:apache /usr/local/oreon/
chmod 755 /usr/local/oreon/
chown nagios:nagios /usr/local/oreon/rrd/
chmod -R 775 /usr/local/oreon/rrd/
chown nagios:nagios /usr/local/oreon/include/trafficmap/average
chmod -R 775 /usr/local/oreon/include/trafficmap/average
DonKiShoot
12th August 2005, 12:54
sorry there is new option i have not configure :oops:
Bases RRDTool i think
wistof
12th August 2005, 12:58
sorry there is new option i have not configure :oops:
Bases RRDTool i think
it's ok, it's working for you ?
DonKiShoot
12th August 2005, 13:00
sorry there is new option i have not configure :oops:
Bases RRDTool i think
it's ok, it's working for you ?
Not for the moment :D
Error when query the database: Unknown column 'color_unknown' in 'field list' Query: UPDATE general_opt SET nagios_pwd = '/usr/local/nagios/', oreon_pwd = '/usr/local/oreon/', refresh = '60', snmp_community = 'herve', snmp_path = '/usr/local/bin/', snmp_version = '1', mailer = '/bin/mail', rrd_pwd = '/usr/local/rrdtool-1.0.49/bin/rrdtool', rrd_base_pwd = '/', rrdtool_version = '1.0', plugins_path = '/', nmap_path = '', color_up = '00ff00', color_down = 'ff0000', color_unreachable = 'FF9900', color_ok = '33FF00', color_critical = 'F83838', color_warning = 'FFFF00', color_pending = 'ACACAC', color_unknown = '', session_expire = '0', binary_path = '/usr/local/nagios/bin/', images_path = '/usr/local/nagios/share/images/'
wistof
12th August 2005, 13:02
yes, you have download the wrong package :(
ALTER TABLE `general_opt` ADD `color_unknown` VARCHAR( 7 ) NOT NULL ;
DonKiShoot
12th August 2005, 13:05
yes, you have download the wrong package :(
ALTER TABLE `general_opt` ADD `color_unknown` VARCHAR( 7 ) NOT NULL ;
thx :wink:
DonKiShoot
12th August 2005, 13:08
it's fun, you change "Bases RRDTool" and automatically "Chemin des sondes Nagios" take the same path :lol:
julio
12th August 2005, 13:08
hey frensh guy ! I think you like to speak english... we'll close french Forum if you continue :D
DonKiShoot
12th August 2005, 13:09
it's fun, you change "Bases RRDTool" and automatically "Chemin des sondes Nagios" take the same path :lol:
Ok i undestand know : sonde = rrd base !!!
It's so strange :wink:
wistof
12th August 2005, 13:13
it's fun, you change "Bases RRDTool" and automatically "Chemin des sondes Nagios" take the same path :lol:
where ?? in RC3 ???
DonKiShoot
12th August 2005, 13:16
it's fun, you change "Bases RRDTool" and automatically "Chemin des sondes Nagios" take the same path :lol:
where ?? in RC3 ???
yep ! It's not normal ?
First i don't really understand what's the difference between this two options :lol:
wistof
12th August 2005, 13:23
if you change 'Bases RRDTool' to '/usr/local/test/rrd', 'Chemin des sondes Nagios' too ?
if yes, it's anormal...
julio
12th August 2005, 13:24
"Bases RRDTool" is the path where are stocked bases generated by plugins and Chemin des sondes Nagios is where are stocked plugins... it's not the same thing
dobebo
12th August 2005, 14:07
I decided to install oreon from the beginning, but now I get the message
Installation Directory is accessible. Delete this directory to prevent security problem.
I've already deleted it, but I can't login
wistof
12th August 2005, 14:15
did you have did delete '/usr/local/oreon/install' directory ?
wistof
12th August 2005, 14:17
if you have make a backup of your nagios cfg files, you can import them in oreon. Just make a tar.gz of your file, and upload it in 'Load nagios config'
dobebo
12th August 2005, 14:18
OK my fault.
And is there a fix for the rrd thing ?
wistof
12th August 2005, 14:26
in 'general option' :
- check rrdtool version
- 'RRDToolsPath/rrdtool' = path of rrdtool binarie (/usr/lbin/rrdtool )
- 'RRDTool base location' = path where rrd databas to generated (/usr/local/oreon/rrd/ )
- valide also 'Nagios Plugins Path' = plugins directory (/usr/local/nagios/libexec/ )
in 'plugin'
- generate oreon.conf
wait a little, and check in 'monitoring'
DonKiShoot
12th August 2005, 14:45
"Bases RRDTool" is the path where are stocked bases generated by plugins and Chemin des sondes Nagios is where are stocked plugins... it's not the same thing
Chemin des sondes Nagios it s in general /usr/local/nagios/libexec/ ??
DonKiShoot
12th August 2005, 14:46
if you change 'Bases RRDTool' to '/usr/local/test/rrd', 'Chemin des sondes Nagios' too ?
if yes, it's anormal...
i can't reproduce it, maybe i had smoke too much :?
dobebo
12th August 2005, 14:46
I checked the rrd properties and all files a generated.
What about the syntax ? is there any special thing i have to look at ?
wistof
12th August 2005, 15:00
i can't reproduce it, maybe i had smoke too much :?
it's friday :D
wistof
12th August 2005, 15:03
I checked the rrd properties and all files a generated.
What about the syntax ? is there any special thing i have to look at ?
so, rrd are correctly generated in /usr/local/nagios/rrd, but graph didn't appears ????
What about the syntax
syntax of what ? check_command ? arguement ?
i'm little lost :oops:
dobebo
12th August 2005, 15:05
I am using the following command
check_graph_ping!10.0.0.40!1!!1
But the path to the rrd.file is /usr/local/oreon/rrd/3.rrd
why ?
Shouldn't they be generated in /usr/local/oreon/rrd/ ??????
What is my fault ??????????????????????
I getting angry guys !!!!
wistof
12th August 2005, 15:09
ok...
you don't need to specify argument for '-S' option, Oreon do it for you.
Your service must finish with '-g -S'
$USER1$/check_graph_ping.pl -H $HOSTADDRESS$ -w $ARG1$ -c $ARG2$ -n $ARG3$ -g -S $ARG4$
and for arguments
!200,20%!500,40%!2
if you read 'services.cfg', you must find
check_command check_graph_ping!200,20%!500,40%!2!9
dobebo
12th August 2005, 15:18
Now it seems to be working. Thank you for now.
How about a little howto for noobs, as well in English as French or for me in German :)
I hope it will be working like this for chech_graph_traffic and all the other graph plugins
:D
wistof
12th August 2005, 15:38
greats !
we have a big work to do for upgrade documentation...