Comments (6)
Can you try adding the --dump
option to print info?
from nagios-scripts.
Here is the dump:
./check_haproxy_stats.pl --url='https://server1.domain.local/' --username='haproxy' --password='xxxxxxxxx' --warning='85' --critical='95' -p back_pgsql,pgsql_6432 -d
# pxname,svname,qcur,qmax,scur,smax,slim,stot,bin,bout,dreq,dresp,ereq,econ,eresp,wretr,wredis,status,weight,act,bck,chkfail,chkdown,lastchg,downtime,qlimit,pid,iid,sid,throttle,lbtot,tracked,type,rate,rate_lim,rate_max,check_status,check_code,check_duration,hrsp_1xx,hrsp_2xx,hrsp_3xx,hrsp_4xx,hrsp_5xx,hrsp_other,hanafail,req_rate,req_rate_max,req_tot,cli_abrt,srv_abrt,comp_in,comp_out,comp_byp,comp_rsp,lastsess,last_chk,last_agt,qtime,ctime,rtime,ttime,agent_status,agent_code,agent_duration,check_desc,agent_desc,check_rise,check_fall,check_health,agent_rise,agent_fall,agent_health,addr,cookie,mode,algo,conn_rate,conn_rate_max,conn_tot,intercepted,dcon,dses,
haproxy_admin,FRONTEND,,,1,4,6000,64938,23543255,724070535,0,0,46,,,,,OPEN,,,,,,,,,1,2,0,,,,0,1,0,180,,,,0,59663,0,5279,78,0,,1,180,65021,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,http,,1,179,65566,59664,0,0,
haproxy_admin,BACKEND,0,0,0,1,600,78,23543255,724070535,0,0,,78,0,0,0,UP,0,0,0,,0,3683831,,,1,2,0,,0,,1,0,,15,,,,0,0,0,0,78,0,,,,78,1,0,0,0,0,0,0,,,0,0,1,23,,,,,,,,,,,,,,http,roundrobin,,,,,,,
back_pgsql,server1::server-pg.domain.local,0,0,0,2,,64,16392,819,,0,,0,0,0,0,UP,100,1,0,0,0,3683831,0,,1,3,1,,1,,2,0,,6,L4OK,,0,,,,,,,,,,,65,0,,,,,382495,,via agent : up (PostgreSQL Primary is running.),0,0,0,46,L7OK,0,67,Layer4 check passed,Layer7 check passed,3,2,4,1,1,1,[10.10.10.146:5432](http://10.10.10.146:5432/),,tcp,,,,,,,,
back_pgsql,server1::server-pg.domain.local,0,0,0,0,,0,0,0,,0,,0,0,0,0,MAINT,0,1,0,0,1,3683823,3683823,,1,3,2,,0,,2,0,,0,,,,,,,,,,,,,,0,0,,,,,-1,,via agent : up (PostgreSQL Secondary is running.),0,0,0,0,L7OK,0,45,,Layer7 check passed,,,,1,1,1,[10.10.10.125:5432](http://10.10.10.125:5432/),,tcp,,,,,,,,
back_pgsql,BACKEND,0,0,0,2,300,65,16392,819,0,0,,0,0,0,0,UP,100,1,0,,0,3683831,0,,1,3,0,,1,,1,0,,6,,,,,,,,,,,,,,65,0,0,0,0,0,382495,,,0,0,0,46,,,,,,,,,,,,,,tcp,roundrobin,,,,,,,
pgsql_6432,FRONTEND,,,0,2,3000,65,16392,819,0,0,1,,,,,OPEN,,,,,,,,,1,4,0,,,,0,0,0,6,,,,,,,,,,,0,0,0,,,0,0,0,0,,,,,,,,,,,,,,,,,,,,,tcp,,0,6,65,,0,0,
from nagios-scripts.
That's strange
Are you sure you're running the script with the same parameters from Centreon? Try to add the dump parameter from Centreon and see what you get
from nagios-scripts.
Sure, here is the result with -d parameter
Use of uninitialized value $haproxy in print at /usr/lib/centreon/plugins/check_haproxy_stats.pl line 228.
from nagios-scripts.
I'm not sure why this happens. Seems like the script can't find something in the CSV, or can't get the CSV at all.
You should double check the Centreon command line, you should expect the same thing from CLI or Centreon.
from nagios-scripts.
Hello tartef,
I finally found the problem, the password has a ";" in it and since Centreon hides the password, I couldn't see that the password was truncated. I decided to reveal the password by unchecking the password type in the command and found that my password was truncated by the ";".
Everything is OK now by adding a \ in front of the ";"
Thank you for your support.
from nagios-scripts.
Related Issues (5)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nagios-scripts.