|
From: James T. <ja...@nt...> - 2007-03-05 19:25:30
|
James Tran wrote:
> Hi i just installed perfparse so that i can use it with oreon.
>
> Problem is after i install it it doesn't see any of the nagios host
> groups i have or hosts.
>
> Here's how i installed everything from scratch.
>
> Went to Nagios-2.7
>
> ./configure --enable-embedded-perl --with-perlcache --disable-statuswrl
> --with-default-perfdata
> make all
> make install
> make install-config
> make install-init
> make install-commandcmd
>
> that installed everything in /usr/local/nagios
>
> got perf parse .105.6
> ./configure --prefix=/usr/local/nagios
> --with-imagedir=/usr/local/nagios/share/images/
> --with-cgidir=/usr/local/nagios/sbin --with-http_image_path=/nagios/images
> make
> make install
>
> cat mysql_create.sql | mysql -u root -p nagios
> double checked the table to make sure everything was there.
> changed the perfparse.sh.example to perfparse.sh and
> perfparse.cfg.example to perfparse.cfg
>
> commented couple lines outta misccommand.cfg
>
> went to nagios.cfg
>
> cfg_file=/usr/local/nagios/etc/nagios_perfparse.cfg
> process_performance_data=1 host_perfdata_
> command=process-host-perfdata service_
> perfdata_command=process-service-perfdata
>
>
> nagios_perfparse.cfg
>
> define command{
> command_name process-service-perfdata
> command_line $USER2$/bin/perfparse_nagios_pipe_command.pl $USER2$/var/perfdata-service.log "$TIMET$" "$HOSTNAME$" "$SERVICEDESC$" "$OUTPUT$" "$SERVICESTATE$" "$PERFDATA$"
> }
>
> I set the db name and host name and all that good stuff and make sure it can at least get in.
> I logged into the webpage and it's there and everything.
>
>
> restarted nagios with it embedded on the menu
>
> I go there to see statistics on servers but it doesn't list any.
> Help?
>
>
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys-and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> _______________________________________________
> Perfparse-users mailing list
> Per...@li...
> https://lists.sourceforge.net/lists/listinfo/perfparse-users
>
Ok so here's the deal i got a little farther
I changed some stuff and my parseperf.cfg look as follows:
Server_Port = 1976
Service_Log = "/usr/local/nagios/var/service-perfdata.dat"
Service_Log_Position_Mark_Path = "/usr/local/nagios/var"
Error_Log = "/usr/local/nagios/var/perfparse.log"
Error_Log_Rotate = "Yes"
Error_Log_Keep_N_Days = "7"
Drop_File = "/usr/local/nagios/var/perfparse.drop"
Drop_File_Rotate = "Yes"
Drop_File_Keep_N_Days = "7"
Lock_File = "/var/lock/perfparse.lock"
Show_Status_Bar = "no"
Do_Report = "no"
Default_user_permissions_Policy = "rw"
Default_user_permissions_Host_groups = "rw"
Default_user_permissions_Summary = "rw"
Output_Log_File = "no"
Output_Log_Filename =
"/usr/local/nagios/var/perfparse_output_log"
Output_Log_Rotate = "yes"
Output_Log_Keep_N_Days = "7"
Use_Storage_Socket_Output = "no"
Storage_Socket_Output_Host_Name = "localhost"
Storage_Socket_Output_Port = "1974"
Server_Port = "1976"
Use_Storage_Mysql = "yes"
No_Raw_Data = "no"
No_Bin_Data = "no"
DB_User = "xxx"
DB_Name = "xxx"
DB_Pass = "xxx"
DB_Host = "127.0.0.1"
Dummy_Hostname = "dummy"
i got to the /nagiosroot/bin/
shell> /usr/local/nagios/bin# ./perfparse-log2mysql -r
+-----------------------------+ +-----------------------------+
| Generic statistics | | Nb Log Lines : 1 |
| Nb lines parsed : 0 | | Nb lines dropped : 0 |
| Start date : 2007-03-05 | | Elapsed time : 00:00:00 |
| Start time : 11:23:07 | | Rate : (line/sec) 0.00 |
+-----------------------------+ +-----------------------------+
+-----------------------------+ +-----------------------------+
| MySQL storage statistics | | |
| New Hosts : 0 | | Metric/line : 0.00 |
| New Metrics : 0 | | Metrics Recorded : 0 |
| New Services : 0 | | Summary Rec Added : 0 |
| New Summary Group : 0 | | SQL Queries : 19 |
+-----------------------------+ +-----------------------------+
So in other word it looks like i it's reading nothing and inserting
nothing. I have no idea why.
Any suggestions as where to look? I need help bad thx.
./
|