Professional Documents
Culture Documents
Not "$S4&ul
A3/ 'alls are made to the 5rontend, not the %abbix ser(er pro'ess
Aust be a member o& a 7ser group whi'h has the A3/ A''ess permission
enabled
A3/ 7sers are %abbix users with the ability to per&orm A3/ 'alls
Namespa'e'all
Bebsite* http*++tra'red-tuxnet
Britten in "uby
No ma<or issues with 1Hx, please report them when you &ind them
2ne person used %ab'on inside a s'ript to import data into %abbix, using this
approa'h they were able to import about 1,000 hots in a matter o& minutes
%ab'on 'an load host and user in&ormation &rom a 'on&iguration &ile
7sing the abo(e in&ormation the sample 'on&ig &ile would be &ound at *
@usr@li$@ru$2@#ems@(.)@#ems@:a$con60.0.--2@:a$con.con'.de'ault
$xample*
/ntrodu'tion . $xample . Simpli&ying things . Aore examples . Ad(an'ed
Conclusion
September 31, 2011
8etGs try that again, with more in&ormation*
9 :a$con.r$
i-)+6linu1
Found 5alid lo#in credentials, attemptin# lo#in
http:@@(*2.(+).(++.(0 connected
AB Version: (.-
<elcome to =a$con. >uild Num$er: -2+
;se the command ?help? to #et help on commands
C% #et host sho&Fhostid,host,dns,ip,a5aila$le,status
8ost result set
C66666666C6666666666C66666C66666666666C66666666666C66666666C
D hostid D host D dns D ip D a5aila$le D status D
C66666666C6666666666C66666C66666666666C66666666666C66666666C
D (00,/ D test D D (2/.0.0.( D 0 D 0 D
D (00+, D Eua 2 D D 0.0.0.0 D 0 D 0 D
D (00+/ D ne& test D D (2/.0.0.( D 0 D 0 D
C66666666C6666666666C66666C66666666666C66666666666C66666666C
- ro&s total
C%
Introduction API Zabcon
API & Zabcon
Copyright 2011 Andrew Nelson, nelsonab@red-tuxnet
/ntrodu'tion . $xample . Simpli&ying things . Aore examples . Ad(an'ed
Conclusion
September 31, 2011
2- thatGs 'ool but what i& / want to disable a host &rom a s'ript6
9 echo "get host show=hostid,host,dns,ip,status" !abcon"rb
hostid,host,dns,ip,status
(00,/,test,,(2/.0.0.(,0
(00+,,Eua 2,,0.0.0.0,0
(00+/,ne& test,,(2/.0.0.(,0
9 echo "update host hostid=#$$%& status=#" !abcon"rb
9 echo "get host show=hostid,host,dns,ip,status" !abcon"rb
hostid,host,dns,ip,status
(00,/,test,,(2/.0.0.(,(
(00+,,Eua 2,,0.0.0.0,0
(00+/,ne& test,,(2/.0.0.(,0
Introduction API Zabcon
API & Zabcon
Copyright 2011 Andrew Nelson, nelsonab@red-tuxnet
/ntrodu'tion . $xample . Simpli&ying things . Aore examples . Ad(an'ed
Conclusion
September 31, 2011
A''essing the A3/ dire'tly
C% ra& api histor2.#et itemidsF.22(+-0 time3'romF(-(/-+/2-2
time3toF(-(/-+/2+2 outputFe1tend
Ha&3api result set
C666666666666C66666666C666666666666C
D clocI D itemid D 5alue D
C666666666666C66666666C666666666666C
D (-(/-+/2)- D 22(+- D (-(/-+/2)- D
D (-(/-+/-,- D 22(+- D (-(/-+/-,- D
...
D (-(/-+/*,- D 22(+- D (-(/-+/*,- D
D (-(/-+)00- D 22(+- D (-(/-+)00- D
C666666666666C66666666C666666666666C
(- ro&s total
Introduction API Zabcon
API & Zabcon
Copyright 2011 Andrew Nelson, nelsonab@red-tuxnet
"ight now, %ab'on does not ha(e a 'ommand &or e(ery possible A3/ 'all
$nd users 'an 'reate their own %ab'on 'ommands to suit their own uni>ue needs
4he 'ommand ?help 'ommands@ will be updated with the new 'ommands
%ab'on'on& &ile determines the lo'ation o& the 'ustom 'ommands &ile
$nd users 'an 'reate their own %ab'on 'ommands to suit their own uni>ue needs
4he 'ommand ?help 'ommands@ will be updated with the new 'ommands
%ab'on'on& &ile determines the lo'ation o& the 'ustom 'ommands &ile
%ab'on allows you to easilly 'all the %abbix A3/ &orm the 'ommand line or s'ripts
#elp &rom more de(elopers and testers is always appre'iated Ehint hintF
Bebsite*
http*++tra'red-tuxnet
$mail*
nelsonab@red-tuxnet
anelson@redhat'om
Conclusion